wok-next annotate libsmpeg/receipt @ rev 20992

eduke32: simplify bdeps, fix build for i486
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 04 11:45:29 2018 +0300 (2018-10-04)
parents 5841522533ec
children f48456621a9d
rev   line source
al@20462 1 # SliTaz package receipt v2.
claudinei@3338 2
claudinei@3338 3 PACKAGE="libsmpeg"
claudinei@14863 4 VERSION="399"
claudinei@3338 5 CATEGORY="development"
al@20462 6 SHORT_DESC="MPEG decoding library"
claudinei@3338 7 MAINTAINER="claudinei@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
claudinei@3338 9 WEB_SITE="http://icculus.org/smpeg"
al@20883 10 REPOLOGY="smpeg"
al@20462 11
al@20462 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20462 13 BRANCH="$VERSION"
al@20462 14 WGET_URL="subversion|svn://svn.icculus.org/smpeg/trunk"
al@20462 15
slaxemulator@8112 16 BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar"
al@20462 17 SPLIT="libsmpeg-dev"
claudinei@3338 18
al@20462 19 compile_rules() {
pascal@19932 20 sed -i 's/ 0-1/(unsigned int)&/g' audio/hufftable.cpp
claudinei@3338 21 chmod +x install-sh
claudinei@3338 22 ./autogen.sh
al@20462 23 ./configure \
al@20462 24 --disable-gtk-player \
al@20462 25 $CONFIGURE_ARGS &&
al@20595 26 fix libtool &&
slaxemulator@6692 27 make LDFLAGS+=-lstdc++ &&
pascal@15004 28 make DESTDIR=$DESTDIR install
claudinei@3338 29 }
claudinei@3338 30
al@20462 31 genpkg_rules() {
al@20462 32 case $PACKAGE in
al@20462 33 libsmpeg)
al@20462 34 mkdir -p $fs/usr/lib
al@20462 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20462 36 DEPENDS="libsdl gcc-lib-base"
al@20462 37 ;;
al@20462 38 *-dev)
al@20462 39 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share $fs/usr/include
al@20462 40 cp $install/usr/bin/smpeg-config $fs/usr/bin
al@20462 41 chmod +x $fs/usr/bin/smpeg-config
al@20462 42 cp -a $install/usr/include/smpeg $fs/usr/include
al@20462 43 cp -a $install/usr/lib/*.a $fs/usr/lib
al@20462 44 cp -a $install/usr/share/aclocal $fs/usr/share
al@20462 45 #fix aclocal warnings
al@20462 46 sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" $fs/usr/share/aclocal/smpeg.m4
al@20462 47 ;;
al@20462 48 esac
claudinei@3338 49 }