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

« back to all changes in this revision

Viewing changes to base/zlib.mak

  • 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:
 
1
#  Copyright (C) 2001-2006 Artifex Software, Inc.
 
2
#  All Rights Reserved.
 
3
#
 
4
#  This software is provided AS-IS with no warranty, either express or
 
5
#  implied.
 
6
#
 
7
#  This software is distributed under license and may not be copied, modified
 
8
#  or distributed except as expressly authorized under the terms of that
 
9
#  license.  Refer to licensing information at http://www.artifex.com/
 
10
#  or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
 
11
#  San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
 
12
#
 
13
# $Id: zlib.mak 8022 2007-06-05 22:23:38Z giles $
 
14
# makefile for zlib library code.
 
15
# Users of this makefile must define the following:
 
16
#       GSSRCDIR - the GS library source directory
 
17
#       ZSRCDIR - the source directory
 
18
#       ZGENDIR - the generated intermediate file directory
 
19
#       ZOBJDIR - the object directory
 
20
#       SHARE_ZLIB - 0 to compile zlib, 1 to share
 
21
#       ZLIB_NAME - if SHARE_ZLIB=1, the name of the shared library
 
22
 
 
23
# This partial makefile compiles the zlib library for use in Ghostscript.
 
24
# You can get the source code for this library from:
 
25
#   http://www.gzip.org/zlib/
 
26
#   http://www.libpng.org/pub/png/src/
 
27
#       zlib-#.#.#.tar.gz or zlib###.zip
 
28
# Please see Ghostscript's `Make.htm' file for instructions about how to
 
29
# unpack these archives.
 
30
#
 
31
# When each version of Ghostscript is released, we copy the associated
 
32
# version of the zlib library to
 
33
#       ftp://ftp.cs.wisc.edu/ghost/3rdparty/
 
34
# for more convenient access.
 
35
#
 
36
# This makefile is known to work with zlib source version 1.2.1.
 
37
# It will only work with earlier versions (1.1.4) when SHARE_ZLIB=1.
 
38
# Note that there are obscure bugs in zlib versions before 1.1.3 that
 
39
# may cause the FlateDecode filter to produce an occasional ioerror
 
40
# and there is a serious security problem with 1.1.3: we strongly
 
41
# recommend using version 1.1.4 or later.
 
42
 
 
43
ZSRC=$(ZSRCDIR)$(D)
 
44
ZGEN=$(ZGENDIR)$(D)
 
45
ZOBJ=$(ZOBJDIR)$(D)
 
46
ZO_=$(O_)$(ZOBJ)
 
47
 
 
48
# We need D_, _D_, and _D because the OpenVMS compiler uses different
 
49
# syntax from other compilers.
 
50
# ZI_ and ZF_ are defined in gs.mak.
 
51
ZCCFLAGS=$(I_)$(ZI_)$(_I) $(ZF_) $(D_)verbose$(_D_)-1$(_D)
 
52
ZCC=$(CC_) $(ZCCFLAGS)
 
53
 
 
54
# Define the name of this makefile.
 
55
ZLIB_MAK=$(GLSRC)zlib.mak
 
56
 
 
57
z.clean : z.config-clean z.clean-not-config-clean
 
58
 
 
59
### WRONG.  MUST DELETE OBJ AND GEN FILES SELECTIVELY.
 
60
z.clean-not-config-clean :
 
61
        $(RM_) $(ZOBJ)*.$(OBJ)
 
62
 
 
63
z.config-clean :
 
64
        $(RMN_) $(ZGEN)zlib*.dev $(ZGEN)crc32*.dev
 
65
 
 
66
ZDEP=$(AK)
 
67
 
 
68
# Code common to compression and decompression.
 
69
 
 
70
zlibc_=$(ZOBJ)zutil.$(OBJ)
 
71
$(ZGEN)zlibc.dev : $(ZLIB_MAK) $(ECHOGS_XE) $(zlibc_)
 
