pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import openh264-1.4.0 as wip/openh264.
Module Name: pkgsrc-wip
Committed By: Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By: tnn
Date: Sun Sep 27 01:41:43 2015 +0200
Changeset: 40c9338fbdc99f7ffee44dd3a6c9772969496e68
Added Files:
openh264/DESCR
openh264/Makefile
openh264/PLIST
openh264/distinfo
openh264/files/gmpopenh264.js
Log Message:
Import openh264-1.4.0 as wip/openh264.
Partly based on the FreeBSD ports package. Goes into wip because firefox
is not loading the plugin properly for some reason.
OpenH264 is a codec library which supports H.264 encoding and decoding.
It is suitable for use in real time applications such as WebRTC.
This package also contains the OpenH264 plugin for www/firefox.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=40c9338fbdc99f7ffee44dd3a6c9772969496e68
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
openh264/DESCR | 3 +++
openh264/Makefile | 50 +++++++++++++++++++++++++++++++++++++++++++
openh264/PLIST | 12 +++++++++++
openh264/distinfo | 5 +++++
openh264/files/gmpopenh264.js | 3 +++
5 files changed, 73 insertions(+)
diffs:
diff --git a/openh264/DESCR b/openh264/DESCR
new file mode 100644
index 0000000..0996ece
--- /dev/null
+++ b/openh264/DESCR
@@ -0,0 +1,3 @@
+OpenH264 is a codec library which supports H.264 encoding and decoding.
+It is suitable for use in real time applications such as WebRTC.
+This package also contains the OpenH264 plugin for www/firefox.
diff --git a/openh264/Makefile b/openh264/Makefile
new file mode 100644
index 0000000..e06d07e
--- /dev/null
+++ b/openh264/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD$
+
+VERSION= 1.4
+MINOR= .0
+DISTNAME= openh264-${VERSION}${MINOR}
+CATEGORIES= www multimedia
+MASTER_SITES= ${MASTER_SITE_GITHUB:=cisco/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/cisco/openh264/
+COMMENT= H.264 encoder/decoder library from Cisco
+LICENSE= 2-clause-bsd
+
+USE_TOOLS+= gmake pkg-config
+USE_LANGUAGES= c c++
+
+BUILD_TARGET= all plugin
+PKGCONFIG_OVERRIDE+= openh264.pc.in
+
+PLIST_SUBST+= VERSION=${VERSION:Q}
+MAKE_FLAGS+= PREFIX=${PREFIX:Q}
+MAKE_FLAGS+= ARCH=${MACHINE_ARCH:Q}
+MAKE_FLAGS+= HAVE_GMP_API=Yes
+CFLAGS+= -I${BUILDLINK_PREFIX.gmp-api}/include/gmp-api
+
+PLUGIN_DIR= lib/firefox/gmp-gmpopenh264/${VERSION}
+INSTALLATION_DIRS= ${PLUGIN_DIR}
+
+SUBST_CLASSES+= jsvars
+SUBST_STAGE.jsvars= pre-configure
+SUBST_MESSAGE.jsvars= Fixing mozilla configuration settings
+SUBST_FILES.jsvars= gmpopenh264.js
+SUBST_VARS.jsvars= VERSION
+SUBST_VARS.jsvars+= LASTUPDATE_TIMESTAMP
+
+LASTUPDATE_TIMESTAMP!= date +%s
+
+post-extract:
+ cp ${WRKSRC}/build/platform-freebsd.mk \
+ ${WRKSRC}/build/platform-netbsd.mk
+ cp ${FILESDIR}/gmpopenh264.js ${WRKSRC}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/gmpopenh264.info ${DESTDIR}${PREFIX}/${PLUGIN_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/libgmpopenh264.so.0 ${DESTDIR}${PREFIX}/${PLUGIN_DIR}/libgmpopenh264.so
+ ${INSTALL_DATA} ${WRKSRC}/gmpopenh264.js ${DESTDIR}${PREFIX}/${PLUGIN_DIR}/gmpopenh264.js
+
+.include "../../multimedia/gmp-api/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/openh264/PLIST b/openh264/PLIST
new file mode 100644
index 0000000..3903dd9
--- /dev/null
+++ b/openh264/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+include/wels/codec_api.h
+include/wels/codec_app_def.h
+include/wels/codec_def.h
+include/wels/codec_ver.h
+lib/firefox/gmp-gmpopenh264/${VERSION}/gmpopenh264.info
+lib/firefox/gmp-gmpopenh264/${VERSION}/gmpopenh264.js
+lib/firefox/gmp-gmpopenh264/${VERSION}/libgmpopenh264.so
+lib/libopenh264.a
+lib/libopenh264.so
+lib/libopenh264.so.0
+lib/pkgconfig/openh264.pc
diff --git a/openh264/distinfo b/openh264/distinfo
new file mode 100644
index 0000000..312b2da
--- /dev/null
+++ b/openh264/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (openh264-1.4.0.tar.gz) = 709520a591f5236af254a868b56fd4c5503ec929
+RMD160 (openh264-1.4.0.tar.gz) = 9f94eff519702bbe5b7447468f6eb80b68476486
+Size (openh264-1.4.0.tar.gz) = 37681189 bytes
diff --git a/openh264/files/gmpopenh264.js b/openh264/files/gmpopenh264.js
new file mode 100644
index 0000000..7b921ba
--- /dev/null
+++ b/openh264/files/gmpopenh264.js
@@ -0,0 +1,3 @@
+pref("media.gmp-gmpopenh264.autoupdate", false);
+pref("media.gmp-gmpopenh264.lastUpdate", @LASTUPDATE_TIMESTAMP@);
+pref("media.gmp-gmpopenh264.version", "@VERSION@");
Home |
Main Index |
Thread Index |
Old Index