Import print/ghostscript9-agpl-base version 9.16_2
[dports.git] / print / ghostscript9-agpl-base / files / patch-Makefile.in
1 --- Makefile.in.orig    2014-03-26 21:53:48.000000000 +0900
2 +++ Makefile.in 2014-11-23 17:01:12.000000000 +0900
3 @@ -52,9 +52,9 @@
4  # the directories also define the default search path for the
5  # initialization files (gs_*.ps) and the fonts.
6  
7 -INSTALL = $(GLSRCDIR)/instcopy -c
8 -INSTALL_PROGRAM = $(INSTALL) -m 755
9 -INSTALL_DATA = $(INSTALL) -m 644
10 +INSTALL_PROGRAM = ${BSD_INSTALL_PROGRAM}
11 +INSTALL_SCRIPT = ${BSD_INSTALL_SCRIPT}
12 +INSTALL_DATA = ${BSD_INSTALL_DATA}
13  INSTALL_SHARED = @INSTALL_SHARED@
14  
15  prefix = @prefix@
16 @@ -199,7 +199,7 @@
17  # some older JPEG streams that violate the standard. If the JPEG
18  # library built from local sources, the patch will be applied.
19  
20 -SHARE_JPEG=@SHARE_LIBJPEG@
21 +SHARE_JPEG=1
22  JPEG_NAME=jpeg
23  
24  # Define the directory where the PNG library sources are stored,
25 @@ -207,12 +207,12 @@
26  # You may need to change this if the libpng version changes.
27  # See png.mak for more information.
28  
29 -SHARE_LIBPNG=@SHARE_LIBPNG@
30 +SHARE_LIBPNG=1
31  PNGSRCDIR=@LIBPNGDIR@
32  LIBPNG_NAME=png
33  
34  # libtiff
35 -SHARE_LIBTIFF=@SHARE_LIBTIFF@
36 +SHARE_LIBTIFF=1
37  TIFFSRCDIR=@LIBTIFFDIR@
38  TIFFCONFDIR=@LIBTIFFCONFDIR@
39  TIFFPLATFORM=unix
40 @@ -222,7 +222,7 @@
41  # Define the directory where the zlib sources are stored.
42  # See zlib.mak for more information.
43  
44 -SHARE_ZLIB=@SHARE_ZLIB@
45 +SHARE_ZLIB=1
46  ZSRCDIR=@ZLIBDIR@
47  #ZLIB_NAME=gz
48  ZLIB_NAME=z
49 @@ -249,7 +249,7 @@
50  JPX_LIB=@JPX_DECODER@
51  SHARE_JPX=@SHARE_JPX@
52  JPXSRCDIR=@JPXDIR@
53 -JPX_CFLAGS=@JPX_AUTOCONF_CFLAGS@
54 +JPX_CFLAGS=@JPX_AUTOCONF_CFLAGS@ -ffast-math -DOPJ_STATIC -std=c99
55  
56  # uncomment the following three lines and one of the last two to
57  # compile in the Luratech lwf_jp2 codec
58 @@ -336,7 +336,7 @@
59  # Define the added flags for standard, debugging, profiling 
60  # and shared object builds.
61  
62 -CFLAGS_STANDARD=@OPT_CFLAGS@
63 +CFLAGS_STANDARD?=@OPT_CFLAGS@
64  CFLAGS_DEBUG=@DBG_CFLAGS@
65  CFLAGS_PROFILE=-pg @OPT_CFLAGS@
66  CFLAGS_SO=@DYNAMIC_CFLAGS@
67 @@ -389,8 +389,8 @@
68  # Solaris may need -lnsl -lsocket -lposix4.
69  # (Libraries required by individual drivers are handled automatically.)
70  
71 -EXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@
72 -AUXEXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ @AUX_SHARED_ZLIB@
73 +EXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ -Wl,-export-dynamic
74 +AUXEXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ @AUX_SHARED_ZLIB@ -Wl,-export-dynamic
75  
76  # Define the standard libraries to search at the end of linking.
77  # Most platforms require -lpthread for the POSIX threads library;
78 @@ -434,7 +434,7 @@
79  # the pthread library. Otherwise use SYNC=nosync
80  #SYNC=posync
81  #SYNC=nosync
82 -SYNC=@SYNC@
83 +SYNC=nosync
84  
85  # programs we use
86  RM=rm -f
87 @@ -528,28 +528,27 @@
88  #DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev
89  #DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmykog.dev $(DD)fpng.dev
90  DEVICE_DEVS=$(DISPLAY_DEV) @X11_DEVS@
91 -DEVICE_DEVS1=@F_DEVS@
92 -DEVICE_DEVS2=@P_DEVS@
93 -DEVICE_DEVS3=@CUPS_DEVS@
94 -DEVICE_DEVS4=@IJS_DEVS@
95 -DEVICE_DEVS5=@OMNIDEVS@
96 -DEVICE_DEVS6=@PNG_DEVS@
97 -DEVICE_DEVS7=@JBIG2_DEVS@
98 -DEVICE_DEVS8=
99 -DEVICE_DEVS9=@XPS_DEVS@
100 -DEVICE_DEVS10=
101 -DEVICE_DEVS11=
102 -DEVICE_DEVS12=
103 -DEVICE_DEVS13=
104 -DEVICE_DEVS14=
105 -DEVICE_DEVS15=
106 -DEVICE_DEVS16=
107 -DEVICE_DEVS17=
108 -DEVICE_DEVS18=
109 -DEVICE_DEVS19=
110 -DEVICE_DEVS20=
111 -DEVICE_DEVS21=
112 -
113 +#DEVICE_DEVS1=@F_DEVS@
114 +#DEVICE_DEVS2=@P_DEVS@
115 +#DEVICE_DEVS3=@CUPS_DEVS@
116 +#DEVICE_DEVS4=@IJS_DEVS@
117 +#DEVICE_DEVS5=@OMNIDEVS@
118 +#DEVICE_DEVS6=@PNG_DEVS@
119 +#DEVICE_DEVS7=@JBIG2_DEVS@
120 +#DEVICE_DEVS8=
121 +#DEVICE_DEVS9=@XPS_DEVS@
122 +#DEVICE_DEVS10=
123 +#DEVICE_DEVS11=
124 +#DEVICE_DEVS12=
125 +#DEVICE_DEVS13=
126 +#DEVICE_DEVS14=
127 +#DEVICE_DEVS15=
128 +#DEVICE_DEVS16=
129 +#DEVICE_DEVS17=
130 +#DEVICE_DEVS18=
131 +#DEVICE_DEVS19=
132 +#DEVICE_DEVS20=
133 +#DEVICE_DEVS21=
134  
135  # Shared library target to build.
136  GS_SHARED_OBJS=@DYNAMIC_DEVS@
137 @@ -592,6 +591,7 @@
138  # ---------------- End of platform-specific section ---------------- #
139  
140  INSTALL_CONTRIB=@INSTALL_CONTRIB@
141 +include $(GLSRCDIR)/drivers.mak
142  include $(GLSRCDIR)/unixhead.mak
143  include $(GLSRCDIR)/gs.mak
144  include $(GLSRCDIR)/trio.mak