forked from ports/contrib
30 lines
695 B
Plaintext
30 lines
695 B
Plaintext
# Description: A SDL MPEG player library.
|
|
# URL: http://icculus.org/smpeg/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glu libsdl
|
|
|
|
name=smpeg
|
|
version=0.4.5
|
|
release=2
|
|
source=(https://github.com/icculus/smpeg/archive/refs/tags/release_${version//./_}.zip)
|
|
renames=($name-$version.zip)
|
|
|
|
build() {
|
|
cd $name-release_*
|
|
|
|
CFLAGS+=' -Wno-error=narrowing'
|
|
export LDFLAGS="${LDFLAGS} -lX11"
|
|
./autogen.sh
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--enable-gtk-player=no # but its man-page is still installed?
|
|
|
|
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
|
|
}
|