mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
c6413091f0
past year and the maintainer hasn't been seen since the port was created.
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
# Created by: Alexander Brovikov <alexander@brovikov.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libsrtp
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.5.4
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Secure RTP (SRTP) Reference Implementation
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cisco
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-openssl
|
|
CPPFLAGS+= -I${OPENSSLBASE}/include
|
|
LIBS+= -L${OPENSSLBASE}/lib
|
|
USES= cpe gmake pathfix pkgconfig
|
|
CPE_VENDOR= cisco
|
|
USE_LDCONFIG= yes
|
|
USE_OPENSSL= yes
|
|
|
|
.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.mk>
|