summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2013-09-07 19:49:41 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2013-09-07 19:49:41 +0000
commit7046a55fd8c78a3bf8c78c239a321985cdb6e3ad (patch)
tree44170eaab332d8a08ad941e3638a2e1e422229c8 /net-mgmt
parent- Update to 0.12 (diff)
Introduce variable ICONV_PREFIX at Mk/Uses/iconv.mk. The default for
pre 100043 is ${LOCALBASE} and /usr otherwise. Convert all ports to new variable usage. Approved by: portmgr (bapt, implicit)
Notes
Notes: svn path=/head/; revision=326683
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ettercap/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/net-mgmt/ettercap/Makefile b/net-mgmt/ettercap/Makefile
index aaad0698fe0b..16eaf1ea2ab1 100644
--- a/net-mgmt/ettercap/Makefile
+++ b/net-mgmt/ettercap/Makefile
@@ -51,7 +51,7 @@ CONFIGURE_ARGS+=--disable-gtk
.endif
.if ${PORT_OPTIONS:MUTF8}
-CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
+CONFIGURE_ARGS+=--with-iconv=${ICONV_PREFIX}
USES+= iconv
.endif
@@ -91,6 +91,7 @@ post-patch:
-e 's|test -f /usr/include/libnet\.h|${TRUE}|' \
-e 's|(LNETINC=).*|\1"`${LIBNET_CONFIG} --cflags`"|' \
-e 's|(LNETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \
+ -e '/ICONVLIB/s|-liconv|${ICONV_LIB}|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -E \
-e 's|(^pkgdatadir.+=).+|\1 ${DATADIR}|' \