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.4 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.30
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=https://www.musicpd.org/download/mpc/0
  11. PKG_HASH:=65fc5b0a8430efe9acbe6e261127960682764b20ab994676371bdc797d867fce
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  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. CONFIGURE_ARGS+= --disable-iconv
  32. # Newer sources require meson/ninja to build so...
  33. # Use our hacked-up version of the mpc v0.28 autotools.
  34. define Build/Prepare
  35. $(call Build/Prepare/Default)
  36. $(CP) ./autotools-files/* $(PKG_BUILD_DIR)/
  37. endef
  38. define Package/mpc/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpc $(1)/usr/bin/
  41. $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,mpc))