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.

63 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:=libmpdclient
  7. PKG_VERSION:=2.16
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_HASH:=fa6bdab67c0e0490302b38f00c27b4959735c3ec8aef7a88327adb1407654464
  11. PKG_SOURCE_URL:=https://www.musicpd.org/download/libmpdclient/2/
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_BUILD_DEPENDS:=meson/host
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../devel/meson/meson.mk
  19. define Package/libmpdclient
  20. TITLE:=libmpdclient
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. URL:=http://mpd.wikia.com/wiki/ClientLib:libmpdclient
  24. endef
  25. define Package/libmpdclient/description
  26. A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.
  27. endef
  28. MESON_ARGS+=-Ddocumentation=false
  29. define Build/InstallDev
  30. $(INSTALL_DIR) \
  31. $(1)/usr/include \
  32. $(1)/usr/lib \
  33. $(1)/usr/lib/pkgconfig
  34. $(CP) \
  35. $(PKG_INSTALL_DIR)/usr/lib/* \
  36. $(1)/usr/lib/
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/* \
  39. $(1)/usr/include/
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
  42. $(1)/usr/lib/
  43. endef
  44. define Package/libmpdclient/install
  45. $(INSTALL_DIR) \
  46. $(1)/usr/lib
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \
  49. $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libmpdclient))