[Lunar-commits] <moonbase> ghostscript: add a patch to use the external installed jasper module.

Florin Braescu florin at lunar-linux.org
Sat Apr 25 07:22:23 CEST 2009


commit 596fc94f6d938597880abb32df854dc7178849dc
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sat Apr 25 08:22:23 2009 +0300

    ghostscript: add a patch to use the external installed jasper module.
---
 printer/ghostscript/BUILD   |    9 +++++++--
 printer/ghostscript/DEPENDS |    1 +
 printer/ghostscript/DETAILS |    3 +++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/printer/ghostscript/BUILD b/printer/ghostscript/BUILD
index 4b9182a..9f0f634 100644
--- a/printer/ghostscript/BUILD
+++ b/printer/ghostscript/BUILD
@@ -1,9 +1,15 @@
 (
 
+  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
+
   if module_installed libpaper ; then
      sedit "s:lpaper:llibpaper:g" configure
-  fi &&
+  fi  &&
 
+  if module_installed jasper ; then
+     rm -fr jasper  &&
+  fi  &&
+  
   export CFLAGS="$CFLAGS -fPIC"
 
   default_build  &&
@@ -11,4 +17,3 @@
   make install-so
 
 ) > $C_FIFO 2>&1
-
diff --git a/printer/ghostscript/DEPENDS b/printer/ghostscript/DEPENDS
index 1284e47..5135f93 100644
--- a/printer/ghostscript/DEPENDS
+++ b/printer/ghostscript/DEPENDS
@@ -6,6 +6,7 @@ optional_depends "ijs"  "--with-ijs" "--without-ijs" "For ijs driver support"
 optional_depends "cups"    ""        ""              "To build the CUPS backends (recommended)"
 optional_depends "gtk+-2"  ""        ""              "For GTK support"
 optional_depends "cairo"   ""        ""              "For cairo graphics support"
+optional_depends "jasper"  ""        ""              "For JPEG 2000 support"
 
 optional_depends "libpaper" "--with-libpaper"       "--without-libpaper" \
                                       "for additonal paper size support"
diff --git a/printer/ghostscript/DETAILS b/printer/ghostscript/DETAILS
index 69b71bd..271c682 100644
--- a/printer/ghostscript/DETAILS
+++ b/printer/ghostscript/DETAILS
@@ -1,8 +1,11 @@
           MODULE=ghostscript
          VERSION=8.64
           SOURCE=$MODULE-$VERSION.tar.bz2
+         SOURCE2=$MODULE-$VERSION-jasper.patch
       SOURCE_URL=$SFORGE_URL/$MODULE
+     SOURCE2_URL=$PATCH_URL
       SOURCE_VFY=sha1:4c2a6e04145428d35da73fbc4db9c66a75e336e0
+     SOURCE2_VFY=sha1:c2f6599d0d3e6c8a554ebb82e32b519184206ce2
         WEB_SITE=http://www.ghostscript.com/awki
          ENTERED=20041116
          UPDATED=20090204


More information about the Lunar-commits mailing list