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.

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