~ubuntu-branches/ubuntu/quantal/ghostscript/quantal-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-06-08 11:06:51 UTC
  • mfrom: (14.1.36 sid)
  • Revision ID: package-import@ubuntu.com-20120608110651-hetjpmtjru0xtxj2
Tags: 9.05~dfsg-6ubuntu1
* Merge with Debian; remaining changes:
  - debian/patches/020120329-be64563-pdfwrite-when-a-charstring-is-not-found-for-a-glyph-use-the-notdef-width-instead-of-0.patch:
    The "pdfwrite" output device uses zero and not the width of /.notdef when
    using /.notdef for a glyph not found in an embedded font. This leads to
    wrong spacing in a PostScript file missing a space glyph.
  - debian/ghostscript-cups.postinst: Removed the post-install script which
    was only there to update the PPDs of existing print queues.
  - debian/rules, debian/ghostscript-cups.ppd-updater: Added data file to
    trigger the update of the PPD files of existing print queues by CUPS and
    to tell CUPS which PPD files to use for the update and how to match them
    with the PPDs of the existing queues.
  - debian/ghostscript-doc.install, debian/ghostscript-doc.doc-base: Install
    the Ghostscript documentation into /usr/share/doc/ghostscript-doc instead
    of /usr/share/doc/ghostscript.
  - debian/control, debian/rules, debian/libgs__VER__.install.in,
    debian/libgs-dev.install: Stop using d-shlibmove, it is not compatible
    with liblcms2.
  - debian/libgs__VER__-common.postinst.in,
    debian/libgs__VER__-common.prerm.in: Create a symlink
    /usr/share/ghostscript/current to the /usr/share/ghostscript/<version>
    directory of the newest installed libgs<version>-common package, to have
    version-independent access to the Ghostscript files.
  - debian/rules: Generate ABI version number (variable "abi") correctly,
    cutting off repackaging and pre-release parts.
  - debian/rules: update tarball MD5 value to what we already have uploaded
    in Ubuntu.
  - debian/rules, debian/control: Removed build dependency on liblcms1-dev,
    icc34.h is shipped with Ghostscript now.
  - debian/rules: Install ghostscript-cups.ppd-updater and remove the
    dependency on cups-client from ghostscript-cups.
  - debian/rules: clean up after leftover gstoraster/gstopxl instead of the
    pstoraster/pstopxl old names.
  - debian/rules, debian/ubuntu/apport-hook.py: Apport hook.
  - debian/symbols.common: added DoubleGlyphList@Base.
* debian/rules: remove the ./Resource/CMap/Identity-UTF16-H files from the
  DEB_UPSTREAM_REPACKAGE_EXCLUDES list. Due to an error in the previous
  upload it found its way in the source tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
DEB_UPSTREAM_URL = http://downloads.ghostscript.com/public
40
40
DEB_UPSTREAM_TARBALL_MD5 = 8bcef1f33ddf8a4d12b2cf8da385c191
41
41
 
 
42
# Non-DFSG license limited to verbatim copying
 
43
DEB_UPSTREAM_REPACKAGE_EXCLUDES += \
 
44
 ./Resource/CMap/90ms-RKSJ-UCS2 \
 
45
 ./Resource/CMap/90pv-RKSJ-UCS2 \
 
46
 ./Resource/CMap/90pv-RKSJ-UCS2C \
 
47
 ./Resource/CMap/Adobe-CNS1-B5pc \
 
48
 ./Resource/CMap/Adobe-CNS1-ETenms-B5 \
 
49
 ./Resource/CMap/Adobe-CNS1-H-CID \
 
50
 ./Resource/CMap/Adobe-CNS1-H-Host \
 
51
 ./Resource/CMap/Adobe-CNS1-H-Mac \
 
52
 ./Resource/CMap/Adobe-CNS1-UCS2 \
 
53
 ./Resource/CMap/Adobe-GB1-GBK-EUC \
 
54
 ./Resource/CMap/Adobe-GB1-GBpc-EUC \
 
55
 ./Resource/CMap/Adobe-GB1-H-CID \
 
56
 ./Resource/CMap/Adobe-GB1-H-Host \
 
57
 ./Resource/CMap/Adobe-GB1-H-Mac \
 
