return index+1;
}
}
+commit 6f6e28de040e17580fa2a92ce65368cd13ca9964
+Author: Chris Liddell <chris.liddell@artifex.com>
+Date: Tue Feb 22 16:10:08 2011 +0000
+
+ Tweak to allow compressed romfs to be built when we're configured
+ to use the system's zlib rather than our own.
+
+ As a side effect of this, freetype is now configured to use the
+ same zlib instance as Ghostscript (instead of freetype's own
+ subset of zlib sources).
+
+ Bug 691986
+
+ No cluster differences expected.
+
+ git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12184 a1074d23-0009-0410-80fe-cf8c14f379e6
+
+diff --git a/gs/base/lib.mak b/gs/base/lib.mak
+index d97c3d4..44275b4 100644
+--- a/gs/base/lib.mak
++++ b/gs/base/lib.mak
+@@ -2823,10 +2823,14 @@
+
+ # Define the ZLIB modules needed by mnkromfs here to factor it out of top makefiles
+ # Also put the .h dependencies here for the same reason
+-MKROMFS_ZLIB_OBJS=$(GLOBJ)compress.$(OBJ) $(GLOBJ)deflate.$(OBJ) \
++MKROMFS_ZLIB_OBJ_1=
++
++MKROMFS_ZLIB_OBJS_0=$(GLOBJ)compress.$(OBJ) $(GLOBJ)deflate.$(OBJ) \
+ $(GLOBJ)zutil.$(OBJ) $(GLOBJ)adler32.$(OBJ) $(GLOBJ)crc32.$(OBJ) \
+ $(GLOBJ)trees.$(OBJ)
+
++MKROMFS_ZLIB_OBJS=$(MKROMFS_ZLIB_OBJS_$(SHARE_ZLIB))
++
+ MKROMFS_COMMON_DEPS=$(stdpre_h) $(stdint__h) $(gsiorom_h) $(arch_h)\
+ $(gsmemret_h) $(gsmalloc_h) $(gsstype_h) $(gp_h) $(time__h)
+
--- /dev/null
+--- ghostscript-9.02/configure.ac~ 2011-07-12 22:52:14.000000000 +0200
++++ ghostscript-9.02/configure.ac 2011-07-12 23:01:05.464937334 +0200
+@@ -594,6 +594,8 @@
+ local directory named 'zlib'. See http://www.gzip.org/zlib/
+ for more information.
+ ])
++else
++ LIBS="$LIBS -lz"
+ fi
+
+ dnl if GS is to use the system zlib, freetype
Summary(tr.UTF-8): PostScript & PDF yorumlayıcı ve gösterici
Name: ghostscript
Version: 9.02
-Release: 3
+Release: 4
License: GPL v3+
Group: Applications/Graphics
Source0: http://downloads.sourceforge.net/ghostscript/%{name}-%{version}.tar.bz2
Patch6: %{name}-gdevcd8-fixes.patch
Patch7: %{name}-fPIC.patch
Patch8: %{name}-git.patch
+Patch9: %{name}-zlib.patch
URL: http://www.ghostscript.com/
BuildRequires: autoconf >= 2.57
BuildRequires: automake >= 1.6
%patch6 -p1
%patch7 -p1
%patch8 -p2
+%patch9 -p1
%build
%if %{with system_jbig2dec}