Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2008-2012 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:=libconfig
  9. PKG_VERSION:=1.4.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.hyperrealm.com/libconfig
  13. PKG_MD5SUM:=b6ee0ce2b3ef844bad7cac2803a90634
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libconfig
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Configuration File Library
  22. URL:=http://www.hyperrealm.com/libconfig/
  23. endef
  24. define Package/libconfig/description
  25. Libconfig is a simple library for manipulating structured configuration
  26. files. This file format is more compact and more readable than XML. And
  27. unlike XML, it is type-aware, so it is not necessary to do string
  28. parsing in application code.
  29. Libconfig is very compact -- just 38K for the stripped C shared
  30. library (less than one-fourth the size of the expat XML parser library)
  31. and 66K for the stripped C++ shared library. This makes it well-suited
  32. for memory-constrained systems like handheld devices.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --enable-shared \
  36. --disable-static \
  37. --disable-cxx
  38. define Build/InstallDev
  39. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  40. endef
  41. define Package/libconfig/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libconfig))