mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
dd736d16f2
build, if libzrtpcppcore's headers are present... Rephrase the post-patch target to not require as many passes through the source tree and remove a solution for the long-gone problem from it.
32 lines
785 B
Makefile
32 lines
785 B
Makefile
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libzrtpcpp
|
|
PORTVERSION= 2.3.4
|
|
PORTREVISION= 6
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR=ccrtp
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= ZRTP extension for GNU ccRTP
|
|
|
|
LIB_DEPENDS= libccrtp.so:${PORTSDIR}/devel/ccrtp \
|
|
libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
|
|
|
USES= cmake iconv gettext pkgconfig
|
|
USE_OPENSSL= yes
|
|
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON
|
|
CXXFLAGS+= -I${LOCALBASE}/include -I${OPENSSLINC}
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB}
|
|
USE_LDCONFIG= yes
|
|
CONFLICTS_BUILD=libzrtpcppcore
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -i "" \
|
|
-e "s|<malloc.h>|<stdlib.h>|" \
|
|
-e "s|<stdint.h>|<inttypes.h>|"
|
|
|
|
.include <bsd.port.mk>
|