~ubuntu-branches/ubuntu/trusty/amsn/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Cody A.W. Somerville
  • Date: 2008-03-29 23:16:00 UTC
  • Revision ID: james.westby@ubuntu.com-20080329231600-knu01lft7cs0cgve
Tags: 0.97+final-0ubuntu4
* Renamed 04_sensible_browserKey.dpatch to 04_use_xdg-open.dpatch
* debian/patches/04_use_xdg-open.dpatch: Updated.
  - Use xdg-open for file manager, and opening files - not just browser.
  - Closes LP: #206639
  - Closes LP: #208816
* debian/patches/05-disable_newVersionCheck.dpatch: Created.
  - Path to disable checking of new versions on start by default.
  - Closes LP: #188675
* debian/patches/06-fix_makefile.dpatch: Created.
  - Ensure proper cleanup and installation of files.
* debian/rules:
  - clean: Calls to rm removed and makefile patched instead.
  - install: Use dh_installdocs to install docs instead of manually copying.
  - Removed spurious comments and old, commented out commands.
  - General cleanup.
* debian/amsn.desktop:
  - Deleted, we no longer use it.
  - Closes LP: #184353
* debian/amsn.docs: Created.
* debian/patches/00list: Regenerated. Closes LP: #208816

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# This file was originally written by Joey Hess and Craig Small.
5
 
# As a special exception, when this file is copied by dh-make into a
6
 
# dh-make output file, you may use that output file without restriction.
7
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
8
 
# Modified by Phil <lephilousophe at users dot sourceforge dot net> for aMsn
9
3
 
10
4
# Uncomment this to turn on verbose mode.
11
5
#export DH_VERBOSE=1
12
6
 
13
7
include /usr/share/dpatch/dpatch.make
14
8
 
15
 
# These are used for cross-compiling and for saving the configure script
16
 
# from having to guess our platform (since we know it already)
17
9
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18
10
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19
11
DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
26
18
 
27
19
config.status: configure
28
20
        dh_testdir
29
 
        # Add here commands to configure the package.
30
21
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --with-tcl=/usr/lib/tcl8.5 --with-tk=/usr/lib/tk8.5
31
22
 
32
 
 
33
23
build: build-stamp
34
24
build-stamp: config.status 
35
25
build-stamp: patch-stamp
36
26
        dh_testdir
37
 
 
38
 
        # Add here commands to compile the package.
39
27
        $(MAKE) 
40
 
        #docbook-to-man debian/amsn.sgml > amsn.1
41
 
 
42
28
        touch build-stamp
43
29
 
44
30
clean: unpatch
45
31
clean:
46
32
        dh_testdir
47
33
        dh_testroot
48
 
        rm -f build-stamp 
49
 
 
50
 
        # Add here commands to clean up after the build process.
51
 
#       -$(MAKE) distclean
52
 
         [ ! -f Makefile ] || $(MAKE) distclean
53
 
 
54
 
        # Clean some libs that are not clean by makefile
55
 
        rm -f ./utils/TkCximage/TkCximage.so
56
 
        rm -f ./utils/webcamsn/webcamsn.so
57
 
        rm -f ./utils/linux/capture/config.h
58
 
        rm -f ./utils/tcl_siren/tcl_siren.so
59
 
        rm -f ./config.log
60
 
 
 
34
        rm -f build-stamp
 
35
        [ ! -f Makefile ] || $(MAKE) distclean
61
36
        dh_clean
62
37
 
63
38
install: build
65
40
        dh_testroot
66
41
        dh_clean -k
67
42
        dh_installdirs
68
 
 
69
 
        # Add here commands to install the package into debian/amsn.
70
43
        $(MAKE) install DESTDIR=$(CURDIR)/debian/amsn   
71
44
 
72
 
        # manually move the .desktop file for KDE, it's broken in the Makefile
73
 
#       mv -f "$(CURDIR)/debian/amsn/usr/share/amsn/"*.desktop \
74
 
#               "$(CURDIR)/debian/amsn/usr/share/applications/"
75
 
        #manually copy the icon file
76
 
        cp -f "$(CURDIR)/desktop-icons/48x48/apps/amsn.png" \
 
45
        cp "$(CURDIR)/desktop-icons/48x48/apps/amsn.png" \
77
46
                "$(CURDIR)/debian/amsn/usr/share/pixmaps/msn.png"
78
47
        #manually copy the xpm file
79
 
        cp -f "$(CURDIR)/debian/msn.xpm" \
 
48
        cp "$(CURDIR)/debian/msn.xpm" \
80
49
                "$(CURDIR)/debian/amsn/usr/share/pixmaps/amsn/amsn.xpm"
81
50
        
82
 
        # Tidy upstream's mess (but not completely)
83
 
        
 
51
        #  Tidy upstream's mess (but not completely)    
84
52
        # .so files go in /usr/lib
85
53
        
86
54
ifeq ($(DEB_HOST_ARCH_OS),linux)
92
60
        rm -f $(CURDIR)/debian/amsn/usr/share/amsn/utils/tcl_siren/src/*.o
93
61
 
94
62
endif
95
 
        # Documentation files go in /usr/share/doc/amsn
96
 
        cp -f $(CURDIR)/docs/* \
97
 
           $(CURDIR)/AGREEMENT \
98
 
           $(CURDIR)/TODO \
99
 
           $(CURDIR)/FAQ \
100
 
           $(CURDIR)/HELP \
101
 
           $(CURDIR)/README \
102
 
           $(CURDIR)/CREDITS \
103
 
           $(CURDIR)/debian/amsn/usr/share/doc/amsn/
104
 
#       rmdir "$(CURDIR)/debian/amsn/usr/share/amsn/docs/
105
 
        
106
 
        # Delete redundant files
107
 
        rm -f "$(CURDIR)/debian/amsn/usr/share/amsn/utils/Tclxml/libTclxml3.1.so"
108
63
 
109
 
        cp -f debian/amsn-lintian.override debian/amsn/usr/share/lintian/overrides/amsn
 
64
        cp debian/amsn-lintian.override debian/amsn/usr/share/lintian/overrides/amsn
110
65
        chmod 0644 debian/amsn/usr/share/lintian/overrides/amsn
111
 
        cp -f debian/amsn-linda.override debian/amsn/usr/share/linda/overrides/amsn 
 
66
        cp debian/amsn-linda.override debian/amsn/usr/share/linda/overrides/amsn 
112
67
        chmod 0644 debian/amsn/usr/share/linda/overrides/amsn
113
68
 
114
 
# Build architecture-independent files here.
115
69
binary-indep: build install
116
70
# We have nothing to do by default.
117
71
 
118
 
# Build architecture-dependent files here.
119
72
binary-arch: build install
120
73
        dh_testdir
121
74
        dh_testroot