~ubuntu-branches/ubuntu/jaunty/ghostscript/jaunty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2009-01-20 16:40:45 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120164045-lnfhi0n30o5lwhwa
Tags: 8.64.dfsg.1~svn9377-0ubuntu1
* New upstream release (SVN rev 9377)
   o Fixes many bugs concerning PDF rendering, to make the PDF printing
     workflow correctly working.
   o Fixes long-standing bugs in many drivers, like input paper tray and
     duplex options not working for the built-in PCL 4, 5, 5c, 5e, and
     6/XL drivers, PDF input not working for bjc600, bjc800, and cups
     output devices, several options not working and uninitialized
     memory with cups output device.
   o Merged nearly all patches of the Ubuntu and Debian packages upstream.
   o Fixes LP: #317810, LP: #314439, LP: #314018.
* debian/patches/03_libpaper_support.dpatch,
  debian/patches/11_gs-cjk_font_glyph_handling_fix.dpatch,
  debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch,
  debian/patches/13_gs-cjk_cjkps_examples.dpatch,
  debian/patches/20_bbox_segv_fix.dpatch,
  debian/patches/21_brother_7x0_gdi_fix.dpatch,
  debian/patches/22_epsn_margin_workaround.dpatch,
  debian/patches/24_gs_man_fix.dpatch,
  debian/patches/25_toolbin_insecure_tmp_usage_fix.dpatch,
  debian/patches/26_assorted_script_fixes.dpatch,
  debian/patches/29_gs_css_fix.dpatch,
  debian/patches/30_ps2pdf_man_improvement.dpatch,
  debian/patches/31_fix-gc-sigbus.dpatch,
  debian/patches/34_ftbfs-on-hurd-fix.dpatch,
  debian/patches/35_disable_libcairo.dpatch,
  debian/patches/38_pxl-duplex.dpatch,
  debian/patches/39_pxl-resolution.dpatch,
  debian/patches/42_gs-init-ps-delaybind-fix.dpatch,
  debian/patches/45_bjc600-bjc800-pdf-input.dpatch,
  debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory-fix.dpatch,
  debian/patches/50_lips4-floating-point-exception.dpatch,
  debian/patches/52_cups-device-logging.dpatch,
  debian/patches/55_pcl-input-slot-fix.dpatch,
  debian/patches/57_pxl-input-slot-fix.dpatch,
  debian/patches/60_pxl-cups-driver-pdf.dpatch,
  debian/patches/62_onebitcmyk-pdf.dpatch,
  debian/patches/65_too-big-temp-files-1.dpatch,
  debian/patches/67_too-big-temp-files-2.dpatch,
  debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch:
  Removed, applied upstream.
* debian/patches/01_docdir_fix_for_debian.dpatch,
  debian/patches/02_gs_man_fix_debian.dpatch,
  debian/patches/01_docdir-fix-for-debian.dpatch,
  debian/patches/02_docdir-fix-for-debian.dpatch: Renamed patches to
  make merging with Debian easier.
* debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch, 
  debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch:
  regenerated for new source directory structure.
* debian/rules: Corrected paths to remove cidfmap (it is in Resource/Init/
  in GS 8.64) and to install headers (source paths are psi/ and base/ now).
* debian/rules: Remove all fontmaps, as DeFoMa replaces them.
* debian/local/pdftoraster/pdftoraster.c,
  debian/local/pdftoraster/pdftoraster.convs, debian/rules: Removed
  added pdftoraster filter and use the one which comes with Ghostscript.
* debian/ghostscript.links: s/8.63/8.64/

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        [ ! -f Makefile ] || $(MAKE) soclean
54
54
        [ ! -f Makefile ] || $(MAKE) distclean
55
55
        # These are somehow left...
56
 
        -rm -rf sobin soobj cups/pstopxl cups/pstoraster debian/local/pdftoraster/pdftoraster
 
56
        -rm -rf sobin soobj cups/pstopxl cups/pstoraster
57
57
 
58
58
build/ghostscript::
59
59
        #/usr/bin/docbook-to-man debian/ghostscript.sgml > ghostscript.1
60
 
        gcc $(CFLAGS) $(LDFLAGS) `cups-config --image --libs` -DBINDIR='"/usr/bin"' -DGS='"gs"' -o debian/local/pdftoraster/pdftoraster debian/local/pdftoraster/pdftoraster.c
 
60
        $(MAKE) cups
61
61
 
62
62
build/ghostscript-x::
63
63
        $(MAKE) obj/X11.so
75
75
           $(CURDIR)/debian/ghostscript/usr/share/cups/mime/ 2> /dev/null || :
76
76
        rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/ghostscript/etc/cups
77
77
        rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/ghostscript/etc
78
 
        install -m 755 debian/local/pdftoraster/pdftoraster \
79
 
           $(CURDIR)/debian/ghostscript/usr/lib/cups/filter/
80
 
        install -m 644 debian/local/pdftoraster/pdftoraster.convs \
81
 
           $(CURDIR)/debian/ghostscript/usr/share/cups/mime/
82
78
 
83
 
        # Install DeFoMa script
 
79
        # Install Defoma script
84
80
        install -m 644 $(CURDIR)/debian/gs.defoma $(CURDIR)/debian/ghostscript/usr/share/defoma/scripts
85
81
 
86
 
        # Remove Ghostscript's cidfmap, so that DeFoMa gets actually used
87
 
        # (otherwise Ubuntu's CJK fonts will not get found by Ghostscript)
88
 
        rm $(CURDIR)/debian/ghostscript/usr/share/ghostscript/*/lib/cidfmap
89
 
 
90
82
        # Remove some of the scripts
91
83
        rm $(CURDIR)/debian/ghostscript/usr/bin/unix-lpr.sh $(CURDIR)/debian/ghostscript/usr/bin/lprsetup.sh $(CURDIR)/debian/ghostscript/usr/bin/pv.sh $(CURDIR)/debian/ghostscript/usr/bin/fixmswrd.pl
92
84
 
93
85
        # Do not include the Ghostscript loader executable with GTK support
94
86
        rm -f $(CURDIR)/debian/ghostscript/usr/bin/gsx
95
87
 
 
88
        # Do not include the shipped Fontmaps, since Fontmaps will be
 
89
        # automatically generated by Defoma. 
 
90
        # You may find them in /var/lib/defoma/gs.d/dirs/fonts/
 
91
        GSVERSION=`ls -1 $(CURDIR)/debian/ghostscript/usr/share/ghostscript/ | head -1`; \
 
92
        rm -f $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Init/Fontmap*; \
 
93
        rm -f $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Init/cidfmap
 
94
 
96
95
        # Rename /usr/bin/gsc, to not conflict with gambc
97
96
        mv $(CURDIR)/debian/ghostscript/usr/bin/gsc $(CURDIR)/debian/ghostscript/usr/bin/gs
98
97
 
143
142
        mkdir -p $(CURDIR)/debian/libgs-dev/usr/lib/
144
143
        cp -P sobin/libgs.so $(CURDIR)/debian/libgs-dev/usr/lib/
145
144
        mkdir -p $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
146
 
        install -m 644 $(CURDIR)/src/iapi.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
147
 
        install -m 644 $(CURDIR)/src/ierrors.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
148
 
        install -m 644 $(CURDIR)/src/gdevdsp.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
 
145
        install -m 644 $(CURDIR)/psi/iapi.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
 
146
        install -m 644 $(CURDIR)/psi/ierrors.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript
 
147
        install -m 644 $(CURDIR)/base/gdevdsp.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript