summaryrefslogtreecommitdiffstats
path: root/libs/iniparser/Makefile
blob: 16d86ebf38a181c94e94f8dea91176410006da5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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))