diff options
author | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
commit | ccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch) | |
tree | 25b833c135dd7f2323045f819dc7121e621103fc /net/netwib | |
parent | e2f15954f8960a944e8d5b2c28982257d8c6e91f (diff) | |
download | freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.gz freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.zst freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.zip |
- Patch net/libnet* to versioned libraries and header files, so they can
coexist
PR: ports/103861
Submitted by: alepulver
Tested by: pointyhat
With hat: portmgr
Diffstat (limited to 'net/netwib')
-rw-r--r-- | net/netwib/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/net/netwib/Makefile b/net/netwib/Makefile index 7fabc2e24f94..fc755928fd24 100644 --- a/net/netwib/Makefile +++ b/net/netwib/Makefile @@ -7,6 +7,7 @@ PORTNAME= netwib PORTVERSION= 5.35.0 +PORTREVISION= 1 CATEGORIES= net devel ipv6 MASTER_SITES= http://www.laurentconstantin.com/common/netw/netwib/download/v5/ \ http://membres.lycos.fr/lauconstantin/common/netw/netwib/download/v5/ \ @@ -16,7 +17,7 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}-src.tgz ${PORTNAME}-${PORTVERSION}-doc_htm MAINTAINER= janos.mohacsi@bsd.hu COMMENT= Netwib network programming library -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet RUN_DEPENDS= ${BUILD_DEPENDS} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src @@ -32,10 +33,20 @@ MAN3+= netwib${SHORTPORTVERSION}.3 netwib${SHORTPORTVERSION}_dat.3 \ PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION} +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config + +post-patch: + @${REINPLACE_CMD} -Ee \ + 's|libnet-config|${LIBNET_CONFIG}|; \ + s|-lnet|`${LIBNET_CONFIG} --libs`|; \ + s|^(gccIncLnet=).*|\1"`${LIBNET_CONFIG} --cflags`"|' \ + ${WRKSRC}/genemake + do-configure: @${REINPLACE_CMD} \ -e 's|%%PREFIX%%|${PREFIX}|' \ -e 's|%%CFLAGS%%|${CFLAGS}|' \ + -e 's|gcc|${CC}|' \ ${WRKSRC}/config.dat (cd ${WRKSRC} ; ${SH} ${WRKSRC}/genemake ) |