summaryrefslogtreecommitdiff
path: root/repo/libmpeg2/libmpeg2.xibuild
blob: ec0a54afe22608eb89e1ace566eea31d30d37774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
}