~ubuntu-branches/ubuntu/saucy/libjpeg6b/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2006-05-05 19:14:25 UTC
  • mfrom: (2.1.2 dapper)
  • Revision ID: james.westby@ubuntu.com-20060505191425-pzcv55yz97684z9c
Tags: 6b-13
* The "If at first you don't succeed..." release. 
* Change --enable-maxmem to 1024, following Guido advice.
  This should fix the slowdowns with large files (for large < 1Gb):
  closes: #356556, #365025, Thanks Nicolas.
  If you hit performance problems, please set the JPEGMEM variable to
  about half your available RAM, see jpegtran(1).
* Update libjpeg-progs README.Debian to reflect the new patch set and
  the JPEGMEM feature.
* Bump standard version to 3.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
build-stamp: patch-stamp
25
25
        dh_testdir
26
26
        ./configure --prefix=/usr --mandir=usr/share/man \
27
 
         --enable-static --enable-shared --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
28
 
        cp /usr/bin/libtool .
29
 
        make
 
27
         --enable-static --enable-shared --enable-maxmem=1024 \
 
28
         --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
 
29
        printf '#!/bin/sh\nexec libtool "$$@"\n' >libtool
 
30
        $(MAKE)
 
31
        $(MAKE) test
 
32
        $(MAKE) -C debian/extra
30
33
 
31
34
        touch build-stamp
32
35
 
34
37
        dh_testdir
35
38
        dh_testroot
36
39
        -rm -f build-stamp
37
 
        -make clean
 
40
        -$(MAKE) clean
 
41
        -$(MAKE) clean -C debian/extra
38
42
        -rm -f libtool libtool.cfg Makefile jconfig.h config.log
39
43
        dh_clean
40
44
 
45
49
        dh_testroot 
46
50
        dh_clean -k
47
51
        dh_installdirs 
 
52
        mkdir --parents debian/tmp/usr/bin \
 
53
                        debian/tmp/usr/lib \
 
54
                        debian/tmp/usr/include \
 
55
                        debian/tmp/usr/share/man/man1
48
56
        $(MAKE) install \
49
57
                prefix=`pwd`/debian/tmp/usr \
50
58
                mandir=`pwd`/debian/tmp/usr/share/man/man1
 
59
        $(MAKE) install -C debian/extra prefix=`pwd`/debian/tmp/usr
51
60
#<ballombe@debian.org>:mjpegtools require this file to build and header say:
52
61
# * These declarations are considered internal to the JPEG library; most
53
62
# * applications using the library shouldn't need to include this file.
59
68
                jconfig.h > debian/tmp/usr/include/jconfig.h
60
69
        # separate out lib package
61
70
        dh_movefiles
62
 
        # Install tests
63
 
        install -m644 debian/libjpeg-progs.test \
64
 
            debian/libjpeg-progs/usr/share/doc/libjpeg-progs/tests/test.sh
65
 
        install testimg.uu testimg.jpg testimg.ppm testimgp.jpg testorig.jpg \
66
 
            testprog.jpg debian/libjpeg-progs/usr/share/doc/libjpeg-progs/tests
67
 
        # Remove empty dirs
68
 
        rmdir debian/tmp/usr/share/man/man1 debian/tmp/usr/share/man
69
 
        rmdir debian/tmp/usr/bin debian/tmp/usr/include debian/tmp/usr/share
70
71
        # Finish it off with debhelper
71
72
        dh_installdocs README
72
73
        dh_installexamples 
73
 
#       dh_installmanpages 
74
74
        dh_installchangelogs change.log
75
75
        dh_strip 
76
76
        dh_compress 
77
77
        dh_fixperms 
78
78
        dh_installdeb 
79
 
        dh_shlibdeps -l`pwd`/debian/tmp/usr/lib 
 
79
        dh_shlibdeps -l`pwd`/debian/libjpeg6b/usr/lib 
80
80
        dh_gencontrol 
81
 
#       dh_makeshlibs
82
81
        dh_md5sums 
83
82
        dh_builddeb 
84
83