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.

69 lines
1.6 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:=1
  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_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libmpdclient
  19. TITLE:=libmpdclient
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. URL:=http://mpd.wikia.com/wiki/ClientLib:libmpdclient
  23. endef
  24. define Package/libmpdclient/description
  25. A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.
  26. endef
  27. CONFIGURE_ARGS+= --disable-documentation
  28. # Newer sources require meson/ninja to build so...
  29. # Use our hacked-up version of the libmpdclient v2.11 autotools.
  30. define Build/Prepare
  31. $(call Build/Prepare/Default)
  32. $(CP) ./autotools-files/* $(PKG_BUILD_DIR)/
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) \
  36. $(1)/usr/include \
  37. $(1)/usr/lib \
  38. $(1)/usr/lib/pkgconfig
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/lib/* \
  41. $(1)/usr/lib/
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/* \
  44. $(1)/usr/include/
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
  47. $(1)/usr/lib/
  48. endef
  49. define Package/libmpdclient/install
  50. $(INSTALL_DIR) \
  51. $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libmpdclient))