Use system libs in ghostscript installation
[hvlinux.git] / stage5 / pkg / ghostscript
index 3956367..9ab008c 100644 (file)
@@ -4,20 +4,15 @@ hvconfig_pre()
 {
     export GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
 
-    cd ${LFS_TMP}/${PACKAGE}
+    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}"
 }