diff options
author | dholland <dholland@pkgsrc.org> | 2013-03-16 22:25:21 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2013-03-16 22:25:21 +0000 |
commit | a4e44e2a72ab1c6904b2f64dbe9051e09de20d4e (patch) | |
tree | 3ffc1b2f2f3de38454dbfc9249107bae6df5686f /print/ghostscript-agpl/patches/patch-af | |
parent | 9e2ccd7a1290ccc6601719643d4df53ed5a8d9bf (diff) | |
download | pkgsrc-a4e44e2a72ab1c6904b2f64dbe9051e09de20d4e.tar.gz |
Add ghostscript-agpl package, the same as the current print/ghostscript.
Diffstat (limited to 'print/ghostscript-agpl/patches/patch-af')
-rw-r--r-- | print/ghostscript-agpl/patches/patch-af | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/print/ghostscript-agpl/patches/patch-af b/print/ghostscript-agpl/patches/patch-af new file mode 100644 index 00000000000..7034a1c055e --- /dev/null +++ b/print/ghostscript-agpl/patches/patch-af @@ -0,0 +1,51 @@ +$NetBSD: patch-af,v 1.1 2013/03/16 22:25:21 dholland Exp $ + +(From the log for revision 1.4 of print/ghostscript/patches/patch-af) +date: 2008/11/13 17:36:54; author: chuck; state: Exp; lines: +22 -4 +ghostscript has hand-rolled shared lib handling in src/unix-dll.mak +that does not do the right thing on Darwin (where shared libs are +created with different linking flags and use dylib rather than so +as an extension). + +You need to manually reconfigure unix-dll.mak to make it work, so +do it in hacks.mk. + +XXX: this still leaves the issue of libgs.so (et al.) being hardwired +in PLIST, instead of using libgs.dylib (et al.). i'm not sure of +the best way to fix that. at least it compiles now.... + +--- base/unix-dll.mak.orig 2012-08-08 17:01:36.000000000 +0900 ++++ base/unix-dll.mak 2012-10-10 10:03:50.000000000 +0900 +@@ -59,13 +59,12 @@ + + + # MacOS X +-#GS_SOEXT=dylib +-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) +-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) +-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++#Darwin#GS_SOEXT=dylib ++#Darwin#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) ++#Darwin#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++#Darwin#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) + #LDFLAGS_SO=-dynamiclib -flat_namespace +-LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) +-#LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) ++#Darwin#LDFLAGS_SO=-dynamiclib -install_name $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR) + + GS_SO=$(BINDIR)/$(GS_SONAME) + GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) +@@ -86,11 +85,11 @@ + # Build the small Ghostscript loaders, with Gtk+ and without + $(GSSOC_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) + $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \ +- -L$(BINDIR) -l$(GS) ++ -L$(BINDIR) -Wl,-R$(PREFIX)/lib -l$(GS) + + $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) + $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \ +- -L$(BINDIR) -l$(GS) $(SOC_LIBS) ++ -L$(BINDIR) -l$(GS) -Wl,-R$(PREFIX)/lib -l$(GS) $(SOC_LIBS) + + # ------------------------- Recursive make targets ------------------------- # + |