summaryrefslogtreecommitdiffstats
path: root/extra/smpeg/Pkgfile
blob: 118f00c1589f8ff7391d1cba1823afe845b11006 (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
# Description: Librairie lecteur MPEG SDL.
# URL: http://www.lokigames.com/development/smpeg.php3
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: thierryn1 at hispeed dot ch
# Depends on: sdl
# Run on: sdl

name=smpeg
version=0.4.4
release=4
source=(http://gentoo.osuosl.org/distfiles/smpeg-$version.tar.gz \
	smpeg-mpegaudiosdl.patch)

build() {
	cd smpeg-$version
	patch -p1 -i $SRC/smpeg-mpegaudiosdl.patch

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man

	sed -i -e 's|\(libsmpeg_la_LDFLAGS = .*\)|\1 -lstdc++|' Makefile

	make
	make install DESTDIR=$PKG

	rm $PKG/usr/share/man/man1/gtv.1
	sed -i "s/AC_DEFUN(AM_PATH_SMPEG/AC_DEFUN([AM_PATH_SMPEG]/" $PKG/usr/share/aclocal/smpeg.m4
}