multimedia/openh264: convert to new option helpers
This commit is contained in:
parent
392c00ce87
commit
b6f55ae785
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397986
@ -25,6 +25,9 @@ OPTIONS_DEFINE= DEBUG PLUGINS TEST
|
||||
OPTIONS_DEFAULT=PLUGINS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
DEBUG_BUILD_DEPENDS_OFF= ${DEBUG_BUILD_DEPENDS_OFF_${ARCH}}
|
||||
DEBUG_BUILD_DEPENDS_OFF_amd64= nasm:${PORTSDIR}/devel/nasm
|
||||
DEBUG_BUILD_DEPENDS_OFF_i386= nasm:${PORTSDIR}/devel/nasm
|
||||
DEBUG_MAKE_ARGS=BUILDTYPE=Debug
|
||||
PLUGINS_BUILD_DEPENDS=gmp-api>=34.0:${PORTSDIR}/multimedia/gmp-api
|
||||
# gmp-api<36.0:${PORTSDIR}/multimedia/gmp-api
|
||||
@ -42,14 +45,6 @@ TEST_CFLAGS= -I${LOCALBASE}/include
|
||||
TEST_MAKE_ARGS= HAVE_GTEST=Yes
|
||||
TEST_ALL_TARGET=test
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ! ${PORT_OPTIONS:MDEBUG}
|
||||
. if ${ARCH} == amd64 || ${ARCH} == i386
|
||||
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
||||
. endif
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e '/gtest-targets\.mk/d' \
|
||||
-e '/pkgconfig/s/lib/libdata/' \
|
||||
@ -62,11 +57,11 @@ pre-build:
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
|
||||
.if ${PORT_OPTIONS:MPLUGINS}
|
||||
|
||||
post-install-PLUGINS-on:
|
||||
${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/gmp${PORTNAME}.info ${STAGEDIR}${WEBPLUGIN_DIR}
|
||||
${INSTALL_LIB} ${WRKSRC}/libgmp${PORTNAME}.so ${STAGEDIR}${WEBPLUGIN_DIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/gmp${PORTNAME}.js ${STAGEDIR}${WEBPLUGIN_DIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user