freebsd-ports/security/ike/Makefile
Tijl Coosemans 1ee4da6dd1 Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS.  Normally LDFLAGS
appears too early on the command line causing some ports to link with
their own libraries in LOCALBASE (if installed) instead of WRKSRC.

Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as
possible after anything a port Makefile might set.  Use _USES_POST
instead of .include in libedit.mk and libarchive.mk so things like
'USES=libedit localbase:ldflags' work correctly.

Fix some issues with LIBS in some ports.

Switch ports that don't support LIBS to localbase:ldflags.

PR:		212987
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-30 19:24:30 +00:00

58 lines
1.8 KiB
Makefile

# Created by: mgrooms@shrew.net
# $FreeBSD$
PORTNAME= ike
PORTVERSION= 2.2.1
PORTREVISION= 2
CATEGORIES= security net
MASTER_SITES= https://www.shrew.net/download/ike/
DISTNAME= ${PORTNAME}-${PORTVERSION}-release
MAINTAINER= mgrooms@shrew.net
COMMENT= Shrew Soft IKE daemon and client tools
ONLY_FOR_ARCHS= i386 amd64
USE_RC_SUBR= iked
USES= bison cmake libedit localbase:ldflags tar:tbz2
USE_OPENSSL= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
CMAKE_ARGS= -DETCDIR:PATH="${PREFIX}/etc" \
-DBINDIR:PATH="${PREFIX}/bin" \
-DSBINDIR:PATH="${PREFIX}/sbin" \
-DLIBDIR:PATH="${PREFIX}/lib" \
-DMANDIR:PATH="${PREFIX}/man"
OPTIONS_DEFINE= QTGUI NATT LDAP DEBUG
OPTIONS_SUB= yes
QTGUI_DESC= Enable QT client front end applications
NATT_DESC= Enable NAT-Traversal
LDAP_DESC= Enable LDAP XAuth daemon support
DEBUG_CMAKE_ON= -DDEBUG=YES
LDAP_USE= OPENLDAP=yes
LDAP_CMAKE_ON= -DLDAP=YES
NATT_CMAKE_ON= -DNATT=YES
QTGUI_CMAKE_ON= -DQTGUI=YES
QTGUI_USE= QT4=gui,moc_build,qmake_build,rcc_build,uic_build
post-install:
@if ! ${SYSCTL} -a | ${GREP} -q ipsec; then \
${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
${ECHO_MSG} "===> WARNING: You need IPsec support in your kernel, please see:"; \
${ECHO_MSG} "===> http://www.freebsd.org/doc/en/books/handbook/ipsec.html"; \
${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
fi ;
post-install-NATT-on:
@${ECHO_MSG} "===> -------------------------------------------------------------------------"
@${ECHO_MSG} "===> WARNING: To use NAT Traversal ( NAT-T ) support, please be sure to"
@${ECHO_MSG} "===> include the following line in your kernel config file."
@${ECHO_MSG} "===> options IPSEC_NAT_T"
@${ECHO_MSG} "===> -------------------------------------------------------------------------"
.include <bsd.port.mk>