72
        $(SETMOD) $(ZGEN)zlibc $(zlibc_)
 
73
 
 
74
$(ZOBJ)zutil.$(OBJ) : $(ZSRC)zutil.c $(ZDEP)
 
75
        $(ZCC) $(ZO_)zutil.$(OBJ) $(C_) $(ZSRC)zutil.c
 
76
 
 
77
# Encoding (compression) code.
 
78
 
 
79
$(ZGEN)zlibe.dev : $(TOP_MAKEFILES) $(ZGEN)zlibe_$(SHARE_ZLIB).dev
 
80
        $(CP_) $(ZGEN)zlibe_$(SHARE_ZLIB).dev $(ZGEN)zlibe.dev
 
81
 
 
82
$(ZGEN)zlibe_1.dev : $(TOP_MAKEFILES) $(ZLIB_MAK) $(ECHOGS_XE)
 
83
        $(SETMOD) $(ZGEN)zlibe_1 -lib $(ZLIB_NAME)
 
84
 
 
85
zlibe_=$(ZOBJ)adler32.$(OBJ) $(ZOBJ)deflate.$(OBJ) \
 
86
        $(ZOBJ)compress.$(OBJ) $(ZOBJ)trees.$(OBJ) $(ZOBJ)crc32.$(OBJ)
 
87
$(ZGEN)zlibe_0.dev : $(ZLIB_MAK) $(ECHOGS_XE) $(ZGEN)zlibc.dev $(zlibe_)
 
88
        $(SETMOD) $(ZGEN)zlibe_0 $(zlibe_)
 
89
        $(ADDMOD) $(ZGEN)zlibe_0 -include $(ZGEN)zlibc.dev
 
90
 
 
91
$(ZOBJ)adler32.$(OBJ) : $(ZSRC)adler32.c $(ZDEP)
 
92
        $(ZCC) $(ZO_)adler32.$(OBJ) $(C_) $(ZSRC)adler32.c
 
93
 
 
94
$(ZOBJ)deflate.$(OBJ) : $(ZSRC)deflate.c $(ZDEP)
 
95
        $(ZCC) $(ZO_)deflate.$(OBJ) $(C_) $(ZSRC)deflate.c
 
96
 
 
97
# new file in zlib 1.2.x
 
98
$(ZOBJ)compress.$(OBJ) : $(ZSRC)compress.c $(ZDEP)
 
99
        $(ZCC) $(ZO_)compress.$(OBJ) $(C_) $(ZSRC)compress.c
 
100
 
 
101
$(ZOBJ)trees.$(OBJ) : $(ZSRC)trees.c $(ZDEP)
 
102
        $(ZCC) $(ZO_)trees.$(OBJ) $(C_) $(ZSRC)trees.c
 
103
 
 
104
# The zlib filters per se don't need crc32, but libpng versions starting
 
105
# with 0.90 do.
 
106
 
 
107
$(ZGEN)crc32.dev : $(TOP_MAKEFILES) $(ZGEN)crc32_$(SHARE_ZLIB).dev
 
108
        $(CP_) $(ZGEN)crc32_$(SHARE_ZLIB).dev $(ZGEN)crc32.dev
 
109
 
 
110
$(ZGEN)crc32_1.dev : $(TOP_MAKEFILES) $(ZLIB_MAK) $(ECHOGS_XE)
 
111
        $(SETMOD) $(ZGEN)crc32_1 -lib $(ZLIB_NAME)
 
112
 
 
113
$(ZGEN)crc32_0.dev : $(ZLIB_MAK) $(ECHOGS_XE) $(ZOBJ)crc32.$(OBJ)
 
114
        $(SETMOD) $(ZGEN)crc32_0 $(ZOBJ)crc32.$(OBJ)
 
115
 
 
116
# We have to compile crc32 without warnings, because it defines 32-bit
 
117
# constants that produces gcc warnings with -Wtraditional.
 
118
$(ZOBJ)crc32.$(OBJ) : $(ZSRC)crc32.c $(ZDEP)
 
