wok-6.x annotate ympd/receipt @ rev 16678

Add virtual packages Qt4, libcairo-compmgr, libpurple
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 16 09:47:35 2014 +0000 (2014-05-16)
parents d6b99c62ef00
children 6135577f4d08
rev   line source
pankso@16173 1 # SliTaz package receipt.
pankso@16173 2
pankso@16173 3 PACKAGE="ympd"
pascal@16322 4 VERSION="1.2.1"
pankso@16173 5 CATEGORY="multimedia"
pankso@16173 6 SHORT_DESC="Lightweight MPD (Music Player Daemon) web client."
pankso@16173 7 MAINTAINER="pankso@slitaz.org"
pankso@16173 8 LICENSE="GPL2"
pascal@16322 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16173 10 WEB_SITE="http://www.ympd.org/"
pascal@16322 11 WGET_URL="https://github.com/notandy/ympd/archive/v$VERSION.tar.gz"
pankso@16218 12 #HOST_ARCH="i486 arm"
pankso@16173 13
pankso@16173 14 DEPENDS="mpd libmpdclient"
pascal@16322 15 BUILD_DEPENDS="libmpdclient-dev wget cmake"
pankso@16173 16
pankso@16186 17 # Handle cross compilation.
pankso@16186 18 case "$ARCH" in
pankso@16186 19 arm*)
pankso@16186 20 BUILD_DEPENDS="libmpdclient-dev"
pankso@16186 21 ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \
pankso@16186 22 -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;;
pankso@16186 23 esac
pankso@16186 24
pankso@16173 25 # Rules to configure and make the package.
pankso@16173 26 compile_rules()
pankso@16173 27 {
pankso@16173 28 mkdir build && cd build
pankso@16173 29 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
pankso@16186 30 ${ARCH_ARGS} .. &&
pankso@16173 31 make && make install
pankso@16173 32 }
pankso@16173 33
pankso@16173 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16173 35 genpkg_rules()
pankso@16173 36 {
pankso@16173 37 mkdir -p $fs/usr
pankso@16173 38 cp -a $install/usr/bin $fs/usr
pankso@16173 39 }