58
 ./Resource/CMap/Adobe-GB1-UCS2 \
 
59
 ./Resource/CMap/Adobe-Japan1-90ms-RKSJ \
 
60
 ./Resource/CMap/Adobe-Japan1-90pv-RKSJ \
 
61
 ./Resource/CMap/Adobe-Japan1-H-CID \
 
62
 ./Resource/CMap/Adobe-Japan1-H-Host \
 
63
 ./Resource/CMap/Adobe-Japan1-H-Mac \
 
64
 ./Resource/CMap/Adobe-Japan1-PS-H \
 
65
 ./Resource/CMap/Adobe-Japan1-PS-V \
 
66
 ./Resource/CMap/Adobe-Japan1-UCS2 \
 
67
 ./Resource/CMap/Adobe-Korea1-H-CID \
 
68
 ./Resource/CMap/Adobe-Korea1-H-Host \
 
69
 ./Resource/CMap/Adobe-Korea1-H-Mac \
 
70
 ./Resource/CMap/Adobe-Korea1-KSCms-UHC \
 
71
 ./Resource/CMap/Adobe-Korea1-KSCpc-EUC \
 
72
 ./Resource/CMap/Adobe-Korea1-UCS2 \
 
73
 ./Resource/CMap/B5pc-UCS2 \
 
74
 ./Resource/CMap/B5pc-UCS2C \
 
75
 ./Resource/CMap/CNS01-RKSJ-H \
 
76
 ./Resource/CMap/CNS02-RKSJ-H \
 
77
 ./Resource/CMap/CNS03-RKSJ-H \
 
78
 ./Resource/CMap/CNS04-RKSJ-H \
 
79
 ./Resource/CMap/CNS05-RKSJ-H \
 
80
 ./Resource/CMap/CNS06-RKSJ-H \
 
81
 ./Resource/CMap/CNS07-RKSJ-H \
 
82
 ./Resource/CMap/CNS15-RKSJ-H \
 
83
 ./Resource/CMap/ETen-B5-UCS2 \
 
84
 ./Resource/CMap/GB-RKSJ-H \
 
85
 ./Resource/CMap/GBK-EUC-UCS2 \
 
86
 ./Resource/CMap/GBT-RKSJ-H \
 
87
 ./Resource/CMap/GBpc-EUC-UCS2 \
 
88
 ./Resource/CMap/GBpc-EUC-UCS2C \
 
89
 ./Resource/CMap/HK-RKSJ-H \
 
90
 ./Resource/CMap/Hojo-RKSJ-H \
 
91
 ./Resource/CMap/KSC-RKSJ-H \
 
92
 ./Resource/CMap/KSC2-RKSJ-H \
 
93
 ./Resource/CMap/KSCms-UHC-UCS2 \
 
94
 ./Resource/CMap/KSCpc-EUC-UCS2 \
 
95
 ./Resource/CMap/KSCpc-EUC-UCS2C \
 
96
 ./Resource/CMap/TCVN-RKSJ-H \
 
97
 ./Resource/CMap/UCS2-90ms-RKSJ \
 
98
 ./Resource/CMap/UCS2-90pv-RKSJ \
 
99
 ./Resource/CMap/UCS2-B5pc \
 
100
 ./Resource/CMap/UCS2-ETen-B5 \
 
101
 ./Resource/CMap/UCS2-GBK-EUC \
 
102
 ./Resource/CMap/UCS2-GBpc-EUC \
 
103
 ./Resource/CMap/UCS2-KSCms-UHC \
 
104
 ./Resource/CMap/UCS2-KSCpc-EUC
 
105
DEB_UPSTREAM_REPACKAGE_EXCLUDES += \
 
106
 ./Resource/CMap/Identity-UTF16-V
42
107
# Sources unavailable
43
 
# (PDFs kept commented out as reminder, in case jasper iss included)
 
108
# (PDFs kept commented out as reminder, in case jasper is included)
44
109
#DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./jasper/doc/*.pdf
45
110
# convenience libraries cluttering authorship/licensing tracking
46
 
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./cups/libs/
47
 
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./expat/ ./freetype/ ./icclib/ ./ijs/ ./jasper/ ./jbig2dec/ ./lcms/ ./lcms2/ ./libpng/ ./openjpeg/ ./tiff/ ./zlib/
48
 
