mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 19:35:28 -04:00
Using ninja instead of make (1) can lead to significant speed ups while building. Therefore switch from having the ninja generator opt-in to having it opt-out. Previously cmake-ports that wanted to use ninja could set CMAKE_NINJA=yes now, ports that do not work with ninja can set cmake:<existing args>,noninja Note, that needing this should be an exception and most often points to a broken cmake of the port. The ports using cmake were modified * removed USES=gmake, if ninja is used * removed MAKE_ARGS, if ninja is used * added the cmake-argument noninja if necessary PR: 219629 PR: 213331 Exp-run by: antoine Reviewed by: rakuco Differential Revision: https://reviews.freebsd.org/D10748
31 lines
788 B
Makefile
31 lines
788 B
Makefile
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libzrtpcpp
|
|
PORTVERSION= 2.3.4
|
|
PORTREVISION= 8
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GNU/ccrtp
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= ZRTP extension for GNU ccRTP
|
|
|
|
LIB_DEPENDS= libccrtp.so:devel/ccrtp \
|
|
libgcrypt.so:security/libgcrypt
|
|
|
|
USES= cmake:noninja pkgconfig ssl
|
|
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON \
|
|
-DOPENSSL_INCLUDE_DIRS="${OPENSSLINC}" \
|
|
-DOPENSSL_LIBDIR="${OPENSSLLIB}"
|
|
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>
|