diff -uNr ghostscript-7.05.ORIG/hpijs-1.1/platform.h ghostscript-7.05/hpijs-1.1/platform.h --- ghostscript-7.05.ORIG/hpijs-1.1/platform.h Wed Mar 13 02:49:49 2002 +++ ghostscript-7.05/hpijs-1.1/platform.h Sat Oct 12 23:30:19 2002 @@ -8,7 +8,12 @@ // your development environment. #include +#ifdef __APPLE__ +#include +#include +#else #include +#endif #include #include #include diff -uNr ghostscript-7.05.ORIG/ijs/Makefile.in ghostscript-7.05/ijs/Makefile.in --- ghostscript-7.05.ORIG/ijs/Makefile.in Sat Oct 12 23:30:19 2002 +++ ghostscript-7.05/ijs/Makefile.in Sun Oct 13 00:21:02 2002 @@ -7,10 +7,10 @@ EXE=@EXEEXT@ # todo: this needs to be .dylib on OS X - write a test -SHARED_LDFLAGS=-shared -SHARED_OBJ=.so -#SHARED_LDFLAGS=-dylib -#SHARED_OBJ=.dylib +#SHARED_LDFLAGS=-shared +#SHARED_OBJ=.so +SHARED_LDFLAGS=-dynamiclib +SHARED_OBJ=.dylib FE=-o IJS_EXEC_SERVER=ijs_exec_unix$(OBJ) @@ -60,8 +60,8 @@ $(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 - $(INSTALL) ijs_client_example$(EXE) -c $(bindir)/ijs_client_example$(EXE) - $(INSTALL) ijs-config -c $(bindir)/ijs-config + $(INSTALL) ijs_client_example$(EXE) $(bindir)/ijs_client_example$(EXE) + $(INSTALL) ijs-config $(bindir)/ijs-config $(INSTALL) libijs.a $(libdir)/libijs.a $(INSTALL) libijs$(SHARED_OBJ) $(libdir)/libijs$(SHARED_OBJ) -mkdir $(pkgincludedir) diff -uNr ghostscript-7.05.ORIG/ijs/ijs_server_example.c ghostscript-7.05/ijs/ijs_server_example.c --- ghostscript-7.05.ORIG/ijs/ijs_server_example.c Tue Apr 23 02:53:36 2002 +++ ghostscript-7.05/ijs/ijs_server_example.c Sat Oct 12 23:30:19 2002 @@ -25,7 +25,11 @@ #include #include #include +#ifdef __APPLE__ +#include +#else #include +#endif #include "ijs.h" #include "ijs_server.h" diff -uNr ghostscript-7.05.ORIG/src/unix-dll.mak ghostscript-7.05/src/unix-dll.mak --- ghostscript-7.05.ORIG/src/unix-dll.mak Fri Apr 19 10:10:40 2002 +++ ghostscript-7.05/src/unix-dll.mak Sat Oct 12 23:30:19 2002 @@ -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_SONAME_MAJOR)'\ GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\ STDIO_IMPLEMENTATION=c\ DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\ diff -uNr ghostscript-7.05.ORIG/src/unix-gcc.mak ghostscript-7.05/src/unix-gcc.mak --- ghostscript-7.05.ORIG/src/unix-gcc.mak Sat Oct 12 23:30:17 2002 +++ ghostscript-7.05/src/unix-gcc.mak Sat Oct 12 23:30:19 2002 @@ -56,7 +56,7 @@ INSTALL_PROGRAM = $(INSTALL) -m 755 INSTALL_DATA = $(INSTALL) -m 644 -prefix = /usr +prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin scriptdir = $(bindir) @@ -153,7 +153,7 @@ # You may need to change this if the libpng version changes. # See libpng.mak for more information. -PSRCDIR=/usr/include +PSRCDIR=/usr/local/include/libpng PVERSION=10202 # Choose whether to use a shared version of the PNG library, and if so, @@ -216,10 +216,10 @@ # Define the added flags for standard, debugging, profiling # and shared object builds. -CFLAGS_STANDARD= -CFLAGS_DEBUG= +CFLAGS_STANDARD=-O +CFLAGS_DEBUG=-g CFLAGS_PROFILE= -CFLAGS_SO=-fPIC +CFLAGS_SO= # Define the other compilation flags. Add at most one of the following: # -DBSD4_2 for 4.2bsd systems. @@ -301,7 +301,7 @@ #VFLIBDIRS=-L/usr/local/lib #VFLIBS=VFlib VFINCLUDE= -VFLIBDIRS= +VFLIBDIRS=-L/usr/local/lib VFLIBS=VFlib2 ttf # Define whether this platform has floating point hardware: