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.

58 lines
1.5 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. PKG_BUILD_DEPENDS:=meson/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include ../../devel/meson/meson.mk
  20. define Package/libpsl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=C library to handle the Public Suffix List
  24. URL:=https://github.com/rockdaboot/libpsl
  25. DEPENDS:=+libidn2 +libunistring $(INTL_DEPENDS)
  26. ABI_VERSION:=5
  27. endef
  28. define Package/libpsl/description
  29. C library to handle the Public Suffix List
  30. endef
  31. MESON_ARGS += \
  32. -Druntime=libidn2 \
  33. -Dbuiltin=libidn2
  34. TARGET_LDFLAGS += -liconv
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/libpsl.h $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so* $(1)/usr/lib/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpsl.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/libpsl/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libpsl))