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.

68 lines
1.5 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.11
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_HASH:=15fe693893c0d7ea3f4c35c4016fbd0332836164178b20983eec9b470846baf6
  11. PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/
  12. PGK_HASH:=15fe693893c0d7ea3f4c35c4016fbd0332836164178b20983eec9b470846baf6
  13. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=COPYING
  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. TARGET_CFLAGS+="-std=gnu99"
  28. define Build/Configure
  29. $(call Build/Configure/Default, \
  30. --disable-documentation \
  31. )
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) \
  35. $(1)/usr/include \
  36. $(1)/usr/lib \
  37. $(1)/usr/lib/pkgconfig
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/lib/* \
  40. $(1)/usr/lib/
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/* \
  43. $(1)/usr/include/
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
  46. $(1)/usr/lib/
  47. endef
  48. define Package/libmpdclient/install
  49. $(INSTALL_DIR) \
  50. $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \
  53. $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libmpdclient))