summaryrefslogtreecommitdiff
path: root/repo/libmpeg2/libmpeg2.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libmpeg2/libmpeg2.xibuild')
-rw-r--r--repo/libmpeg2/libmpeg2.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/libmpeg2/libmpeg2.xibuild b/repo/libmpeg2/libmpeg2.xibuild
new file mode 100644
index 0000000..ec0a54a
--- /dev/null
+++ b/repo/libmpeg2/libmpeg2.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME="libmpeg2"
+DESC="A library for decoding MPEG-1 and MPEG-2 video streams"
+
+MAKEDEPS="libx11 libice libsm libxext libxv"
+
+PKG_VER=0.5.1
+SOURCE="https://gentoo.osuosl.org/distfiles/libmpeg2-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+arm-private-symbols.patch
+arm-textrel.patch
+"
+
+prepare() {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --with-pic \
+ --enable-shared \
+ --disable-static
+ make OPT_CFLAGS="$CFLAGS" \
+ MPEG2DEC_CFLAGS="$CFLAGS" \
+ LIBMPEG2_CFLAGS=""
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}