svn commit: r361778 - head/net/libfb
Tijl Coosemans
tijl at FreeBSD.org
Mon Jul 14 14:09:09 UTC 2014
Author: tijl
Date: Mon Jul 14 14:09:08 2014
New Revision: 361778
URL: http://svnweb.freebsd.org/changeset/ports/361778
QAT: https://qat.redports.org/buildarchive/r361778/
Log:
- Add USES=libtool and INSTALL_TARGET=install-strip
- Handle libnet dependency like other ports do
Modified:
head/net/libfb/Makefile
head/net/libfb/pkg-plist
Modified: head/net/libfb/Makefile
==============================================================================
--- head/net/libfb/Makefile Mon Jul 14 12:44:27 2014 (r361777)
+++ head/net/libfb/Makefile Mon Jul 14 14:09:08 2014 (r361778)
@@ -3,6 +3,7 @@
PORTNAME= libfb
PORTVERSION= 2.0.2
+PORTREVISION= 1
CATEGORIES= net net-mgmt
MASTER_SITES= http://support.red-fone.com/downloads/fonulator/
@@ -12,19 +13,16 @@ COMMENT= FoneBRIDGE configuration librar
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
GNU_CONFIGURE= yes
-CPPFLAGS+= ${LIBNET_CPPFLAGS}
-LDFLAGS+= ${LIBNET_LIBS:N-l*}
CONFIGURE_ARGS= --disable-shared
+CPPFLAGS+= ${LIBNET_CPPFLAGS}
+INSTALL_TARGET= install-strip
+USES= libtool
LIBNET_CONFIG= ${LOCALBASE}/bin/libnet11-config
+LIBNET_CPPFLAGS=`${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines`
+LIBNET_LIBS= `${LIBNET_CONFIG} --libs`
-.if 0
-# this does not work when LIBNET_CONFIG does not exist prior to building this port
-LIBNET_CPPFLAGS!= ${LIBNET_CONFIG} --cflags --defines
-LIBNET_LIBS!= ${LIBNET_CONFIG} --libs
-.else
-LIBNET_CPPFLAGS= -I${LOCALBASE}/include/libnet11
-LIBNET_LIBS= -L${LOCALBASE}/lib/libnet11
-.endif
+post-patch:
+ @${REINPLACE_CMD} 's,-lnet,${LIBNET_LIBS},' ${WRKSRC}/configure
.include <bsd.port.mk>
Modified: head/net/libfb/pkg-plist
==============================================================================
--- head/net/libfb/pkg-plist Mon Jul 14 12:44:27 2014 (r361777)
+++ head/net/libfb/pkg-plist Mon Jul 14 14:09:08 2014 (r361778)
@@ -3,5 +3,4 @@ include/libfb/fb_context.h
include/libfb/fb_lib.h
include/libfb/sha1.h
lib/libfb.a
-lib/libfb.la
@dirrm include/libfb
More information about the svn-ports-head
mailing list