freebsd-ports/sysutils/dirdiff/files/patch-aa
Greg Lehey f3f0719097 Change name of the installed library. It was called
libfilecmp.so.0.0, but this isn't only not in keeping with the FreeBSD
Way: it breks the deinstall script, which strips the last .0 from the
file name.

Once more thanks to: pointyhat.
2005-07-06 05:39:02 +00:00

31 lines
850 B
Text

--- Makefile.orig Tue Apr 19 19:52:01 2005
+++ Makefile Wed Jul 6 15:05:14 2005
@@ -2,21 +2,21 @@
#
# In fact all we have to make is the libfilecmp.so.0.0 library.
-BINDIR=$(DESTDIR)/usr/bin
-LIBDIR=$(DESTDIR)/usr/lib
+BINDIR=$(DESTDIR)${PREFIX}/bin
+LIBDIR=$(DESTDIR)${PREFIX}/lib
INSTALL=install
# You may need to change the -I arguments depending on your system
-CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl
+CFLAGS+=-fPIC -I/usr/local/include/tcl8.4/
-all: libfilecmp.so.0.0
+all: libfilecmp.so.0
-libfilecmp.so.0.0: filecmp.c
+libfilecmp.so.0: filecmp.c
$(CC) $(CFLAGS) -shared -o $@ filecmp.c
-install: dirdiff libfilecmp.so.0.0
+install: dirdiff libfilecmp.so.0
$(INSTALL) -c dirdiff $(BINDIR)
- $(INSTALL) -c libfilecmp.so.0.0 $(LIBDIR)
+ $(INSTALL) -c libfilecmp.so.0 $(LIBDIR)
clean:
rm -f libfilecmp.so.0.0