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.

55 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2009 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mpc
  9. PKG_VERSION:=0.20
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/musicpd
  13. PKG_MD5SUM:=24c81ad6afe6099e8d7a6826ef4b7105
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/mpc
  16. SECTION:=sound
  17. CATEGORY:=Sound
  18. DEPENDS:=+libmpdclient
  19. TITLE:=Music Player Daemon Console Client
  20. URL:=http://www.musicpd.org/
  21. endef
  22. define Package/mpc/description
  23. MPD is a music player supporting flac, mp3 and ogg files.
  24. It is typically controlled over a network using one of it's many
  25. clients including mpc(console), gmpc(gnome), phpmp(php) etc.
  26. this is MPC
  27. endef
  28. define Build/Configure
  29. $(call Build/Configure/Default, \
  30. --disable-iconv \
  31. )
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/Default,\
  35. CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
  36. prefix="/usr" \
  37. all \
  38. )
  39. endef
  40. define Package/mpc/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
  43. $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,mpc))