wok-next view ympd/receipt @ rev 20634
oxine: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 27 12:51:30 2018 +0200 (2018-04-27) |
parents | c4e53a39395a |
children | 7506b35e1c6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="ympd"
4 VERSION="1.2.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Lightweight MPD (Music Player Daemon) web client."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ympd.org/"
11 WGET_URL="https://github.com/notandy/ympd/archive/v$VERSION.tar.gz"
13 DEPENDS="mpd libmpdclient"
14 BUILD_DEPENDS="libmpdclient-dev cmake"
16 # Handle cross compilation.
17 case "$ARCH" in
18 arm*)
19 BUILD_DEPENDS="libmpdclient-dev"
20 ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \
21 -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir build && cd build
28 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
29 ${ARCH_ARGS} .. &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }