aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2014-06-25 07:56:11 +0800
committerzi <zi@FreeBSD.org>2014-06-25 07:56:11 +0800
commitd01bb9427ca4ca6d2ffed6bb91a4d93d04baa1c8 (patch)
treece38193890795806b12f88f9bd520593f28db06b
parentb48181b300caa1c1a57580af8206cba79d8334e5 (diff)
downloadfreebsd-ports-gnome-d01bb9427ca4ca6d2ffed6bb91a4d93d04baa1c8.tar.gz
freebsd-ports-gnome-d01bb9427ca4ca6d2ffed6bb91a4d93d04baa1c8.tar.zst
freebsd-ports-gnome-d01bb9427ca4ca6d2ffed6bb91a4d93d04baa1c8.zip
- Fix build when OPENSSL_PORT is specified
- Bump PORTREVISION Submitted by: mat, bapt
-rw-r--r--net-mgmt/net-snmp/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 0d8911b5ac7d..223824ccb50c 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= snmp
PORTVERSION= 5.7.2
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= net-mgmt ipv6
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= net-
@@ -54,7 +54,7 @@ CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \
--with-logfile="${NET_SNMP_LOGFILE}" \
--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
--with-gnu-ld --with-libwrap \
- --with-ldflags="-lm -lkvm -ldevstat -lpkg -L${LOCALBASE}/lib"
+ --with-ldflags="-lm -lkvm -ldevstat -lpkg ${LDFLAGS}"
SUB_FILES= pkg-message
.if defined(BATCH)
@@ -203,6 +203,12 @@ DOC_FILES= AGENT.txt COPYING FAQ NEWS README \
CONFLICTS= ucd-snmp-4.* net-snmp-5.3.*
+.include <bsd.port.pre.mk>
+
+.if defined(OPENSSL_PORT)
+LDFLAGS+= -lcrypto
+.endif
+
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "You may use the following build options:"
@@ -292,4 +298,4 @@ display-message:
# Don't forget to bump library version in these ports.
# french/plgrenouille,graphics/hpoj,lang/php4,lang/php5,mail/cyrus-imapd22,mail/cyrus-imapd23,misc/kdeutils3,net-mgmt/braa,net-mgmt/docsis,net-mgmt/mbrowse,net-mgmt/nagios-snmp-plugins,net-mgmt/p5-SNMP-Info,net-mgmt/py-yapsnmp,net-mgmt/sdig,net-mgmt/zabbix,net/cactid,net/wireshark,net/ifstat,net/quagga,net/rtg,print/hplip,security/libfwbuilder,sysutils/apcupsd,sysutils/jailadmin,sysutils/nut
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>