~ubuntu-branches/ubuntu/vivid/ghostscript/vivid-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-08-09 20:01:36 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20130809200136-amb6zrr7hnjb5jq9
Tags: 9.08~rc1~dfsg-0ubuntu1
* New upstream release
   - Ghostscript 9.08rc1.
   - We are using the system's liblcms2 and libopenjpeg now.
* debian/patches/020130401-852e545-pxl-xl-driver-produced-drawing-commands-without-setting-color-space.patch:
  Removed patch backported from upstream.
* debian/patches/ojdk-8007925+8007926.patch,
  debian/patches/ojdk-8007927.patch,
  debian/patches/ojdk-8007929.patch,
  debian/patches/ojdk-8009654.patch: Removed patches on build in liblcms2, we
  use the system's liblcms2 now.
* debian/patches/2001_docdir_fix_for_debian.patch: Manually updated to new
  upstream source code.
* debian/patches/2003_support_multiarch.patch: Refreshed with quilt.
* debian/control: Added build dependencies on liblcms2-dev and
  libopenjpeg-dev.
* debian/rules: Check for removed lcms2/ and openjpeg/ subdirectories in
  the repackaging check again, also set build options for shared liblcms2
  and libopenjpeg libraries.
* debian/rules: Makefile.in and configure.ac are in the root directory of
  the source now and do not need to get linked from base/. Also there is no
  gstoraster and gstopxl CUPS filter in the package any more and no
  "install-cups" make target any more.
* debian/control, debian/rules, debian/ghostscript-cups.install,
  debian/ghostscript-cups.ppd-updater: Removed the ghostscript-cups binary
  package. The files are now provided by cups-filters.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 ./jpeg/ \
61
61
 ./jpegxr/ \
62
62
 ./lcms/ \
 
63
 ./lcms2/ \
63
64
 ./libpng/ \
 
65
 ./openjpeg/ \
64
66
 ./tiff/ \
65
67
 ./zlib/
66
68
 
69
71
# put aside upstream-shipped temp files during build but after copyright-check
70
72
upstreamtmpfiles = configure
71
73
pre-build:: debian/stamp-upstreamtmpstuff
72
 
        rm -f configure.ac; ln -s base/configure.ac .
73
 
        rm -f Makefile.in; ln -s base/Makefile.in .
 
74
 
74
75
debian/stamp-upstreamtmpstuff: debian/stamp-copyright-check
75
76
        for file in $(upstreamtmpfiles); do \
76
77
                [ ! -e $$file ] || [ -e $$file.upstream ] || cp -a $$file $$file.upstream; \
81
82
                [ ! -e $$file.upstream ] || mv -f $$file.upstream $$file; \
82
83
        done
83
84
        rm -f debian/stamp-upstreamtmpstuff
84
 
        rm -f configure.ac Makefile.in
85
85
 
86
86
# workaround for autotools-resolved paths ignored in base/unix-auth.mak
87
87
export DEB_HOST_MULTIARCH
106
106
 
107
107
# We use Ghostscript's own LCMS2 as the upstream one does not yet contain
108
108
# the API changes needed for GS 9.07
109
 
gs_opts += WHICH_CMS=lcms2 SHARE_LCMS=0 LCMS2DIR=/usr
110
 
#gs_opts += WHICH_CMS=lcms2 SHARE_LCMS=1 LCMS2DIR=/usr
111
 
#CDBS_BUILD_DEPENDS += , liblcms2-dev
 
109
#gs_opts += WHICH_CMS=lcms2 SHARE_LCMS=0 LCMS2DIR=/usr
 
110
gs_opts += WHICH_CMS=lcms2 SHARE_LCMS=1 LCMS2DIR=/usr
 
111
CDBS_BUILD_DEPENDS += , liblcms2-dev
112
112
 
113
113
# openjpeg requires patching for ICC and CMYK support
114
 
gs_opts += SHARE_JPX=0
 
114
#gs_opts += SHARE_JPX=0
 
