aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashish <ashish@FreeBSD.org>2010-06-24 20:49:39 +0800
committerashish <ashish@FreeBSD.org>2010-06-24 20:49:39 +0800
commit855ead421ceec3be616da1f60317baa27cb53768 (patch)
tree37578e294a9c966aaf8bab47f39ca33a61f5eba8
parenta2ea07eb9a26626d6384593a1b8bd38e8c4bd1fd (diff)
downloadfreebsd-ports-gnome-855ead421ceec3be616da1f60317baa27cb53768.tar.gz
freebsd-ports-gnome-855ead421ceec3be616da1f60317baa27cb53768.tar.zst
freebsd-ports-gnome-855ead421ceec3be616da1f60317baa27cb53768.zip
libvpx is the VP8 Codec SDK.
WWW: http://www.webmproject.org/ PR: ports/146798 Submitted by: Ashish SHUKLA <ashish at FreeBSD.org> Approved by: tabthorpe (mentor) Feature safe: yes
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/libvpx/Makefile85
-rw-r--r--multimedia/libvpx/distinfo3
-rw-r--r--multimedia/libvpx/pkg-descr3
-rw-r--r--multimedia/libvpx/pkg-plist20
5 files changed, 112 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index f2f0b9e13103..ec29e0f31bcc 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -157,6 +157,7 @@
SUBDIR += libtheora
SUBDIR += libtuner
SUBDIR += libv4l
+ SUBDIR += libvpx
SUBDIR += libxine
SUBDIR += libxspf
SUBDIR += linux-divx4linux
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
new file mode 100644
index 000000000000..ba1ed503a034
--- /dev/null
+++ b/multimedia/libvpx/Makefile
@@ -0,0 +1,85 @@
+# New ports collection makefile for: libvpx
+# Date created: 2010-05-21
+# Whom: Ashish SHUKLA <ashish@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libvpx
+PORTVERSION= 0.9.1
+CATEGORIES= multimedia
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= ashish@FreeBSD.org
+COMMENT= VP8 Codec SDK
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
+ ${LOCALBASE}/bin/yasm:${PORTSDIR}/devel/yasm
+
+USE_BZIP2= yes
+PROJECTHOST= webm
+HAS_CONFIGURE= yes
+USE_GMAKE= yes
+USE_PERL5_BUILD= yes
+USE_LDCONFIG= yes
+
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+OPTIONS= DEBUG "Enable debugging" OFF \
+ POSTPROC "Enable postprocessing" ON \
+ RUNTIME "Enable runtime CPU detection" ON \
+ THREADS "Enable multithread" ON \
+ SHARED "Enable shared-library support" ON
+
+ALL_TARGET=
+CONFIGURE_ARGS+= --enable-pic --disable-install-srcs --enable-vp8
+MAKE_ARGS+= DIST_DIR=${PREFIX} verbose=yes
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+.if defined(WITH_POSTPROC)
+CONFIGURE_ARGS+= --enable-postproc
+.endif
+
+.if defined(WITH_RUNTIME)
+CONFIGURE_ARGS+= --enable-runtime-cpu-detect
+.endif
+
+.if defined(WITHOUT_THREADS)
+CONFIGURE_ARGS+= --disable-multithread
+.endif
+
+.if defined(WITH_SHARED)
+CONFIGURE_ARGS+= --enable-shared
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CONFIGURE_ARGS+= --target=x86_64-linux-gcc
+.elif ${ARCH} == "i386"
+CONFIGURE_ARGS+= --target=x86-linux-gcc
+.else
+IGNORE= no support for ${ARCH} the moment. testing/patches are welcome
+.endif
+
+post-extract:
+ @${MV} ${WRKSRC}/LICENSE ${WRKSRC}/COPYING
+
+post-patch:
+ @${GREP} -Rl '^#!/bin/bash' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
+ -e 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,g'
+.if ${OSVERSION} < 700000
+ @${GREP} -Rl 'LIBVPX_SO.*extralibs' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
+ -e 's/\(LIBVPX_SO.*extralibs[[:space:]]*+=[[:space:]]*\)/\1-lc /g'
+.else
+ @${GREP} -Rl -- '-l\?pthread' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -E \
+ -e 's/-l?pthread/${PTHREAD_LIBS}/g'
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/libvpx/distinfo b/multimedia/libvpx/distinfo
new file mode 100644
index 000000000000..46f70f544f1d
--- /dev/null
+++ b/multimedia/libvpx/distinfo
@@ -0,0 +1,3 @@
+MD5 (libvpx-0.9.1.tar.bz2) = e1442e74d0cca228785083fa520735a2
+SHA256 (libvpx-0.9.1.tar.bz2) = c4e8e463e079ffde5b6948366a1d0873f1bf685dccd89ca137585c2b8247ec59
+SIZE (libvpx-0.9.1.tar.bz2) = 1191203
diff --git a/multimedia/libvpx/pkg-descr b/multimedia/libvpx/pkg-descr
new file mode 100644
index 000000000000..e3aeb4b9bdf8
--- /dev/null
+++ b/multimedia/libvpx/pkg-descr
@@ -0,0 +1,3 @@
+libvpx is the VP8 Codec SDK.
+
+WWW: http://www.webmproject.org/
diff --git a/multimedia/libvpx/pkg-plist b/multimedia/libvpx/pkg-plist
new file mode 100644
index 000000000000..d60ca40a9eb7
--- /dev/null
+++ b/multimedia/libvpx/pkg-plist
@@ -0,0 +1,20 @@
+bin/ivfdec
+bin/ivfenc
+include/vpx/vp8.h
+include/vpx/vp8cx.h
+include/vpx/vp8dx.h
+include/vpx/vp8e.h
+include/vpx/vpx_codec.h
+include/vpx/vpx_codec_impl_bottom.h
+include/vpx/vpx_codec_impl_top.h
+include/vpx/vpx_decoder.h
+include/vpx/vpx_decoder_compat.h
+include/vpx/vpx_encoder.h
+include/vpx/vpx_image.h
+include/vpx/vpx_integer.h
+lib/libvpx.a
+lib/libvpx.so
+lib/libvpx.so.0
+lib/libvpx.so.0.9
+lib/libvpx.so.0.9.1
+@dirrm include/vpx