Guest User

feeds/packages/sound/mpd/Makefile

a guest
Feb 8th, 2012
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Copyright (C) 2007-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7.  
  8. include $(TOPDIR)/rules.mk
  9.  
  10. PKG_NAME:=mpd
  11. PKG_VERSION:=0.16.5
  12. PKG_RELEASE:=1
  13.  
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=@SF/musicpd
  16. PKG_MD5SUM:=f7564cff12035f6a1112cce770655df7
  17.  
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20.  
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23.  
  24. define Package/mpd
  25. SECTION:=sound
  26. CATEGORY:=Sound
  27. TITLE:=Music Player Daemon
  28. URL:=http://www.musicpd.org/
  29. # libvorbis and therewith libogg are needed for shout support
  30. DEPENDS:= \
  31. +BUILD_PATENTED:libmad \
  32. +glib2 +libcurl +libflac +libpthread \
  33. +libvorbisidec +libid3tag +libmms
  34. endef
  35.  
  36. define Package/mpd/description
  37. MPD is a music player supporting flac, mp3 and ogg files. It is
  38. typically controlled over a network using one of it's many clients
  39. including mpc(console), gmpc(gnome), phpmp(php), etc...
  40. endef
  41.  
  42. define Package/mpd/conffiles
  43. /etc/mpd.conf
  44. endef
  45.  
  46. # oggflac is not compatible with tremor
  47. CONFIGURE_ARGS += \
  48. $(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \
  49. --disable-audiofile \
  50. --disable-mpc \
  51. --disable-lsr \
  52. --disable-ao \
  53. --disable-mvp \
  54. --disable-lame-encoder \
  55. --disable-ffmpeg \
  56. --disable-oggflac \
  57. --disable-cue \
  58. --disable-jack \
  59. --disable-modplug \
  60. --disable-pulse \
  61. --disable-sidplay \
  62. --disable-sqlite \
  63. --disable-shout \
  64. --disable-vorbis \
  65. --enable-id3 \
  66. --enable-lastfm \
  67. --enable-mms \
  68. --enable-flac \
  69. --enable-curl \
  70. --enable-oss \
  71. --with-zeroconf=no \
  72. --disable-test \
  73. --with-tremor=yes \
  74.  
  75. CONFIGURE_VARS += \
  76. FLAC_CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/FLAC" \
  77. FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
  78. $(if $(CONFIG_BUILD_PATENTED),MAD_CFLAGS="$(TARGET_CFLAGS)") \
  79. $(if $(CONFIG_BUILD_PATENTED),MAD_LIBS="$(TARGET_LDFLAGS) -lmad") \
  80.  
  81. TARGET_CFLAGS += -std=gnu99
  82. TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  83.  
  84. # use gcc instead of g++ to avoid unnecessary linking against libstdc++
  85. TARGET_CXX:=$(TARGET_CC)
  86.  
  87. define Package/mpd/install
  88. $(INSTALL_DIR) $(1)/etc
  89. $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
  90. $(INSTALL_DIR) $(1)/usr/bin
  91. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
  92. $(INSTALL_DIR) $(1)/etc/init.d
  93. $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
  94. $(INSTALL_DIR) $(1)/etc/avahi/services
  95. $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/
  96. endef
  97.  
  98. $(eval $(call BuildPackage,mpd))
RAW Paste Data