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.

66 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libpsl
  9. PKG_VERSION:=0.20.2
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  16. PKG_HASH:=f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.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
  26. endef
  27. define Package/libpsl/description
  28. C library to handle the Public Suffix List
  29. endef
  30. CONFIGURE_ARGS += \
  31. --disable-gtk-doc-html \
  32. --disable-man \
  33. --disable-rpath
  34. define Build/InstallDev
  35. $(INSTALL_DIR) \
  36. $(1)/usr/lib \
  37. $(1)/usr/include
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/* \
  40. $(1)/usr/include/
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/* \
  43. $(1)/usr/lib/
  44. endef
  45. define Package/libpsl/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  49. $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libpsl))