Makefile 1.5 KB

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