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.

57 lines
1.3 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:=mpc
  7. PKG_VERSION:=0.28
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=http://www.musicpd.org/download/mpc/0
  11. PKG_HASH:=a4337d06c85dc81a638821d30fce8a137a58d13d510be34a11c1cce95cabc547
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_LICENSE_FILES:=COPYING
  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))