svn commit: r430937 - head/net/libsrtp
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Jan 9 10:05:21 UTC 2017
Author: amdmi3
Date: Mon Jan 9 10:05:19 2017
New Revision: 430937
URL: https://svnweb.freebsd.org/changeset/ports/430937
Log:
- 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
Modified:
head/net/libsrtp/Makefile
Modified: head/net/libsrtp/Makefile
==============================================================================
--- head/net/libsrtp/Makefile Mon Jan 9 10:04:06 2017 (r430936)
+++ head/net/libsrtp/Makefile Mon Jan 9 10:05:19 2017 (r430937)
@@ -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}
More information about the svn-ports-all
mailing list