Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / libs / libpsl / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libpsl
9 PKG_VERSION:=0.21.1
10 PKG_RELEASE:=2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_VERSION)
14 PKG_HASH:=ac6ce1e1fbd4d0254c4ddb9d37f1fa99dec83619c1253328155206b896210d4c
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE
19
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=meson/host
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25 include ../../devel/meson/meson.mk
26
27 define Package/libpsl
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=C library to handle the Public Suffix List
31 URL:=https://github.com/rockdaboot/libpsl
32 DEPENDS:=+libidn2 +libunistring $(INTL_DEPENDS)
33 ABI_VERSION:=5
34 endef
35
36 define Package/libpsl/description
37 C library to handle the Public Suffix List
38 endef
39
40 MESON_ARGS += \
41 -Druntime=libidn2 \
42 -Dbuiltin=libidn2
43
44 TARGET_LDFLAGS += -liconv
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/libpsl.h $(1)/usr/include/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so* $(1)/usr/lib/
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpsl.pc $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Package/libpsl/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libpsl))