openbsd-ports/net/no-ip/patches/patch-Makefile
2006-10-18 22:02:39 +00:00

33 lines
820 B
Plaintext

$OpenBSD: patch-Makefile,v 1.4 2006/10/18 22:02:39 wilfried Exp $
--- Makefile.orig Fri Feb 24 17:45:51 2006
+++ Makefile Wed Oct 18 23:58:14 2006
@@ -1,16 +1,15 @@
TGT=noip2
-CC=gcc
PREFIX=/usr/local
CONFDIR=${PREFIX}/etc
BINDIR=${PREFIX}/bin
# these defines are for Linux
-LIBS=
-ARCH=linux
+#LIBS=
+#ARCH=linux
# for Mac OS X and BSD systems that have getifaddr(), uncomment the next line
-#ARCH=bsd_with_getifaddrs
+ARCH=bsd_with_getifaddrs
# for early BSD systems without getifaddrs(), uncomment the next line
#ARCH=bsd
@@ -21,7 +20,7 @@ ARCH=linux
# ARCH=sun
${TGT}: Makefile ${TGT}.c
- ${CC} -Wall -g -O2 -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
+ ${CC} ${CFLAGS} -D${ARCH} ${TGT}.c -o ${TGT} ${LIBS}
install: ${TGT}
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi