freebsd-ports/net/miniupnpd/files/patch-Makefile
Armin Pirkovitsch d881f1247d - update to 1.7
PR:           ports/168462
Submitted by: Tor Halvard Furulund <squat _at_ squat.no> (maintainer)
Approved by:  decke (mentor)
2012-06-02 11:03:26 +00:00

24 lines
646 B
Text

--- Makefile.orig 2012-05-30 10:27:24.587226775 +0200
+++ Makefile 2012-05-30 10:28:12.497226510 +0200
@@ -15,7 +15,7 @@
# $ CONFIG_OPTIONS="--ipv6 --igd2" make
#
-CFLAGS ?= -pipe -Os
+CFLAGS ?= -pipe
#CFLAGS = -pipe -O -g -DDEBUG
CFLAGS += -ansi
CFLAGS += -Wall
@@ -43,10 +43,12 @@
# better way to find if we are using ipf or pf
.if $(OSNAME) == "FreeBSD"
+.if defined(/etc/rc.subr) && defined(/etc/rc.conf)
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
if checkyesno ipfilter_enable; then \
echo "ipf"; else echo "pf"; fi
.endif
+.endif
.if $(OSNAME) == "NetBSD"
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \