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.

72 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-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:=confuse
  9. PKG_VERSION:=3.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/martinh/libconfuse/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=ISC
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_CPE_ID:=cpe:/a:libconfuse_project:libconfuse
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/confuse
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=libConfuse is a configuration file parser library
  25. URL:=https://github.com/martinh/libconfuse
  26. endef
  27. define Package/confuse/description
  28. libConfuse is a configuration file parser library, licensed under the
  29. terms of the ISC license, and written in C. It supports sections and
  30. (lists of) values (strings, integers, floats, booleans or other
  31. sections), as well as some other features (such as single/double-quoted
  32. strings, environment variable expansion, functions and nested include
  33. statements). It makes it very easy to add configuration file capability
  34. to a program using a simple API.
  35. The goal of libConfuse is not to be the configuration file parser
  36. library with a gazillion of features. Instead, it aims to be easy to use
  37. and quick to integrate with your code. libConfuse was called libcfg
  38. before, but was changed to not confuse with other similar libraries.
  39. endef
  40. CONFIGURE_ARGS += \
  41. --enable-shared \
  42. --enable-static \
  43. --disable-rpath \
  44. --without-libiconv-prefix \
  45. --without-libintl-prefix \
  46. --disable-examples \
  47. --with-pic
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(CP) $(PKG_INSTALL_DIR)/usr/include/confuse.h $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.{a,so*} $(1)/usr/lib/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libconfuse.pc $(1)/usr/lib/pkgconfig/
  54. endef
  55. define Package/confuse/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.so.* $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,confuse))