mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
04b9f3319e
It is suitable for use in real time applications such as WebRTC. WWW: http://www.openh264.org/ PR: 194356 Submitted by: Jan Beich
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= openh264
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= multimedia
|
|
|
|
MAINTAINER= gecko@FreeBSD.org
|
|
COMMENT= Cisco implementation of H.264 codec
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cisco
|
|
GH_PROJECT= ${PORTNAME}
|
|
GH_TAGNAME= ${GH_COMMIT} # v${PORTVERSION}
|
|
GH_COMMIT= c79be44 # v1.1-Firefox33
|
|
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
MAKE_ARGS= OS=freebsd ARCH="${ARCH:S/amd64/x86_64/}" \
|
|
CFLAGS_OPT="" SHAREDLIBSUFFIX=so.0 \
|
|
PREFIX="${STAGEDIR}${PREFIX}"
|
|
ALL_TARGET= all
|
|
|
|
OPTIONS_DEFINE= PLUGINS TEST
|
|
OPTIONS_DEFAULT=PLUGINS
|
|
OPTIONS_SUB= yes
|
|
|
|
PLUGINS_BUILD_DEPENDS=gmp-api>=33.0:${PORTSDIR}/multimedia/gmp-api \
|
|
gmp-api<34.0:${PORTSDIR}/multimedia/gmp-api
|
|
PLUGINS_CFLAGS= -I${LOCALBASE}/include/gmp-api
|
|
PLUGINS_MAKE_ARGS=HAVE_GMP_API=Yes
|
|
PLUGINS_ALL_TARGET=plugin
|
|
PLUGINS_USES= webplugin:gecko
|
|
WEBPLUGIN_NAME= gmp-gmp${PORTNAME}
|
|
WEBPLUGIN_FILES=gmp${PORTNAME}.info libgmp${PORTNAME}.so
|
|
SUB_FILES+= gmp${PORTNAME}.js
|
|
SUB_LIST+= PORTVERSION=${PORTVERSION} WEBPLUGIN_DIR="${WEBPLUGIN_DIR}"
|
|
|
|
TEST_BUILD_DEPENDS=googletest>=1.6.0:${PORTSDIR}/devel/googletest
|
|
TEST_CFLAGS= -I${LOCALBASE}/include
|
|
TEST_MAKE_ARGS= HAVE_GTEST=Yes
|
|
TEST_ALL_TARGET=test
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == arm || ${ARCH} == i386
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
.endif
|
|
|
|
pre-build:
|
|
${LN} -sf ${LOCALBASE}/lib/libgtest.so ${WRKSRC}/libgtest.a
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
|
|
cd ${STAGEDIR}${PREFIX}/lib && \
|
|
${LN} -sf lib${PORTNAME}.so.0 lib${PORTNAME}.so
|
|
.if ${PORT_OPTIONS:MPLUGINS}
|
|
${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/gmp${PORTNAME}.info ${STAGEDIR}${WEBPLUGIN_DIR}
|
|
${INSTALL_LIB} ${WRKSRC}/libgmp${PORTNAME}.so.0 \
|
|
${STAGEDIR}${WEBPLUGIN_DIR}/libgmp${PORTNAME}.so
|
|
${INSTALL_DATA} ${WRKDIR}/gmp${PORTNAME}.js ${STAGEDIR}${WEBPLUGIN_DIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|