aboutsummaryrefslogtreecommitdiffstats
path: root/net/udpxy
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2010-01-09 08:35:41 +0800
committermi <mi@FreeBSD.org>2010-01-09 08:35:41 +0800
commit70c8108275c54c041b6dc800233a5efd1cbd6e70 (patch)
treeb56aed67e8ccc0ff841549a16dd883b01d1ef6ec /net/udpxy
parentcbf7681b6377b85f3cbccab06cec9db2f70d1bec (diff)
downloadfreebsd-ports-gnome-70c8108275c54c041b6dc800233a5efd1cbd6e70.tar.gz
freebsd-ports-gnome-70c8108275c54c041b6dc800233a5efd1cbd6e70.tar.zst
freebsd-ports-gnome-70c8108275c54c041b6dc800233a5efd1cbd6e70.zip
Hopefully fix an unreproducable problem reported by buildcluster on 9.0
Build with NDEBUG and add an option for tracing. PR: ports/142500 Approved by: maintainer
Diffstat (limited to 'net/udpxy')
-rw-r--r--net/udpxy/Makefile13
-rw-r--r--net/udpxy/files/patch-Makefile17
2 files changed, 28 insertions, 2 deletions
diff --git a/net/udpxy/Makefile b/net/udpxy/Makefile
index 64066612e1ed..c97694b75a3a 100644
--- a/net/udpxy/Makefile
+++ b/net/udpxy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= udpxy
PORTVERSION= 1.0.14
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${RELEASE_MASCOT}-${PORTVERSION:R}
DISTNAME= ${PORTNAME}.${PORTVERSION:R}-${RELEASE_MASCOT}-${PORTVERSION:E}
@@ -20,12 +21,20 @@ USE_RC_SUBR= udpxy
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
RELEASE_MASCOT= Chipmunk
+CFLAGS+= -DNDEBUG
+OPTIONS= TRACING "Enable tracing (verbose)" off
PLIST_FILES= sbin/udpxy \
sbin/udpxrec
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/udpxy ${PREFIX}/sbin/
- @${LN} -s ${PREFIX}/sbin/udpxy ${PREFIX}/sbin/udpxrec
+ @${LN} -s udpxy ${PREFIX}/sbin/udpxrec
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.ifdef WITH_TRACING
+CFLAGS+= -DTRACE_MODULE
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/udpxy/files/patch-Makefile b/net/udpxy/files/patch-Makefile
new file mode 100644
index 000000000000..7c5865dab9f4
--- /dev/null
+++ b/net/udpxy/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile 2009-07-23 19:28:41.000000000 +0000
++++ Makefile 2010-01-08 23:47:38.630600000 +0000
+@@ -141,4 +141,5 @@
+ else
+ make_deps := HPATH='.' $(MKDEP_TOOL) -- $(SRC)
++$(DEPFILE): $(MKDEP_TOOL)
+ endif
+
+@@ -150,6 +151,6 @@
+ @ls -l $@
+
+-$(DEPFILE): $(MKDEP_TOOL) $(SRC)
+- $($(MAKE)_deps) > $(DEPFILE)
++$(DEPFILE): $(SRC)
++ $(make_deps) > $(DEPFILE)
+
+ $(EXEC) : $(DEPFILE) $(OBJ)