Date: Wed, 15 Oct 2014 12:01:03 +0000 (UTC) From: Beat Gaetzi <beat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370910 - in head/multimedia: . openh264 openh264/files Message-ID: <201410151201.s9FC13Qh099946@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: beat Date: Wed Oct 15 12:01:03 2014 New Revision: 370910 URL: https://svnweb.freebsd.org/changeset/ports/370910 QAT: https://qat.redports.org/buildarchive/r370910/ Log: OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. WWW: http://www.openh264.org/ PR: 194356 Submitted by: Jan Beich Added: head/multimedia/openh264/ head/multimedia/openh264/Makefile (contents, props changed) head/multimedia/openh264/distinfo (contents, props changed) head/multimedia/openh264/files/ head/multimedia/openh264/files/gmpopenh264.js.in (contents, props changed) head/multimedia/openh264/files/patch-Makefile (contents, props changed) head/multimedia/openh264/pkg-descr (contents, props changed) head/multimedia/openh264/pkg-plist (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Wed Oct 15 11:56:06 2014 (r370909) +++ head/multimedia/Makefile Wed Oct 15 12:01:03 2014 (r370910) @@ -257,6 +257,7 @@ SUBDIR += ogmrip SUBDIR += ogmtools SUBDIR += opencinematools + SUBDIR += openh264 SUBDIR += openquicktime SUBDIR += openshot SUBDIR += oqtencoder Added: head/multimedia/openh264/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/Makefile Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,66 @@ +# $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> Added: head/multimedia/openh264/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/distinfo Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,2 @@ +SHA256 (openh264-1.1.tar.gz) = 447502018fea40ef47a1fcc0ef7f4aeca3364ad42db63840ab1bb0bd2910a44e +SIZE (openh264-1.1.tar.gz) = 13193769 Added: head/multimedia/openh264/files/gmpopenh264.js.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/files/gmpopenh264.js.in Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,2 @@ +pref("media.gmp-gmpopenh264.path", "%%WEBPLUGIN_DIR%%"); +pref("media.gmp-gmpopenh264.version", "%%PORTVERSION%%"); Added: head/multimedia/openh264/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/files/patch-Makefile Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,19 @@ +--- Makefile~ ++++ Makefile +@@ -184,7 +184,7 @@ plugin: + @echo "You do not have gmp-api. Run make gmp-bootstrap to get the gmp-api headers." + endif + +-$(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX): $(MODULE_OBJS) $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS) ++$(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX): $(MODULE_OBJS) $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) + $(QUIET)rm -f $@ + $(QUIET_CXX)$(CXX) $(SHARED) $(LDFLAGS) $(CXX_LINK_O) $+ $(SHLDFLAGS) $(MODULE_LDFLAGS) + +@@ -207,7 +207,6 @@ install: install-static install-shared + @: + + ifeq ($(HAVE_GTEST),Yes) +-include build/gtest-targets.mk + include test/api/targets.mk + include test/decoder/targets.mk + include test/encoder/targets.mk Added: head/multimedia/openh264/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/pkg-descr Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,4 @@ +OpenH264 is a codec library which supports H.264 encoding and decoding. +It is suitable for use in real time applications such as WebRTC. + +WWW: http://www.openh264.org/ Added: head/multimedia/openh264/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/openh264/pkg-plist Wed Oct 15 12:01:03 2014 (r370910) @@ -0,0 +1,15 @@ +include/wels/codec_api.h +include/wels/codec_app_def.h +include/wels/codec_def.h +%%PLUGINS%%%%WEBPLUGIN_DIR%%/gmpopenh264.info +%%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%%%%WEBPLUGIN_DIR%%/gmpopenh264.js +%%PLUGINS%%@exec ln -sf %D/%%WEBPLUGIN_DIR%%/gmpopenh264.js %D/lib/firefox-nightly/defaults/pref/ 2>/dev/null || true +%%PLUGINS%%@exec ln -sf %D/%%WEBPLUGIN_DIR%%/gmpopenh264.js %D/lib/firefox/defaults/pref/ 2>/dev/null || true +%%PLUGINS%%@exec ln -sf %D/%%WEBPLUGIN_DIR%%/gmpopenh264.js %D/lib/seamonkey/defaults/pref/ 2>/dev/null || true +%%PLUGINS%%%%WEBPLUGIN_DIR%%/libgmpopenh264.so +lib/libopenh264.a +lib/libopenh264.so +lib/libopenh264.so.0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410151201.s9FC13Qh099946>