1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/pipsecd/files/patch-aa
Kris Kennaway 34800a8067 Fix build
Submitted by:	Jim Bloom <bloom@acm.org>
2000-02-27 04:21:03 +00:00

32 lines
910 B
Plaintext

--- Makefile.orig Thu Sep 16 17:44:50 1999
+++ Makefile Sun Feb 20 20:41:18 2000
@@ -6,10 +6,13 @@
CLEANFILES= *.core *.o pipsecd
# Where your OpenSSL includes are located
-INCDIR=/usr/local/ssl/include
+INCDIR=-I$(OPENSSLINC)/openssl -I$(OPENSSLINC) -I$(LOCALBASE)/include
# Where your libcrypto is located
-LIBDIR=/usr/local/ssl/lib
+LIBDIR=-L$(OPENSSLLIB)
+
+# Misc defines
+DEFINES=-DFILE_PREFIX=\"$(PREFIX)\"
# Optional: use FreeBSD's libmd
#OPTLIB += -lmd
@@ -19,10 +22,10 @@
#OPTDEF += -DUSE_ETHERTAP
pipsecd: tunip.c defs.h
- gcc -Wall -I$(INCDIR) -g $(OPTDEF) -o pipsecd tunip.c -L$(LIBDIR) $(OPTLIB) -lcrypto
+ $(CC) -Wall $(INCDIR) -g $(CFLAGS) $(OPENSSL_CFLAGS) $(OPTDEF) -o pipsecd tunip.c $(LIBDIR) -lcrypto $(OPTLIB) $(EXTRA_SSL_LIBS) $(DEFINES)
install: pipsecd
- install pipsecd /usr/local/sbin/
+ install pipsecd $(PREFIX)/sbin/
tar:
tar cfvz tunip.tar.gz $(DISTFILES)