summaryrefslogtreecommitdiffstats
path: root/extra/smpeg/Pkgfile
blob: 7390ef97da8764dbf08cb977a8f47676ca3de6b5 (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
# 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:

name=smpeg
version=0.4.4
release=3
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
}