aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-15 06:34:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-15 06:34:29 +0000
commitcaafced7b751f4e886728ded0101c8fe109b1229 (patch)
tree6840675f9362e73b5c81b5a9ec8a4e7d762eeec9 /x11
parentae50530e4a676264b19bb053ee8ba0515f6f6061 (diff)
downloadaports-caafced7b751f4e886728ded0101c8fe109b1229.tar.bz2
aports-caafced7b751f4e886728ded0101c8fe109b1229.tar.xz
x11/libmpeg2: new aport
libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams http://libmpeg2.sourceforge.net/
Diffstat (limited to 'x11')
-rw-r--r--x11/libmpeg2/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11/libmpeg2/APKBUILD b/x11/libmpeg2/APKBUILD
new file mode 100644
index 0000000000..8b44458e32
--- /dev/null
+++ b/x11/libmpeg2/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmpeg2
+pkgver=0.5.1
+pkgrel=0
+pkgdesc="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
+url="http://libmpeg2.sourceforge.net/"
+license="GPL2"
+subpackages="$pkgname-dev $pkgname-doc mpeg2dec"
+depends=
+makedepends="libx11-dev libice-dev libsm-dev libxext-dev libxv-dev"
+source="http://$pkgname.sourceforge.net/files/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --enable-shared \
+ --disable-static || return 1
+ make OPT_CFLAGS="${CFLAGS}" \
+ MPEG2DEC_CFLAGS="${CFLAGS}" \
+ LIBMPEG2_CFLAGS="" || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+mpeg2dec() {
+ pkgdesc="a test program for libmpeg2"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/mpeg2dec "$subpkgdir"/usr/bin/
+}
+
+md5sums="0f92c7454e58379b4a5a378485bbd8ef libmpeg2-0.5.1.tar.gz"