Use system libs in ghostscript installation
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 5 Jan 2015 03:04:35 +0000 (22:04 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 5 Jan 2015 03:05:21 +0000 (22:05 -0500)
stage5/patches/common/ghostscript-9.15-system-zlib.patch [new file with mode: 0644]
stage5/pkg/ghostscript

diff --git a/stage5/patches/common/ghostscript-9.15-system-zlib.patch b/stage5/patches/common/ghostscript-9.15-system-zlib.patch
new file mode 100644 (file)
index 0000000..4e3cbc3
--- /dev/null
@@ -0,0 +1,24 @@
+diff -Naur ghostscript-9.15.orig/configure ghostscript-9.15.new/configure
+--- ghostscript-9.15.orig/configure    2014-09-22 06:17:33.000000000 -0400
++++ ghostscript-9.15.new/configure     2015-01-04 17:36:54.632612116 -0500
+@@ -6339,7 +6339,7 @@
+ $as_echo_n "checking for local zlib source... " >&6; }
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ if test -d $srcdir/zlib; then
+diff -Naur ghostscript-9.15.orig/configure.ac ghostscript-9.15.new/configure.ac
+--- ghostscript-9.15.orig/configure.ac 2014-09-22 06:17:33.000000000 -0400
++++ ghostscript-9.15.new/configure.ac  2015-01-04 17:36:54.622612117 -0500
+@@ -884,7 +884,7 @@
+ dnl zlib is needed for language level 3, and libpng
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ if test -d $srcdir/zlib; then
index 17f519c..9ab008c 100644 (file)
@@ -6,18 +6,13 @@ hvconfig_pre()
 
     cd ${SRC_DIR}
 
-    # To use the system-installed version of JasPer:
-    rm -rf jasper
-
-    # To use the system-installed copies of libjpeg and libpng:
-    rm -rf jpeg
-    rm -rf libpng
-
-    # To use the system-installed copy of libtiff:
-    rm -rf tiff
+    # To use the system-installed version of librairies:
+    rm -rf jasper tiff openjpeg
+    rm -rf expat freetype lcms2 jpeg libpng zlib
 
     CONFIGURE_OPTS+=" \
         --enable-dynamic \
+        --disable-compile-inits \
         --with-system-libtiff \
         --with-fontpath=${GS_FONTS_PATH}"
 }