summaryrefslogtreecommitdiff
path: root/net/libtcp4u/files/patch-Unix::Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-29 01:28:44 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-29 01:28:44 +0000
commit7576696d5d5491bd624ba917b81e7864d078babb (patch)
treee2ff72900af00772a59bfcb296fe31a19fd61db2 /net/libtcp4u/files/patch-Unix::Makefile
parentFix RUN_DEPENDS. (diff)
Add libtcp4u, a library for easy writing socket-oriented applications.
Submitted by: Juraj Lutter <otis@wilbury.sk>
Notes
Notes: svn path=/head/; revision=117543
Diffstat (limited to 'net/libtcp4u/files/patch-Unix::Makefile')
-rw-r--r--net/libtcp4u/files/patch-Unix::Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/libtcp4u/files/patch-Unix::Makefile b/net/libtcp4u/files/patch-Unix::Makefile
new file mode 100644
index 000000000000..1754b721ed7b
--- /dev/null
+++ b/net/libtcp4u/files/patch-Unix::Makefile
@@ -0,0 +1,38 @@
+--- Unix/Makefile.orig Tue Mar 24 12:13:02 1998
++++ Unix/Makefile Sat Dec 1 10:53:00 2001
+@@ -9,15 +9,18 @@
+ # Use :
+ # make install
+
+-DESTDIR = ../Unix/
+-COMPIL_FLAGS = -g
++PREFIX = %%PREFIX%%
++DESTDIRLIB = %%PREFIX%%/lib
++DESTDIRINC = %%PREFIX%%/include
++
++COMPIL_FLAGS = -O2
+
+
+ # SunOS: AR should be declared as ar r
+ AR = ar -r
+ # AR = ar r
+
+-INSTALL = cp -p
++INSTALL = cp -pR
+ RM = rm -f
+
+
+@@ -51,9 +54,10 @@
+ ranlib $@
+
+ install:: $(TEST_DIRECTORY) lib$(LIB_NAME).a
+- @if [ -d $(DESTDIR) ]; then set +x; \
+- else (set -x; $(MKDIRHIER) $(DESTDIR) $(DESTDIR)); fi
+- $(INSTALL) $(INSTLIBFLAGS) lib$(LIB_NAME).a $(DESTDIR)
++ @if [ -d $(DESTDIRLIB) ]; then set +x; \
++ else (set -x; $(MKDIRHIER) $(DESTDIRLIB) $(DESTDIRLIB)); fi
++ $(INSTALL) $(INSTLIBFLAGS) lib$(LIB_NAME).a $(DESTDIRLIB)
++ $(INSTALL) $(TCP4U_INC)/*4u.h $(DESTDIRINC)
+
+ test_directory:
+ @if [ ! -r tcp4u.c ]; then \