~ubuntu-branches/ubuntu/maverick/ming/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2007-05-22 04:00:31 UTC
  • Revision ID: james.westby@ubuntu.com-20070522040031-f19netv85q1o6wk8
Tags: 1:0.3.0-11.1
* Non-maintainer upload.
* High-urgency upload for RC bugfixes.
* Drop hard-coded dependency on obsolete package name giflib4g, the correct
  dependency is already being picked up via shlibs. Closes: #424401.
* Drop the php4-ming package, because php4 is going away for lenny.
  Closes: #424806.
* Move the libming-util programs from /usr/lib/ming/bin to /usr/bin;
  these are end-user binaries, not helper binaries for the library, so
  shipping them under /usr/lib is an FHS violation.
* Rename png2swf to png2swf-ming, to eliminate the file conflict with
  swftools since the two programs don't have compatible commandline
  syntax. Also fix the name displayed in png2swf's usage function,
  which was inaccurate anyway. Closes: #421988.
* Take care to remove the build-php5 directory and the generated
  libming-util.1 manpage in the clean target.  Closes: #424573.
* Clean perl_ext before cleaning the toplevel dir, to avoid leaving
  "Makefile.old" around as cruft in the diff.
* Fix up several manpage symlinks to match the binary names actually
  being shipped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
config.status: configure
37
37
        dh_testdir
38
38
        # Add here commands to configure the package.
39
 
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --bindir=\$${prefix}/lib/libming/bin
 
39
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
40
40
        # PHP5
41
41
        rm -rf build-php5 && mkdir build-php5
42
42
        cp php_ext/* build-php5
70
70
                python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \
71
71
                (cd py_ext;$$python setup.py build;) \
72
72
        done
 
73
 
73
74
        # PHP5
74
75
        cd build-php5 && $(MAKE) CFLAGS="$(CFLAGS)"
75
76
 
87
88
clean:
88
89
        dh_testdir
89
90
        dh_testroot
 
91
        # Perl extension
 
92
        -cd perl_ext && $(MAKE) realclean && rm SWF.h t/config.pl
 
93
 
90
94
        $(MAKE) clean
91
 
        # Perl extension
92
 
        -cd perl_ext && $(MAKE) realclean && rm SWF.h t/config.pl
93
95
 
94
96
        # Python extension
95
97
        -for python in $(PYVERS); do \
102
104
        rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
103
105
 
104
106
        # Add here commands to clean up after the build process.
 
107
        rm -rf build-php5
 
108
        rm -f libming-util.1
105
109
        -$(MAKE) distclean
106
110
        dh_clean 
107
111
 
150
154
        install -d debian/php5-ming/etc/php5/conf.d
151
155
        install -m 644 -o root -g root debian/ming.ini debian/php5-ming/etc/php5/conf.d/ming.ini
152
156
 
 
157
        # rename to avoid conflict with swftools
 
158
        mv debian/ming/usr/bin/png2swf debian/ming/usr/bin/png2swf-ming
 
159
        
153
160
        # Documentation
154
161
        install -d debian/ming/usr/share/man/man1
155
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listaction2.1.gz
156
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listaction2_d.1.gz
157
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listswf2.1.gz
158
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listswf2_d.1.gz
 
162
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listaction.1.gz
 
163
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listaction_d.1.gz
 
164
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listswf.1.gz
 
165
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/listswf_d.1.gz
159
166
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/png2dbl.1.gz
160
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/png2swf.1.gz
161
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/swftoperl2.1.gz
162
 
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/swftophp2.1.gz
 
167
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/png2swf-ming.1.gz
 
168
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/swftoperl.1.gz
 
169
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/swftophp.1.gz
163
170
        ln -s libming-util.1.gz debian/ming/usr/share/man/man1/swftopython.1.gz
164
171
 
165
172
        dh_install -s