-cd "$SOURCE_DIRECTORY" &&
# this operation is harmless because because rpl_malloc is not defined
anywhere
# in the source; moreover, the symbol HAVE_MALLOC is not used in the source
as
# of ESPGS 8.15.1 and maybe earlier.
-sedit 's|#define malloc rpl_malloc|//\0|g' configure &&
+sedit 's|#define malloc rpl_malloc|//\0|g' configure &&
-if [[ -n "$SOURCE4" ]]; then
+if [ "${ESPG_OMNI}" == "y" ]; then
unpack_file 4
-fi
+fi
+
+if [ "${ESPGS_LIBGS}" == "y" ]; then
+ sedit "s/bbox.dev$/x11.dev/" Makefile.in &&
+ patch -p1 < ${SCRIPT_DIRECTORY}/ghostscript-8.15-sharedlib.patch
+fi
diff --git a/printer/espgs/espgs-8.15.1-source.tar.bz2.sig
b/printer/espgs/espgs-8.15.1-source.tar.bz2.sig
deleted file mode 100644
index 5df43da..0000000
Binary files a/printer/espgs/espgs-8.15.1-source.tar.bz2.sig and /dev/null
differ
diff --git a/printer/espgs/ghostscript-8.15-sharedlib.patch
b/printer/espgs/ghostscript-8.15-sharedlib.patch
new file mode 100644
index 0000000..12304f9
--- /dev/null
+++ b/printer/espgs/ghostscript-8.15-sharedlib.patch
@@ -0,0 +1,18 @@
+--- espgs/src/unix-dll.mak.orig 2006-01-30 11:48:17.000000000 -0200
++++ espgs/src/unix-dll.mak 2006-01-30 11:48:51.000000000 -0200
+@@ -87,13 +87,13 @@
+
+ # Normal shared object
+ so: SODIRS
+- $(MAKE) $(SODEFS) CFLAGS='$(CFLAGS_STANDARD) $(CFLAGS_SO) $(GCFLAGS)
$(XCFLAGS)' prefix=$(prefix) $(GSSOC) $(GSSOX)
++ $(MAKE) $(SODEFS) CFLAGS='$(CFLAGS_STANDARD) $(CFLAGS_SO) $(ACDEFS)
$(GCFLAGS) $(XCFLAGS)' prefix=$(prefix) $(GSSOC) $(GSSOX)
+
+ # Debug shared object
+ # Note that this is in the same directory as the normal shared
+ # object, so you will need to use 'make soclean', 'make sodebug'
+ sodebug: SODIRS
+- $(MAKE) $(SODEFS) GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG)
$(CFLAGS_SO) $(GCFLAGS) $(XCFLAGS)' $(GSSOC) $(GSSOX)
++ $(MAKE) $(SODEFS) GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG)
$(CFLAGS_SO) $(ACDEFS) $(GCFLAGS) $(XCFLAGS)' $(GSSOC) $(GSSOX)
+
+ install-so: so
+ -mkdir -p $(prefix)
[SM-Commit] GIT changes to master grimoire by Treeve Jelbert (9cb2233b93b41570cf318e313a9cb22aa273516a),
Treeve Jelbert, 06/22/2006