2009-01-19 07:46:22 -05:00
|
|
|
$OpenBSD: patch-src_unix-dll_mak,v 1.7 2009/01/19 12:46:23 kili Exp $
|
2008-04-01 16:37:00 -04:00
|
|
|
--- src/unix-dll.mak.orig Tue Nov 27 23:58:40 2007
|
2009-01-19 07:46:22 -05:00
|
|
|
+++ src/unix-dll.mak Sun Jan 18 13:00:33 2009
|
|
|
|
@@ -39,7 +39,9 @@ GSSOC=$(BINDIR)/$(SOBINRELDIR)/$(GSSOC_XENAME)
|
|
|
|
# loader suporting display device using Gtk+
|
|
|
|
GSSOX_XENAME=$(GS)x$(XE)
|
|
|
|
GSSOX_XE=$(BINDIR)/$(GSSOX_XENAME)
|
|
|
|
-GSSOX=$(BINDIR)/$(SOBINRELDIR)/$(GSSOX_XENAME)
|
|
|
|
+GSSOX-Yes=$(BINDIR)/$(SOBINRELDIR)/$(GSSOX_XENAME)
|
|
|
|
+GSSOX-No=
|
|
|
|
+GSSOX=$(GSSOX-$(USE_GTK))
|
|
|
|
|
|
|
|
# shared library
|
|
|
|
GS_SONAME_BASE=lib$(GS)
|
|
|
|
@@ -47,9 +49,9 @@ GS_SONAME_BASE=lib$(GS)
|
2007-11-19 15:06:56 -05:00
|
|
|
# GNU/Linux
|
|
|
|
GS_SOEXT=so
|
|
|
|
GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)
|
2006-01-02 17:44:50 -05:00
|
|
|
-GS_SONAME_MAJOR=$(GS_SONAME).$(GS_VERSION_MAJOR)
|
2007-11-19 15:06:56 -05:00
|
|
|
-GS_SONAME_MAJOR_MINOR=$(GS_SONAME).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR)
|
|
|
|
-LDFLAGS_SO=-shared -Wl,-soname=$(GS_SONAME_MAJOR)
|
|
|
|
+GS_SONAME_MAJOR=$(GS_SONAME).$(basename $(LIBgs_VERSION))
|
|
|
|
+GS_SONAME_MAJOR_MINOR=$(GS_SONAME).$(LIBgs_VERSION)
|
|
|
|
+LDFLAGS_SO=-shared
|
2006-01-02 17:44:50 -05:00
|
|
|
|
2007-11-19 15:06:56 -05:00
|
|
|
# MacOS X
|
|
|
|
#GS_SOEXT=dylib
|
2009-01-19 07:46:22 -05:00
|
|
|
@@ -78,11 +80,12 @@ $(GS_SO_MAJOR): $(GS_SO_MAJOR_MINOR)
|
2006-01-02 17:44:50 -05:00
|
|
|
|
2007-11-19 15:06:56 -05:00
|
|
|
# Build the small Ghostscript loaders, with Gtk+ and without
|
2002-12-03 08:17:07 -05:00
|
|
|
|
2007-11-19 15:06:56 -05:00
|
|
|
-$(GSSOC_XE): $(GS_SO) $(GLSRC)$(SOC_LOADER)
|
2002-12-03 08:17:07 -05:00
|
|
|
- $(GLCC) -g -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS)
|
2007-11-19 15:06:56 -05:00
|
|
|
+$(GSSOC_XE): $(GS_SO) $(GLSRC)dxmainc.c
|
|
|
|
+ $(GLCC) -g -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS) \
|
|
|
|
+ $(SOC_LIBS)
|
|
|
|
|
|
|
|
-$(GSSOX_XE): $(GS_SO) $(GLSRC)$(SOC_LOADER)
|
|
|
|
- $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(GLSRC)$(SOC_LOADER) \
|
|
|
|
+$(GSSOX_XE): $(GS_SO) $(GLSRC)dxmain.c
|
|
|
|
+ $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(GLSRC)dxmain.c \
|
|
|
|
-L$(BINDIR) -l$(GS) $(SOC_LIBS)
|
2002-12-03 08:17:07 -05:00
|
|
|
|
|
|
|
# ------------------------- Recursive make targets ------------------------- #
|
2009-01-19 07:46:22 -05:00
|
|
|
@@ -100,7 +103,7 @@ SODEFS=LDFLAGS='$(LDFLAGS) $(LDFLAGS_SO)'\
|
2007-11-19 15:06:56 -05:00
|
|
|
|
|
|
|
# Normal shared object
|
|
|
|
so: SODIRS
|
|
|
|
- $(MAKE) $(SODEFS) CFLAGS='$(CFLAGS_STANDARD) $(CFLAGS_SO) $(GCFLAGS) $(XCFLAGS)' prefix=$(prefix) $(GSSOC) $(GSSOX)
|
|
|
|
+ $(MAKE) $(SODEFS) CFLAGS='$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)' prefix=$(prefix) $(GSSOC) $(GSSOX)
|
|
|
|
|
|
|
|
# Debug shared object
|
|
|
|
# Note that this is in the same directory as the normal shared
|
2009-01-19 07:46:22 -05:00
|
|
|
@@ -117,12 +120,9 @@ install-so: so
|
|
|
|
-mkdir -p $(DESTDIR)$(libdir)
|
|
|
|
-mkdir -p $(DESTDIR)$(gsincludedir)
|
2007-11-19 15:06:56 -05:00
|
|
|
$(INSTALL_PROGRAM) $(GSSOC) $(DESTDIR)$(bindir)/$(GSSOC_XENAME)
|
2009-01-19 07:46:22 -05:00
|
|
|
+ [ "$(USE_GTK)" = No ] || \
|
2007-11-19 15:06:56 -05:00
|
|
|
$(INSTALL_PROGRAM) $(GSSOX) $(DESTDIR)$(bindir)/$(GSSOX_XENAME)
|
|
|
|
$(INSTALL_PROGRAM) $(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR) $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR_MINOR)
|
|
|
|
- $(RM_) $(DESTDIR)$(libdir)/$(GS_SONAME)
|
|
|
|
- ln -s $(GS_SONAME_MAJOR_MINOR) $(DESTDIR)$(libdir)/$(GS_SONAME)
|
|
|
|
- $(RM_) $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR)
|
|
|
|
- ln -s $(GS_SONAME_MAJOR_MINOR) $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR)
|
2008-04-01 16:37:00 -04:00
|
|
|
$(INSTALL_DATA) $(PSSRC)iapi.h $(DESTDIR)$(gsincludedir)/iapi.h
|
|
|
|
$(INSTALL_DATA) $(PSSRC)ierrors.h $(DESTDIR)$(gsincludedir)/ierrors.h
|
|
|
|
$(INSTALL_DATA) $(PSSRC)gdevdsp.h $(DESTDIR)$(gsincludedir)/gdevdsp.h
|