diff options
author | Lina Pezzella <j4rg0n@gentoo.org> | 2005-04-03 05:50:26 +0000 |
---|---|---|
committer | Lina Pezzella <j4rg0n@gentoo.org> | 2005-04-03 05:50:26 +0000 |
commit | 87e4533025353ae8ea2e6036b5f904dc7e49f63a (patch) | |
tree | f46950f649f9dbcc3b07f46de780afe255760dfd /app-text/ghostscript/files | |
parent | minor changes (diff) | |
download | gentoo-2-87e4533025353ae8ea2e6036b5f904dc7e49f63a.tar.gz gentoo-2-87e4533025353ae8ea2e6036b5f904dc7e49f63a.tar.bz2 gentoo-2-87e4533025353ae8ea2e6036b5f904dc7e49f63a.zip |
Testing ppc-macos. Makefile and source patches added for Darwin compatibility.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-text/ghostscript/files')
-rw-r--r-- | app-text/ghostscript/files/gs-osx-ijs.patch | 40 | ||||
-rw-r--r-- | app-text/ghostscript/files/gs-osx-unix-dll.patch | 42 |
2 files changed, 82 insertions, 0 deletions
diff --git a/app-text/ghostscript/files/gs-osx-ijs.patch b/app-text/ghostscript/files/gs-osx-ijs.patch new file mode 100644 index 000000000000..332a74af5a15 --- /dev/null +++ b/app-text/ghostscript/files/gs-osx-ijs.patch @@ -0,0 +1,40 @@ +--- ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/ijs/Makefile.in Tue Apr 23 07:58:32 2002 ++++ ghostscript-7.07.1-r8/work/espgs-7.07.1/ijs/Makefile.in Thu Mar 24 22:59:28 2005 +@@ -11,6 +11,12 @@ + SHARED_OBJ=.so + #SHARED_LDFLAGS=-dylib + #SHARED_OBJ=.dylib ++ ++CPU = $(shell uname) ++ifeq ($(CPU),Darwin) ++SHARED_LDFLAGS=-dynamiclib ++SHARED_OBJ=.dylib ++endif + + FE=-o + IJS_EXEC_SERVER=ijs_exec_unix$(OBJ) +@@ -60,8 +64,13 @@ + $(RM) *~ gmon.out core ijs_spec.log ijs_spec.tex ijs_spec.aux libijs.a libijs$(SHARED_OBJ) config.cache config.log config.status ijs-config + + install: all ++ifeq ($(CPU),Darwin) ++ $(INSTALL) ijs_client_example$(EXE) $(DESTDIR)$(bindir)/ijs_client_example$(EXE) ++ $(INSTALL) ijs-config $(DESTDIR)$(bindir)/ijs-config ++else + $(INSTALL) ijs_client_example$(EXE) -c $(DESTDIR)$(bindir)/ijs_client_example$(EXE) + $(INSTALL) ijs-config -c $(DESTDIR)$(bindir)/ijs-config ++endif + $(INSTALL) libijs.a $(DESTDIR)$(libdir)/libijs.a + $(INSTALL) libijs$(SHARED_OBJ) $(DESTDIR)$(libdir)/libijs$(SHARED_OBJ) + -mkdir $(DESTDIR)$(pkgincludedir) +diff -Naur ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/ijs/ijs_server_example.c ghostscript-7.07.1-r8/work/espgs-7.07.1/ijs/ijs_server_example.c +--- ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/ijs/ijs_server_example.c Tue Apr 23 10:01:17 2002 ++++ ghostscript-7.07.1-r8/work/espgs-7.07.1/ijs/ijs_server_example.c Thu Mar 24 22:59:46 2005 +@@ -25,7 +25,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-#include <malloc.h> ++#include <malloc/malloc.h> + #include "ijs.h" + #include "ijs_server.h" diff --git a/app-text/ghostscript/files/gs-osx-unix-dll.patch b/app-text/ghostscript/files/gs-osx-unix-dll.patch new file mode 100644 index 000000000000..832394f51ebb --- /dev/null +++ b/app-text/ghostscript/files/gs-osx-unix-dll.patch @@ -0,0 +1,42 @@ +diff -Naur ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/src/unix-dll.mak ghostscript-7.07.1-r8/work/espgs-7.07.1/src/unix-dll.mak +--- ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/src/unix-dll.mak Tue Apr 23 08:43:44 2002 ++++ ghostscript-7.07.1-r8/work/espgs-7.07.1/src/unix-dll.mak Thu Mar 24 23:00:57 2005 +@@ -45,12 +45,12 @@ + GSSOX=$(BINDIR)/$(SOBINRELDIR)/$(GSSOX_XENAME) + + # shared library +-GS_SONAME=lib$(GS).so +-GS_SONAME_MAJOR=$(GS_SONAME).$(GS_VERSION_MAJOR) +-GS_SONAME_MAJOR_MINOR= $(GS_SONAME).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR) ++GS_SONAME=lib$(GS).dylib ++GS_SONAME_MAJOR=lib$(GS).$(GS_VERSION_MAJOR).dylib ++GS_SONAME_MAJOR_MINOR=lib$(GS).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).dylib + GS_SO=$(BINDIR)/$(GS_SONAME) +-GS_SO_MAJOR=$(GS_SO).$(GS_VERSION_MAJOR) +-GS_SO_MAJOR_MINOR=$(GS_SO_MAJOR).$(GS_VERSION_MINOR) ++GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) ++GS_SO_MAJOR_MINOR=$(BINDIR)/$(GS_SONAME_MAJOR_MINOR) + + # Shared object is built by redefining GS_XE in a recursive make. + +@@ -74,7 +74,7 @@ + + # ------------------------- Recursive make targets ------------------------- # + +-SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -shared -Wl,-soname,$(GS_SONAME_MAJOR)'\ ++SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -dynamiclib -install_name $(GS_SO_MAJOR)'\ + GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\ + STDIO_IMPLEMENTATION=c\ + DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\ +--- ghostscript-7.07.1-r8-orig/work/espgs-7.07.1/src/unixinst.mak.orig Tue Apr 23 08:43:44 2002 ++++ ghostscript-7.07.1-r8/work/espgs-7.07.1/src/unixinst.mak Thu Mar 24 23:00:57 2005 +@@ -134,7 +134,7 @@ + ln -s ps2pdf.$(man1ext) $$f.$(man1ext) ) ;\ + done ;\ + fi ;\ +- if ( test -f $$man1dir/ps2ps.$(man1ext) ) ;\ ++ if ( test -f $$man1dir/gslp.$(man1ext) ) ;\ + then for f in $(MAN1_LINKS_GSLP) ;\ + do ( cd $$man1dir; rm -f $$f.$(man1ext) ;\ + ln -s gslp.$(man1ext) $$f.$(man1ext) ) ;\ + |