2008-11-20 02:49:51 -05:00
|
|
|
$OpenBSD: patch-Makefile,v 1.5 2008/11/20 07:49:51 wilfried Exp $
|
|
|
|
--- Makefile.orig Thu Nov 13 02:31:49 2008
|
|
|
|
+++ Makefile Thu Nov 20 08:40:53 2008
|
|
|
|
@@ -1,5 +1,4 @@
|
2003-05-07 04:33:19 -04:00
|
|
|
TGT=noip2
|
2002-03-08 11:56:10 -05:00
|
|
|
-CC=gcc
|
2008-11-20 02:49:51 -05:00
|
|
|
PKG=noip-2.1.tgz
|
2003-05-07 04:33:19 -04:00
|
|
|
|
|
|
|
PREFIX=/usr/local
|
2008-11-20 02:49:51 -05:00
|
|
|
@@ -7,11 +6,11 @@ CONFDIR=${PREFIX}/etc
|
2006-10-18 18:02:39 -04:00
|
|
|
BINDIR=${PREFIX}/bin
|
2003-05-07 04:33:19 -04:00
|
|
|
|
2003-06-27 07:37:23 -04:00
|
|
|
# these defines are for Linux
|
2006-10-18 18:02:39 -04:00
|
|
|
-LIBS=
|
2003-05-07 04:33:19 -04:00
|
|
|
-ARCH=linux
|
2006-10-18 18:02:39 -04:00
|
|
|
+#LIBS=
|
2003-06-27 07:37:23 -04:00
|
|
|
+#ARCH=linux
|
2003-05-07 04:33:19 -04:00
|
|
|
|
2006-10-18 18:02:39 -04:00
|
|
|
# for Mac OS X and BSD systems that have getifaddr(), uncomment the next line
|
2003-06-27 07:37:23 -04:00
|
|
|
-#ARCH=bsd_with_getifaddrs
|
|
|
|
+ARCH=bsd_with_getifaddrs
|
|
|
|
|
|
|
|
# for early BSD systems without getifaddrs(), uncomment the next line
|
|
|
|
#ARCH=bsd
|
2008-11-20 02:49:51 -05:00
|
|
|
@@ -22,7 +21,7 @@ ARCH=linux
|
2002-03-08 11:56:10 -05:00
|
|
|
# ARCH=sun
|
|
|
|
|
2003-05-07 04:33:19 -04:00
|
|
|
${TGT}: Makefile ${TGT}.c
|
2008-11-20 02:49:51 -05:00
|
|
|
- ${CC} -Wall -g -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
|
|
|
+ ${CC} -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
2002-03-08 11:56:10 -05:00
|
|
|
|
2003-05-07 04:33:19 -04:00
|
|
|
install: ${TGT}
|
2003-06-27 07:37:23 -04:00
|
|
|
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi
|