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.

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