From 308259c7e26f188fd8738625ff9832f3f146c6d5 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Sat, 9 Jan 2010 00:35:41 +0000 Subject: 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 --- net/udpxy/Makefile | 13 +++++++++++-- net/udpxy/files/patch-Makefile | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 net/udpxy/files/patch-Makefile (limited to 'net') 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 +.include + +.ifdef WITH_TRACING +CFLAGS+= -DTRACE_MODULE +.endif + +.include 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) -- cgit