2008-02-20 00:16:46 +11:00
|
|
|
# Description: A SDL MPEG player library.
|
2016-01-03 12:36:38 +11:00
|
|
|
# URL: http://icculus.org/smpeg/
|
2023-03-03 11:39:39 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2016-01-03 12:36:38 +11:00
|
|
|
# Depends on: glu libsdl
|
2008-02-20 00:16:46 +11:00
|
|
|
|
|
|
|
name=smpeg
|
2016-01-03 12:36:38 +11:00
|
|
|
version=0.4.5
|
2017-06-19 08:35:27 +10:00
|
|
|
release=2
|
2023-01-22 22:44:38 -05:00
|
|
|
source=(https://github.com/icculus/smpeg/archive/refs/tags/release_${version//./_}.zip)
|
|
|
|
renames=($name-$version.zip)
|
2008-02-20 00:16:46 +11:00
|
|
|
|
|
|
|
build() {
|
2023-01-22 22:44:38 -05:00
|
|
|
cd $name-release_*
|
2008-02-20 00:16:46 +11:00
|
|
|
|
2017-06-19 08:35:27 +10:00
|
|
|
CFLAGS+=' -Wno-error=narrowing'
|
2023-03-03 11:39:39 -05:00
|
|
|
LDFLAGS+=' -lX11'
|
2023-01-22 22:44:38 -05:00
|
|
|
./autogen.sh
|
2008-02-20 00:16:46 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2023-01-22 22:44:38 -05:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-gtk-player=no # but its man-page is still installed?
|
2008-02-20 00:16:46 +11:00
|
|
|
|
|
|
|
make
|
|
|
|
make install DESTDIR=$PKG
|
2023-01-22 22:44:38 -05:00
|
|
|
|
|
|
|
# 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-20 00:16:46 +11:00
|
|
|
}
|