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.

57 lines
1.4 KiB

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