1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/
  13. PGK_MD5SUM:=00606c630b905aa6196330373b366c29
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=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))