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

ARM: add some libs for mupdf
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 31 22:14:07 2014 +0200 (2014-03-31)
parents 6ae8ed78da10
children 55ae2a832163
rev   line source
pankso@16173 1 # SliTaz package receipt.
pankso@16173 2
pankso@16173 3 PACKAGE="ympd"
pankso@16173 4 VERSION="master-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"
pankso@16173 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@16173 10 WEB_SITE="http://www.ympd.org/"
pankso@16173 11 WGET_URL="git|git://github.com/notandy/ympd.git"
pankso@16218 12 #HOST_ARCH="i486 arm"
pankso@16173 13
pankso@16173 14 DEPENDS="mpd libmpdclient"
pascal@16188 15 BUILD_DEPENDS="libmpdclient-dev git 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 }