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.

56 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2014 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.26
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.musicpd.org/download/mpc/0
  13. PKG_MD5SUM:=d4f37e7e6b32c804a870192d1eb86199
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/mpc
  17. SECTION:=sound
  18. CATEGORY:=Sound
  19. DEPENDS:=+libmpdclient
  20. TITLE:=Music Player Daemon Console Client
  21. URL:=http://www.musicpd.org/
  22. endef
  23. define Package/mpc/description
  24. MPD is a music player supporting flac, mp3 and ogg files.
  25. It is typically controlled over a network using one of it's many
  26. clients including mpc(console), gmpc(gnome), phpmp(php) etc.
  27. this is MPC
  28. endef
  29. define Build/Configure
  30. $(call Build/Configure/Default, \
  31. --disable-iconv \
  32. )
  33. endef
  34. define Build/Compile
  35. $(call Build/Compile/Default,\
  36. CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
  37. prefix="/usr" \
  38. all \
  39. )
  40. endef
  41. define Package/mpc/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
  44. $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
  45. endef
  46. $(eval $(call BuildPackage,mpc))