wok rev 5629

Add: libcanberra
author Alexander Medvedev <devl547@gmail.com>
date Thu May 27 18:53:45 2010 +0000 (2010-05-27)
parents 23d1ab83e63f
children f6fea7bf06a8
files libcanberra-dev/receipt libcanberra/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libcanberra-dev/receipt	Thu May 27 18:53:45 2010 +0000
     1.3 @@ -0,0 +1,21 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libcanberra-dev"
     1.7 +VERSION="0.24"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Portable Sound Event Library"
    1.10 +MAINTAINER="devl547@gmail.com"
    1.11 +WEB_SITE="http://0pointer.de/lennart/projects/libcanberra/"
    1.12 +WANTED="libcanberra"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/lib/$WANTED-$VERSION $fs/usr/share
    1.18 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.19 +	cp -a $_pkg/usr/lib/$WANTED-$VERSION/*.*a $fs/usr/lib/$WANTED-$VERSION
    1.20 +	cp -a $_pkg/usr/include $fs/usr
    1.21 +	cp -a $_pkg/usr/share/vala $fs/usr/share
    1.22 +	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.23 +}
    1.24 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libcanberra/receipt	Thu May 27 18:53:45 2010 +0000
     2.3 @@ -0,0 +1,33 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libcanberra"
     2.7 +VERSION="0.24"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Portable Sound Event Library"
    2.10 +MAINTAINER="devl547@gmail.com"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 +WEB_SITE="http://0pointer.de/lennart/projects/libcanberra/"
    2.13 +WGET_URL="$WEB_SITE/$TARBALL"
    2.14 +DEPENDS="libvorbis libogg gstreamer alsa-lib"
    2.15 +BUILD_DEPENDS="libvorbis-dev libogg-dev gstreamer-dev alsa-lib-dev vala"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	cd $src
    2.21 +	./configure \
    2.22 +		--prefix=/usr \
    2.23 +		--enable-gtk \
    2.24 +		$CONFIGURE_ARGS &&
    2.25 +	make &&
    2.26 +	make DESTDIR=$PWD/_pkg install
    2.27 +}
    2.28 +
    2.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.30 +genpkg_rules()
    2.31 +{
    2.32 +	mkdir -p $fs/usr/lib/$PACKAGE-$VERSION
    2.33 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.34 +	# We could split package in libcanberra-modules to avoid gstreamer dep.
    2.35 +	cp -a $_pkg/usr/lib/$PACKAGE-$VERSION/*.so $fs/usr/lib/$PACKAGE-$VERSION
    2.36 +}