You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
4.8 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=mpd
  7. PKG_VERSION:=0.20.23
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.20/
  11. PKG_HASH:=503e5f9f237290f568ff7956ab2f9aed563594bf749f19b8fe994fb21434afea
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=GPL-2.0
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_CONFIG_DEPENDS:= \
  18. CONFIG_IPV6 \
  19. PKG_INSTALL:=1
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/mpd/Default
  24. SECTION:=sound
  25. CATEGORY:=Sound
  26. TITLE:=Music Player Daemon
  27. URL:=http://www.musicpd.org/
  28. DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \
  29. +AUDIO_SUPPORT:alsa-lib +boost +boost-container +libexpat +libflac
  30. endef
  31. define Package/mpd/Default/description
  32. Music Player Daemon (MPD) is a flexible, powerful, server-side
  33. application for playing music. It is typically controlled over a
  34. network using one of it's many clients including mpc (console),
  35. gmpc (gnome), phpmp (php), etc...
  36. endef
  37. define Package/mpd-full
  38. $(call Package/mpd/Default)
  39. TITLE+= (full)
  40. DEPENDS+= +libffmpeg +libid3tag +libmms +libupnp +libshout
  41. PROVIDES:=mpd
  42. VARIANT:=full
  43. endef
  44. define Package/mpd-full/description
  45. $(call Package/mpd/Default/description)
  46. .
  47. This package contains a full-blown Music Player Daemon.
  48. endef
  49. define Package/mpd-full/conffiles
  50. /etc/mpd.conf
  51. endef
  52. define Package/mpd-mini
  53. $(call Package/mpd/Default)
  54. TITLE+= (mini)
  55. DEPENDS+= +libmpg123 +libvorbisidec
  56. PROVIDES:=mpd
  57. VARIANT:=mini
  58. endef
  59. define Package/mpd-mini/description
  60. $(call Package/mpd/Default/description)
  61. .
  62. This package contains a minimal Music Player Daemon, with support for
  63. only Flac, MP3 & OGG media types & only file: & http: protocols.
  64. endef
  65. define Package/mpd-mini/conffiles
  66. /etc/mpd.conf
  67. endef
  68. define Package/mpd-avahi-service
  69. $(call Package/mpd/Default)
  70. TITLE+= (Avahi service)
  71. DEPENDS+=+avahi-daemon
  72. endef
  73. define Package/mpd-avahi-service/description
  74. $(call Package/mpd/Default/description)
  75. .
  76. This package contains the service definition for announcing the
  77. Music Player Daemon service via mDNS/DNS-SD.
  78. endef
  79. define Package/mpd-avahi-service/conffiles
  80. /etc/avahi/services/mpd.service
  81. endef
  82. EXTRA_LDFLAGS += $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive)
  83. CONFIGURE_ARGS += \
  84. $(call autoconf_bool,CONFIG_IPV6,ipv6) \
  85. --disable-debug \
  86. --disable-documentation \
  87. --disable-test \
  88. --disable-aac \
  89. --disable-adplug \
  90. --disable-ao \
  91. --disable-audiofile \
  92. --disable-bzip2 \
  93. --disable-cdio-paranoia \
  94. --disable-fluidsynth \
  95. --disable-wildmidi \
  96. --disable-gme \
  97. --enable-inotify \
  98. --disable-icu \
  99. --enable-iconv \
  100. --disable-iso9660 \
  101. --disable-jack \
  102. --disable-roar \
  103. --disable-libwrap \
  104. --disable-lsr \
  105. --disable-mad \
  106. --disable-mikmod \
  107. --disable-modplug \
  108. --disable-mpc \
  109. --disable-nfs \
  110. --disable-openal \
  111. --disable-opus \
  112. --disable-pulse \
  113. --disable-sidplay \
  114. --disable-smbclient \
  115. --disable-sndfile \
  116. --disable-solaris-output \
  117. --disable-sqlite \
  118. --disable-systemd-daemon \
  119. --disable-lame-encoder \
  120. --disable-twolame-encoder \
  121. --disable-shine-encoder \
  122. --disable-vorbis-encoder \
  123. --enable-wave-encoder \
  124. --disable-wavpack \
  125. --enable-webdav \
  126. --disable-zzip \
  127. --with-zeroconf=no \
  128. --disable-soxr \
  129. --enable-curl \
  130. --enable-httpd-output \
  131. $(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \
  132. --enable-tcp \
  133. --disable-sndio \
  134. --disable-haiku
  135. ifeq ($(BUILD_VARIANT),full)
  136. CONFIGURE_ARGS += \
  137. --enable-upnp \
  138. --enable-ffmpeg \
  139. --enable-id3 \
  140. --enable-mms \
  141. --disable-mpg123 \
  142. --enable-pipe-output \
  143. --enable-recorder-output \
  144. --enable-shout \
  145. --disable-vorbis
  146. endif
  147. ifeq ($(BUILD_VARIANT),mini)
  148. # oggflac is not compatible with tremor
  149. CONFIGURE_ARGS += \
  150. --disable-upnp \
  151. --disable-fifo \
  152. --disable-ffmpeg \
  153. --disable-id3 \
  154. --disable-mms \
  155. --disable-shout \
  156. --enable-vorbis \
  157. --with-tremor=yes \
  158. --disable-recorder-output
  159. endif
  160. define Package/mpd/install
  161. $(INSTALL_DIR) $(1)/usr/bin
  162. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
  163. $(INSTALL_DIR) $(1)/etc
  164. $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
  165. $(INSTALL_DIR) $(1)/etc/init.d
  166. $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
  167. endef
  168. define Package/mpd-full/install
  169. $(call Package/mpd/install,$1)
  170. endef
  171. define Package/mpd-mini/install
  172. $(call Package/mpd/install,$1)
  173. endef
  174. define Package/mpd-avahi-service/install
  175. $(INSTALL_DIR) $(1)/etc/avahi/services
  176. $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/
  177. endef
  178. $(eval $(call BuildPackage,mpd-full))
  179. $(eval $(call BuildPackage,mpd-mini))
  180. $(eval $(call BuildPackage,mpd-avahi-service))