diff options
Diffstat (limited to 'net/xboxproxy/Makefile')
-rw-r--r-- | net/xboxproxy/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/net/xboxproxy/Makefile b/net/xboxproxy/Makefile index a93ef509d8cb..f85797679ec7 100644 --- a/net/xboxproxy/Makefile +++ b/net/xboxproxy/Makefile @@ -6,7 +6,7 @@ PORTNAME= xboxproxy PORTVERSION= 2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.csh.rit.edu/~psionic/projects/xboxproxy/ DISTNAME= proxy-${PORTVERSION} @@ -14,13 +14,15 @@ DISTNAME= proxy-${PORTVERSION} MAINTAINER= ports@mawer.org COMMENT= A proxy for the XBox system link protocol -BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10 +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 GNU_CONFIGURE= yes CONFIGURE_ARGS= --program-prefix=xbox PLIST_FILES= bin/xboxproxy +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config + .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 @@ -28,4 +30,10 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap CONFIGURE_ARGS+= --with-pcap=${LOCALBASE} .endif +post-patch: + @${REINPLACE_CMD} -e \ + 's|libnet-config|${LIBNET_CONFIG}|g; \ + s|-lnet|`${LIBNET_CONFIG} --libs`|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + .include <bsd.port.post.mk> |