1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

- Switch to USES=localbase

- Switch to USES=ssl
- Simplify build by using ALL_TARGET
- Switch to new test framework
- Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2017-01-09 10:05:19 +00:00
parent b5f1d12ed5
commit 262002de9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=430937

View File

@ -17,33 +17,21 @@ GH_ACCOUNT= cisco
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-openssl
CPPFLAGS+= -I${OPENSSLBASE}/include
LIBS+= -L${OPENSSLBASE}/lib
USES= cpe gmake pathfix pkgconfig
USES= cpe localbase gmake pathfix pkgconfig ssl
CPE_VENDOR= cisco
USE_LDCONFIG= yes
USE_OPENSSL= yes
ALL_TARGET= all shared_library
TEST_TARGET= runtest
TEST_ENV= LD_LIBRARY_PATH=${WRKSRC}
.if ! defined(WITH_DEBUG)
CONFIGURE_ARGS+=--disable-debug
.endif
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000015
WITH_OPENSSL_PORT= yes
.endif
post-patch:
@${REINPLACE_CMD} '/pkg-config.*openssl/d' ${WRKSRC}/configure
post-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} shared_library)
check test runtest regression-test: build
${SETENV} LD_LIBRARY_PATH=${WRKSRC} ${MAKE_CMD} -C ${WRKSRC} runtest
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mopenssl-devel}