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.

79 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:=2.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://savannah.nongnu.org/download/confuse/
  13. PKG_MD5SUM:=45932fdeeccbb9ef4228f1c1a25e9c8f
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_LICENSE:=ISC
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/confuse
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=libConfuse is a configuration file parser library
  22. URL:=http://www.nongnu.org/confuse/
  23. endef
  24. define Package/confuse/description
  25. libConfuse is a configuration file parser library, licensed under the
  26. terms of the ISC license, and written in C. It supports sections and
  27. (lists of) values (strings, integers, floats, booleans or other
  28. sections), as well as some other features (such as single/double-quoted
  29. strings, environment variable expansion, functions and nested include
  30. statements). It makes it very easy to add configuration file capability
  31. to a program using a simple API.
  32. The goal of libConfuse is not to be the configuration file parser
  33. library with a gazillion of features. Instead, it aims to be easy to use
  34. and quick to integrate with your code. libConfuse was called libcfg
  35. before, but was changed to not confuse with other similar libraries.
  36. endef
  37. TARGET_CFLAGS += $(FPIC)
  38. CONFIGURE_ARGS += \
  39. --enable-shared \
  40. --enable-static \
  41. --disable-rpath \
  42. --without-libiconv-prefix \
  43. --without-libintl-prefix \
  44. MAKE_FLAGS += \
  45. -C $(PKG_BUILD_DIR)/src \
  46. DESTDIR="$(PKG_INSTALL_DIR)" \
  47. all install \
  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_BUILD_DIR)/*.pc $(1)/usr/lib/pkgconfig/
  54. endef
  55. define Build/UninstallDev
  56. rm -rf \
  57. $(STAGING_DIR)/usr/include/confuse.h \
  58. $(STAGING_DIR)/usr/lib/libconfuse.{a,so*}
  59. endef
  60. define Package/confuse/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.so.* $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,confuse))