aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libwmf/files
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>2000-05-29 10:24:39 +0800
committercpiazza <cpiazza@FreeBSD.org>2000-05-29 10:24:39 +0800
commit45f2d56bbe4482bf0ac6ab1cdc6a3ce962bde3c5 (patch)
tree5968647504665c73105e02a2e8da6523f9bbd8eb /graphics/libwmf/files
parentcf5f839a5a9b98b312584f8d37d41a1e5f6c9bb4 (diff)
downloadfreebsd-ports-gnome-45f2d56bbe4482bf0ac6ab1cdc6a3ce962bde3c5.tar.gz
freebsd-ports-gnome-45f2d56bbe4482bf0ac6ab1cdc6a3ce962bde3c5.tar.zst
freebsd-ports-gnome-45f2d56bbe4482bf0ac6ab1cdc6a3ce962bde3c5.zip
Use shared libraries
PR: 18822 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
Diffstat (limited to 'graphics/libwmf/files')
-rw-r--r--graphics/libwmf/files/patch-ac43
-rw-r--r--graphics/libwmf/files/patch-ad46
2 files changed, 89 insertions, 0 deletions
diff --git a/graphics/libwmf/files/patch-ac b/graphics/libwmf/files/patch-ac
new file mode 100644
index 000000000000..b024145094e5
--- /dev/null
+++ b/graphics/libwmf/files/patch-ac
@@ -0,0 +1,43 @@
+--- libxfig/Makefile.in.orig Tue Jul 13 10:16:20 1999
++++ libxfig/Makefile.in Fri May 26 01:11:08 2000
+@@ -28,22 +28,29 @@
+
+ SHELL = /bin/sh
+
+-.SUFFIXES: .C .o
++.SUFFIXES: .c .o .so
+
+ MYOBJECTS = \
+ color.o \
+ objlist.o \
+ fileops.o
+
+-all: libxfig.a
++all: libxfig.a libxfig.so.0
+
+ libxfig.a: $(MYOBJECTS)
+ $(AR) rc libxfig.a $(MYOBJECTS)
+ $(RANLIB) libxfig.a
+
++libxfig.so.0: $(MYOBJECTS:S/o$/so/g)
++ $(CC) -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(MYOBJECTS:S/o$/so/g) $(LIBS)
++ ln -sf libxfig.so.0 libxfig.so
++
+ %.o: %.c
+ $(CC) $(CFLAGS) -c $*.c
+
++.c.so:
++ $(CC) -fpic -DPIC $(CFLAGS) -c $(.IMPSRC) -o $(.TARGET)
++
+ clean:
+ rm -rf *.o *.a core
+
+@@ -52,6 +59,8 @@
+
+ install: all installdirs
+ $(INSTALL_DATA) libxfig.a @libdir@/libxfig.a
++ $(INSTALL_DATA) libxfig.so.0 @libdir@/libxfig.so.0
++ ln -sf libxfig.so.0 @libdir@/libxfig.so
+
+ installdirs:
+ $(MKINSTALLDIRS) @libdir@ \
diff --git a/graphics/libwmf/files/patch-ad b/graphics/libwmf/files/patch-ad
new file mode 100644
index 000000000000..1071fe4f9616
--- /dev/null
+++ b/graphics/libwmf/files/patch-ad
@@ -0,0 +1,46 @@
+--- libdib/Makefile.in.orig Tue Jul 13 10:14:28 1999
++++ libdib/Makefile.in Fri May 26 01:36:43 2000
+@@ -28,25 +28,32 @@
+
+ SHELL = /bin/sh
+
+-.SUFFIXES: .C .o
++.SUFFIXES: .c .o .so
+
+ MYOBJECTS = \
+ bytelevel.o \
+ bintree.o \
+ dibtoxpm.o
+
+-all: libdib.a test_dibtoxpm
++all: libdib.a libdib.so.0 test_dibtoxpm
+
+ libdib.a: $(MYOBJECTS)
+ $(AR) rc libdib.a $(MYOBJECTS)
+ $(RANLIB) libdib.a
+
++libdib.so.0: $(MYOBJECTS:S/o$/so/g)
++ $(CC) -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(MYOBJECTS:S/o$/so/g) $(LIBS)
++ ln -sf libdib.so.0 libdib.so
++
+ test_dibtoxpm: libdib.a test_dibtoxpm.o
+ $(CC) $(LDFLAGS) -o test_dibtoxpm test_dibtoxpm.o -ldib
+
+ %.o: %.c
+ $(CC) $(CFLAGS) -c $*.c
+
++.c.so:
++ $(CC) -fpic -DPIC $(CFLAGS) -c $(.IMPSRC) -o $(.TARGET)
++
+ clean:
+ rm -rf *.o *.a test_dibtoxpm a.out core
+
+@@ -60,6 +67,8 @@
+ install: all installdirs
+ $(INSTALL_DATA) dibtoxpm.h $(INCLUDEDIR)/dibtoxpm.h
+ $(INSTALL_DATA) libdib.a @libdir@/libdib.a
++ $(INSTALL_DATA) libdib.so.0 @libdir@/libdib.so.0
++ ln -sf libdib.so.0 @libdir@/libdib.so
+
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.