mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Use shared libraries
PR: 18822 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
This commit is contained in:
parent
c6a24ad552
commit
fd7636eb2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28851
2 changed files with 89 additions and 0 deletions
43
graphics/libwmf/files/patch-ac
Normal file
43
graphics/libwmf/files/patch-ac
Normal file
|
@ -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@ \
|
46
graphics/libwmf/files/patch-ad
Normal file
46
graphics/libwmf/files/patch-ad
Normal file
|
@ -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.
|
Loading…
Add table
Reference in a new issue