2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=http
://www.musicpd.org
/download
/mpd
/0.20/
14 PKG_HASH
:=cd77a2869e32354b004cc6b34fcb0bee56114caa2d9ed862aaa8071441e34eb7
15 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
18 PKG_LICENSE_FILES
:=COPYING
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_CONFIG_DEPENDS
:= \
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/nls.mk
32 define Package
/mpd
/Default
35 TITLE
:=Music Player Daemon
36 URL
:=http
://www.musicpd.org
/
37 DEPENDS
:= +zlib
+libcurl
+libpthread
+libmpdclient
+libstdcpp
$(ICONV_DEPENDS
) \
38 +AUDIO_SUPPORT
:alsa-lib
+boost
+boost-container
+libexpat
41 define Package
/mpd
/Default
/description
42 Music Player Daemon
(MPD
) is a flexible
, powerful
, server-side
43 application for playing music. It is typically controlled over a
44 network using one of it
's many clients including mpc (console),
45 gmpc (gnome), phpmp (php), etc...
48 define Package/mpd-full
49 $(call Package/mpd/Default)
51 DEPENDS+= +libffmpeg +libid3tag +libmms +libupnp +libshout
56 define Package/mpd-full/description
57 $(call Package/mpd/Default/description)
59 This package contains a full-blown Music Player Daemon.
62 define Package/mpd-full/conffiles
66 define Package/mpd-mini
67 $(call Package/mpd/Default)
69 DEPENDS+= +libflac +libmpg123 +libvorbisidec
74 define Package/mpd-mini/description
75 $(call Package/mpd/Default/description)
77 This package contains a minimal Music Player Daemon, with support for
78 only Flac, MP3 & OGG media types & only file: & http: protocols.
81 define Package/mpd-mini/conffiles
85 define Package/mpd-avahi-service
86 $(call Package/mpd/Default)
87 TITLE+= (Avahi service)
88 DEPENDS+=+avahi-daemon
91 define Package/mpd-avahi-service/description
92 $(call Package/mpd/Default/description)
94 This package contains the service definition for announcing the
95 Music Player Daemon service via mDNS/DNS-SD.
98 define Package/mpd-avahi-service/conffiles
99 /etc/avahi/services/mpd.service
102 EXTRA_LDFLAGS += $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive)
103 EXTRA_CXXFLAGS += $(if $(CONFIG_GCC_VERSION_4_8),-std=gnu++11,-std=gnu++14)
106 $(call autoconf_bool,CONFIG_IPV6,ipv6) \
108 --disable-documentation \
113 --disable-audiofile \
115 --disable-cdio-paranoia \
116 --disable-fluidsynth \
136 --disable-smbclient \
138 --disable-solaris-output \
140 --disable-systemd-daemon \
141 --disable-lame-encoder \
142 --disable-twolame-encoder \
143 --disable-shine-encoder \
144 --disable-vorbis-encoder \
145 --enable-wave-encoder \
153 --enable-httpd-output \
154 $(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \
160 ifeq ($(BUILD_VARIANT),full)
169 --enable-pipe-output \
170 --enable-recorder-output \
175 ifeq ($(BUILD_VARIANT),mini)
177 # oggflac is not compatible with tremor
187 --disable-recorder-output
190 define Package/mpd/install
191 $(INSTALL_DIR) $(1)/usr/bin
192 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
193 $(INSTALL_DIR) $(1)/etc
194 $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
195 $(INSTALL_DIR) $(1)/etc/init.d
196 $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
199 define Package/mpd-full/install
200 $(call Package/mpd/install,$1)
203 define Package/mpd-mini/install
204 $(call Package/mpd/install,$1)
207 define Package/mpd-avahi-service/install
208 $(INSTALL_DIR) $(1)/etc/avahi/services
209 $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/
212 $(eval $(call BuildPackage,mpd-full))
213 $(eval $(call BuildPackage,mpd-mini))
214 $(eval $(call BuildPackage,mpd-avahi-service))