summaryrefslogtreecommitdiffstats
path: root/extra/smpeg/Pkgfile
blob: 3cf61db255d65cb200f888bd8df3be2231ad9a34 (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: sdl

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
}