# convenience library enabling old non-standard option (see bug#582521)
49
 
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./jpeg/
50
 
# convenience library implementing patented controversial JPEG XR format
51
 
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./jpegxr/
 
111
#  * jpeg would enable old non-standard option (see bug#582521)
 
112
#  * jpegxr would enable patented controversial JPEG XR format
 
113
DEB_UPSTREAM_REPACKAGE_EXCLUDES += \
 
114
 ./cups/libs/ \
 
115
 ./expat/ \
 
116
 ./freetype/ \
 
117
 ./ijs/ \
 
118
 ./jasper/ \
 
119
 ./jbig2dec/ \
 
120
 ./jpeg/ \
 
121
 ./jpegxr/ \
 
122
 ./lcms/ \
 
123
 ./lcms2/ \
 
124
 ./libpng/ \
 
125
 ./openjpeg/ \
 
126
 ./tiff/ \
 
127
 ./zlib/
52
128
 
53
129
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(examples/.*\.pdf|iccprofiles/.*\.icc|toolbin/.*/.*\.icc|Resource/Font/.*|debian/(changelog|copyright(|_hints|_newhints)))$
54
130
 
71
147
 
72
148
# Use system libraries
73
149
# (listed in order of appearance)
74
 
gs_opts = SHARE_JPEG=1 SHARE_LIBPNG=1 SHARE_LIBTIFF=1 SHARE_ZLIB=1 SHARE_JBIG2=1 SHARE_JPX=1 SHARE_IJS=1 SHARE_EXPAT=1
75
 
 
76
 
# FIXME: build without PIC for -dev package
77
 
CFLAGS += -fPIC
 
150
gs_opts = \
 
151
 SHARE_JPEG=1 \
 
152
 SHARE_LIBPNG=1 \
 
153
 SHARE_LIBTIFF=1 \
 
154
 SHARE_ZLIB=1 \
 
155
 SHARE_JBIG2=1 \
 
156
 SHARE_IJS=1 \
 
157
 SHARE_EXPAT=1
78
158
 
79
159
DEB_CONFIGURE_EXTRA_FLAGS = \
80
 
        --with-ijs --with-jbig2dec --with-jasper --with-system-libtiff \
81
 
        --with-x --disable-gtk \
82
 
        --enable-dynamic --with-omni --disable-compile-inits \
83
 
        --with-drivers=ALL \
84
 
        --with-fontpath=/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/fonts
 
160
 --with-ijs --with-jbig2dec --with-system-libtiff \
 
161
 --with-x --disable-gtk \
 
162
 --enable-dynamic --with-omni --disable-compile-inits \
 
163
 --with-drivers=ALL \
 
164
 --with-fontpath=/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/fonts
85
165
 
86
166
gs_opts += WHICH_CMS=lcms2 SHARE_LCMS=1 LCMS2DIR=/usr
87
167
CDBS_BUILD_DEPENDS += , liblcms2-dev
88
168
 
 
169
# openjpeg requires patching for ICC and CMYK support
 
170
gs_opts += SHARE_JPX=1
 
171
DEB_CONFIGURE_EXTRA_FLAGS += --disable-openjpeg --with-jasper
 
172
CDBS_BUILD_DEPENDS += , libjasper-dev
 
173
 
89
174
gs_opts += SHARE_FT=1
90
175
DEB_CONFIGURE_EXTRA_FLAGS += --enable-freetype
91
176
CDBS_BUILD_DEPENDS += , libfreetype6-dev
102
187
DEB_MAKE_BUILD_TARGET = so gs.a $(gs_opts)
103
188
DEB_MAKE_INSTALL_TARGET = soinstall install-cups DESTDIR=$(DEB_DESTDIR) $(gs_opts)
104
189
 
 
190
DEB_DH_MAKESHLIBS_ARGS_ghostscript-x = -n
 
191
 
105
192
SEDRULE_CONTENT = 's/__ABI__/$(abi)/g;s/__VER__/$(major)/g'
106
193
 
