contrib/smpeg/Pkgfile

30 lines
681 B
Plaintext
Raw Normal View History

2008-02-19 14:16:46 +01:00
# Description: A SDL MPEG player library.
2016-01-03 02:36:38 +01:00
# URL: http://icculus.org/smpeg/
2023-03-03 17:39:39 +01:00
# Maintainer: John McQuah, jmcquah at disroot dot org
2016-01-03 02:36:38 +01:00
# Depends on: glu libsdl
2008-02-19 14:16:46 +01:00
name=smpeg
2016-01-03 02:36:38 +01:00
version=0.4.5
2017-06-19 00:35:27 +02:00
release=2
source=(https://github.com/icculus/smpeg/archive/refs/tags/release_${version//./_}.zip)
renames=($name-$version.zip)
2008-02-19 14:16:46 +01:00
build() {
cd $name-release_*
2008-02-19 14:16:46 +01:00
2017-06-19 00:35:27 +02:00
CFLAGS+=' -Wno-error=narrowing'
2023-03-03 17:39:39 +01:00
LDFLAGS+=' -lX11'
./autogen.sh
2008-02-19 14:16:46 +01:00
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-gtk-player=no # but its man-page is still installed?
2008-02-19 14:16:46 +01:00
make
make install DESTDIR=$PKG
# delete la file and the dangling man-page
rm -f $PKG/usr/lib/lib$name.la
rm -f $PKG/usr/share/man/man1/gtv.1
2008-02-19 14:16:46 +01:00
}