119
        $(CC_NO_WARN) $(ZCCFLAGS) $(ZO_)crc32.$(OBJ) $(C_) $(ZSRC)crc32.c
 
120
 
 
121
# Decoding (decompression) code.
 
122
 
 
123
$(ZGEN)zlibd.dev : $(TOP_MAKEFILES) $(ZGEN)zlibd_$(SHARE_ZLIB).dev
 
124
        $(CP_) $(ZGEN)zlibd_$(SHARE_ZLIB).dev $(ZGEN)zlibd.dev
 
125
 
 
126
$(ZGEN)zlibd_1.dev : $(TOP_MAKEFILES) $(ZLIB_MAK) $(ECHOGS_XE)
 
127
        $(SETMOD) $(ZGEN)zlibd_1 -lib $(ZLIB_NAME)
 
128
 
 
129
# zlibd[12]_ list the decompression source files for zlib 1.4.x
 
130
zlibd1_=$(ZOBJ)infblock.$(OBJ) $(ZOBJ)infcodes.$(OBJ) $(ZOBJ)inffast.$(OBJ)
 
131
zlibd2_=$(ZOBJ)inflate.$(OBJ) $(ZOBJ)inftrees.$(OBJ) $(ZOBJ)infutil.$(OBJ) $(ZOBJ)crc32.$(OBJ)
 
132
 
 
133
# shorter list of files for zlib 1.2.x
 
134
zlibd_=$(ZOBJ)inffast.$(OBJ) $(ZOBJ)inflate.$(OBJ) $(ZOBJ)inftrees.$(OBJ) $(ZOBJ)uncompr.$(OBJ)
 
135
 
 
136
 
 
137
$(ZGEN)zlibd_0.dev : $(ZLIB_MAK) $(ECHOGS_XE) $(ZGEN)zlibc.dev $(zlibd_)
 
138
        $(SETMOD) $(ZGEN)zlibd_0 $(zlibd_)
 
139
        $(ADDMOD) $(ZGEN)zlibd_0 -include $(ZGEN)zlibc.dev
 
140
 
 
141
$(ZOBJ)infblock.$(OBJ) : $(ZSRC)infblock.c $(ZDEP)
 
142
        $(ZCC) $(ZO_)infblock.$(OBJ) $(C_) $(ZSRC)infblock.c
 
143
 
 
144
$(ZOBJ)infcodes.$(OBJ) : $(ZSRC)infcodes.c $(ZDEP)
 
145
        $(ZCC) $(ZO_)infcodes.$(OBJ) $(C_) $(ZSRC)infcodes.c
 
146
 
 
147
$(ZOBJ)inffast.$(OBJ) : $(ZSRC)inffast.c $(ZDEP)
 
148
        $(ZCC) $(ZO_)inffast.$(OBJ) $(C_) $(ZSRC)inffast.c
 
149
 
 
150
$(ZOBJ)inflate.$(OBJ) : $(ZSRC)inflate.c $(ZDEP)
 
151
        $(ZCC) $(ZO_)inflate.$(OBJ) $(C_) $(ZSRC)inflate.c
 
152
 
 
153
$(ZOBJ)inftrees.$(OBJ) : $(ZSRC)inftrees.c $(ZDEP)
 
154
        $(ZCC) $(ZO_)inftrees.$(OBJ) $(C_) $(ZSRC)inftrees.c
 
155
 
 
156
$(ZOBJ)infutil.$(OBJ) : $(ZSRC)infutil.c $(ZDEP)
 
157
        $(ZCC) $(ZO_)infutil.$(OBJ) $(C_) $(ZSRC)infutil.c
 
158
 
 
159
# new file in zlib 1.2.x
 
160
$(ZOBJ)uncompr.$(OBJ) : $(ZSRC)uncompr.c $(ZDEP)
 
161
        $(ZCC) $(ZO_)uncompr.$(OBJ) $(C_) $(ZSRC)uncompr.c
 
162