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.5 KiB

  1. #
  2. # Copyright (C) 2011-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libmpdclient
  9. PKG_VERSION:=2.9
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/
  13. PGK_MD5SUM:=4b101a36e5c0cf967dc063391260ddbf
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILE:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.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. TARGET_CFLAGS+="-std=gnu99"
  29. define Build/Configure
  30. $(call Build/Configure/Default, \
  31. --disable-documentation \
  32. )
  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))