aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2010-06-24 12:49:39 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2010-06-24 12:49:39 +0000
commit4e5defbee2b3a7b9fe58d0d598c8c60f1a5370c7 (patch)
tree122ec9a3960e12a11d7a5f6df08abeb0a1dbac25 /multimedia/libvpx
parentb54e6f1fd3a9cd76e94974b278c7b17367b5c534 (diff)
downloadports-4e5defbee2b3a7b9fe58d0d598c8c60f1a5370c7.tar.gz
ports-4e5defbee2b3a7b9fe58d0d598c8c60f1a5370c7.zip
Notes
Diffstat (limited to 'multimedia/libvpx')
-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
4 files changed, 111 insertions, 0 deletions
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