wok-next view libplayer/receipt @ rev 20849
syslinux: prevent shell expansion, specify CONFIG_FILES
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 17:39:19 2018 +0300 (2018-06-23) |
parents | a7b1395df64a |
children | d2950281f122 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libplayer"
4 VERSION="2.0.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="A multimedia A/V abstraction layer API"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://libplayer.geexbox.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://libplayer.geexbox.org/releases/$TARBALL"
14 BUILD_DEPENDS="shared-mime-info xine-lib-dev"
15 SPLIT="libplayer-dev"
17 compile_rules() {
18 case "$ARCH" in
19 arm*) ARCH_ARGS="--cross-compile" ;;
20 esac
22 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure
23 ./configure \
24 --prefix=/usr\
25 --enable-mplayer \
26 --disable-gstreamer \
27 --disable-vlc ${ARCH_ARGS} &&
28 make && make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 libplayer)
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 DEPENDS="xine-lib"
38 ;;
39 *-dev)
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.*a $fs/usr/lib
43 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
44 cp -a $install/usr/include $fs/usr
45 ;;
46 esac
47 }