107
194
pre-build:: debian/control.in.in
117
204
infiles = $(filter-out debian/control.in debian/control.in.in, $(wildcard debian/*.in))
118
205
outfiles = $(subst $(libname)__VER__,$(libpkgname),$(basename $(infiles)))
119
206
pre-build:: $(outfiles)
120
 
        rm -f configure.ac; ln -s base/configure.ac .
121
 
        rm -f Makefile.in; ln -s base/Makefile.in .
122
207
$(outfiles): update-config debian/stamp-copyright-check
123
208
        sed $(SEDRULE_CONTENT) <$(subst $(libpkgname),$(libname)__VER__,$@).in >$@
124
209
 
125
210
clean::
126
211
        rm -f $(outfiles)
127
 
        rm -f configure.ac Makefile.in
128
212
 
129
213
pre-build clean:: fail-source-not-repackaged
130
214
 
136
220
 
137
221
install/ghostscript::
138
222
        # Remove some of the scripts
139
 
        rm $(DEB_DESTDIR)/usr/bin/unix-lpr.sh $(DEB_DESTDIR)/usr/bin/lprsetup.sh
 
223
        rm -f $(DEB_DESTDIR)/usr/bin/unix-lpr.sh $(DEB_DESTDIR)/usr/bin/lprsetup.sh $(DEB_DESTDIR)/usr/bin/pv.sh $(DEB_DESTDIR)/usr/bin/fixmswrd.pl
140
224
 
141
225
        # Do not include the Ghostscript loader executable with GTK support
142
226
        rm -f $(DEB_DESTDIR)/usr/bin/gsx
160
244
        # Strip CMap files (shipped separately, registered with DeFoMa)
161
245
        rm -rf $(DEB_DESTDIR)/usr/share/ghostscript/$(abi)/Resource/CMap
162
246
 
 
247
# Recommend fonts-droid (not ship DroidSansFallback.ttf)
 
248
CDBS_RECOMMENDS_$(datapkgname) += , fonts-droid
 
249
install/$(datapkgname)::
 
250
        rm -f $(DEB_DESTDIR)/usr/share/ghostscript/$(abi)/Resource/CIDFSubst/DroidSansFallback.ttf
 
251
 
163
252
install/libgs-dev::
164
253
        mkdir -p $(DEB_DESTDIR)/usr/lib/
165
254
        install -m 644 gs.a \
179
268
 
180
269
# Needed at build time
181
270
# (separated in core, X11 and autotools dependencies)
182
 
CDBS_BUILD_DEPENDS += , libjpeg-dev, libpaper-dev, libpng-dev, libz-dev, libfontconfig1-dev, libjasper-dev, libtiff-dev, libexpat-dev, libjbig2dec-dev, libidn11-dev, libijs-dev
 
271
CDBS_BUILD_DEPENDS += , libjpeg-dev, libpaper-dev, libpng-dev, libz-dev, libfontconfig1-dev, libtiff-dev, libexpat-dev, libjbig2dec-dev, libidn11-dev, libijs-dev
183
272
CDBS_BUILD_DEPENDS += , freeglut3-dev | libglut-dev, libxt-dev, libxext-dev, libx11-dev, libice-dev, libsm-dev
184
273
CDBS_BUILD_DEPENDS += , pkg-config
185
274
 
186
275
# Needed (always, often, sometimes) at runtime
 
276
# TODO: drop gs-cjk-resource after Wheezy+1 (obsoleted before Wheezy)
187
277
CDBS_DEPENDS_ghostscript += , gsfonts (>= 6.0-1), debconf | debconf-2.0, debianutils (>= 1.6), $(libpkgname) (= $(DEB_VERSION))
188
278
CDBS_DEPENDS_ghostscript-x += , ghostscript (= $(DEB_VERSION))
189
279
CDBS_DEPENDS_$(libpkgname) += , poppler-data (>= 0.4.5-3~) | gs-cjk-resource
194
284
# Public virtual packages
195
285
CDBS_PROVIDES_ghostscript += , postscript-viewer
196
286
 
197
 
# Transitional quirk: gs-esp merged into ghostscript
198
 
# TODO: drop when unused (was introduced before Lenny)
199
 
CDBS_PROVIDES_ghostscript += , gs-esp
200
 
 
201
287
# Transitional quirk: parts of ghostscript split into ghostscript-x
202
288
# TODO: drop after Squeeze+1 (was introduced before Squeeze)
203
289
CDBS_BREAKS_ghostscript += , ghostscript-x (<< 8.64~dfsg-8)