115
gs_opts += SHARE_JPX=1
115
116
DEB_CONFIGURE_EXTRA_FLAGS += --enable-openjpeg --without-jasper
116
 
#CDBS_BUILD_DEPENDS += , libopenjeg-dev
 
117
CDBS_BUILD_DEPENDS += , libopenjeg-dev
117
118
 
118
119
gs_opts += SHARE_FT=1
119
120
DEB_CONFIGURE_EXTRA_FLAGS += --enable-freetype
121
122
 
122
123
gs_opts += SHARE_LCUPS=1 SHARE_LCUPSI=1
123
124
gs_opts += CUPSDATA=/usr/share/ppd/ghostscript
124
 
DEB_CONFIGURE_EXTRA_FLAGS += --enable-cups --enable-dbus --with-install-cups
 
125
DEB_CONFIGURE_EXTRA_FLAGS += --enable-cups --enable-dbus
125
126
CDBS_BUILD_DEPENDS += , libcups2-dev (>= 1.3.7), libcupsimage2-dev (>= 1.1.20final+rc1-4)
126
127
CDBS_BUILD_DEPENDS += , libdbus-1-dev
127
 
CDBS_DEPENDS_ghostscript-cups += , ghostscript (>= 8.64~dfsg-8)
128
 
CDBS_RECOMMENDS_ghostscript-cups += , cups, colord
129
 
CDBS_SUGGESTS_ghostscript += , ghostscript-cups
130
128
 
131
129
DEB_MAKE_BUILD_TARGET = so gs.a $(gs_opts)
132
 
DEB_MAKE_INSTALL_TARGET = soinstall install-cups DESTDIR=$(DEB_DESTDIR) $(gs_opts)
 
130
DEB_MAKE_INSTALL_TARGET = soinstall DESTDIR=$(DEB_DESTDIR) $(gs_opts)
133
131
 
134
132
DEB_DH_MAKESHLIBS_ARGS_ghostscript-x = -n
135
133
 
160
158
        [ ! -f Makefile ] || $(MAKE) soclean
161
159
        [ ! -f Makefile ] || $(MAKE) distclean
162
160
# These are somehow left...
163
 
        rm -rf sobin soobj gs.a cups/gstoraster cups/gstopxl
 
161
        rm -rf sobin soobj gs.a
164
162
 
165
163
install/ghostscript::
166
164
        # Remove some of the scripts
174
172
        mkdir -p $(DEB_DESTDIR)/usr/sbin/
175
173
        install -m 755 debian/update-gsfontmap $(DEB_DESTDIR)/usr/sbin
176
174
 
177
 
        # Install the ppd updater data files so that CUPS can update the
178
 
        # PPDs of the already existing queue after each update of the 
179
 
        # ghostscript-cups packages
180
 
        install -D -m 644 debian/ghostscript-cups.ppd-updater $(CURDIR)/debian/ghostscript-cups/usr/share/cups/ppd-updaters/ghostscript-cups
181
 
 
182
175
        # Install Apport hook (Ubuntu only)
183
176
        if dpkg-vendor --is ubuntu; then \
184
177
                install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/ghostscript/usr/share/apport/package-hooks/source_ghostscript.py; \
232
225
# TODO: drop after Squeeze+1 (was introduced before Squeeze)
233
226
CDBS_BREAKS_ghostscript += , ghostscript-x (<< 8.64~dfsg-8)
234
227
 
235
 
# Transition: parts of ghostscript split into ghostscript-cups
236
 
# TODO: drop after Squeeze+1 (was introduced before Squeeze)
237
 
CDBS_CONFLICTS_ghostscript-cups += , ghostscript (<< 8.64~dfsg-8)
238
 
CDBS_REPLACES_ghostscript-cups += , ghostscript (<< 8.64~dfsg-8)
239
 
 
240
228
# Needed for our packaging
241
229
# * recent d-shlibs needed to handle unversioned -dev package and
242
230
#   suppress library dependency here declared indirectly using CDBS