multimedia/openh264: Unhook plugins

This commit is contained in:
Bastard Operator from Hell 2025-04-28 17:35:13 +02:00
parent ff6aae74c6
commit 7fb51b4a28
No known key found for this signature in database
GPG Key ID: BDB9B5A617C0BC91
3 changed files with 1 additions and 33 deletions

View File

@ -25,23 +25,13 @@ ALL_TARGET= all
PLIST_SUB= PORTVERSION="${PORTVERSION}"
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= DEBUG PLUGINS TEST
OPTIONS_DEFAULT=PLUGINS
OPTIONS_DEFINE= DEBUG TEST
OPTIONS_SUB= yes
DEBUG_BUILD_DEPENDS_OFF= ${DEBUG_BUILD_DEPENDS_OFF_${ARCH}}
DEBUG_BUILD_DEPENDS_OFF_amd64= nasm:devel/nasm
DEBUG_BUILD_DEPENDS_OFF_i386= nasm:devel/nasm
DEBUG_MAKE_ARGS=BUILDTYPE=Debug
PLUGINS_BUILD_DEPENDS=gmp-api>=34.0:multimedia/gmp-api
# gmp-api<36.0: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} \
TIMESTAMP="`${AWK} '/TIMESTAMP/ { print $$$$$$$$$3 }' ${DISTINFO_FILE}`"
@ -61,10 +51,4 @@ pre-build:
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.*
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}
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
pref("media.gmp-gmpopenh264.autoupdate", false);
pref("media.gmp-gmpopenh264.lastUpdate", %%TIMESTAMP%%);
pref("media.gmp-gmpopenh264.version", "%%PORTVERSION%%");

View File

@ -2,19 +2,6 @@ include/wels/codec_api.h
include/wels/codec_app_def.h
include/wels/codec_def.h
include/wels/codec_ver.h
%%PLUGINS%%%%WEBPLUGIN_DIR%%/gmpopenh264.info
%%PLUGINS%%@rmtry lib/cliqz/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/firefox-nightly/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/firefox/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/seamonkey/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/thunderbird/defaults/pref/gmpopenh264.js
%%PLUGINS%%%%WEBPLUGIN_DIR%%/gmpopenh264.js
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/cliqz/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/firefox-nightly/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/firefox/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/seamonkey/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/thunderbird/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%%%WEBPLUGIN_DIR%%/libgmpopenh264.so
lib/libopenh264.a
lib/libopenh264.so
lib/libopenh264.so.%%PORTVERSION%%