0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-23 13:41:37 +00:00
Files
packages/libs/iniparser/Makefile
Antonio Pastor 456d8ff5d5 iniparser: library for parsing of ini files in C
Package is present in multiple linux distributions.
Upstream is actively maintained.

Signed-off-by: Antonio Pastor <antonio.pastor@gmail.com>
2025-05-01 10:57:32 +03:00

47 lines
1.3 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=iniparser
PKG_VERSION:=4.2.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.com/$(PKG_NAME)/$(PKG_NAME)/-/archive/v$(PKG_VERSION)
PKG_HASH:=67575ed032a544d5359610e5f697af786371bbc3eb01311218ef8adfd3e5e329
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
PKG_MAINTAINER:=Antonio Pastor <antonio.pastor@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:iniparser:iniparser
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/iniparser
SECTION:=libs
CATEGORY:=Libraries
TITLE:=a library to handle ini files
URL:=https://gitlab.com/iniparser/iniparser
endef
define Package/iniparser/description
Small and fully re-entrant module for parsing of ini files in C
endef
define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/iniparser.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/iniparser.pc
endef
define Package/iniparser/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiniparser.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,iniparser))