wok view mpd/receipt @ rev 16036
ARM: remove audiofile (dont compile on tank) and add xorg-recordproto
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 03:50:37 2014 +0100 (2014-03-09) |
parents | 4abbe39ea1e2 |
children | 098e3319bd98 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.17.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music Player Daemon (MPD)."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.musicpd.org/"
11 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \
15 audiofile faad2 lame sqlite libcurl glib libcrypto libwrap"
16 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
17 libmad-dev libogg-dev libvorbis-dev flac-dev audiofile-dev faad2-dev
18 glib-dev lame-dev libwrap-dev"
20 # Handle SliTaz arch
21 case "$SLITAZ_ARCH" in
22 arm)
23 DEPENDS="alsa-lib zlib glib lame libmad libsamplerate libwrap" ;;
24 esac
26 # Handle cross comilation
27 case "$ARCH" in
28 arm)
29 BUILD_DEPENDS="alsa-lib-dev zlib-dev glib-dev libgio-dev lame-dev \
30 libmad-dev libsamplerate-dev libwrap-dev" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 cd $src
37 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
38 ./configure \
39 --disable-jack \
40 --disable-ao \
41 --disable-modplug \
42 --disable-mms \
43 --disable-ffmpeg \
44 --disable-wavpack \
45 --disable-systemd-daemon \
46 --with-zeroconf=no \
47 $CONFIGURE_ARGS &&
48 make && make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/sbin $fs/etc
55 cp -a $install/usr/bin/mpd $fs/usr/sbin
56 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
57 cp -a $stuff/* $fs
58 }
60 post_install()
61 {
62 echo "Processing post-install commands..."
64 # Drop root priviledges and enable pid file
65 echo -n "Enabling mpd.conf..."
66 cd $root/etc
67 sed -i 's/#music_directory/music_directory/; \
68 s/#playlist_directory/playlist_directory/; \
69 s/#db_file/db_file/; \
70 s/#pid_file/pid_file/; \
71 s/#user "nobody"/user "tux"/; \
72 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
73 status
75 # Make mpd directories and files
76 echo -n "Enabling mpd files and directories..."
77 mkdir $root/etc/skel/music
78 mkdir -p $root/etc/skel/.mpd/playlists
79 touch $root/etc/skel/.mpd/mpd.log
80 #touch $root/etc/skel/.mpd/mpd.error
81 cp -f $root/etc/mpd.conf /etc/skel/.mpd
82 status
83 }