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.5 KiB

  1. #
  2. # Copyright (C) 2017 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:=python-lxml
  9. PKG_VERSION:=4.4.2
  10. PKG_RELEASE:=3
  11. PYPI_NAME:=lxml
  12. PKG_HASH:=eff69ddbf3ad86375c344339371168640951c302450c5d3e9936e98d6459db06
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSES.txt
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_CPE_ID:=cpe:/a:lxml:lxml
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/python3-lxml
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=Pythonic XML processing library
  25. URL:=https://lxml.de
  26. DEPENDS:=+libxml2 +libxslt +libexslt +python3-light
  27. endef
  28. define Package/python3-lxml/description
  29. lxml is a Pythonic, mature binding for the libxml2 and libxslt
  30. libraries. It provides safe and convenient access to these libraries
  31. using the ElementTree API.
  32. It extends the ElementTree API significantly to offer support for
  33. XPath, RelaxNG, XML Schema, XSLT, C14N and much more.
  34. endef
  35. TARGET_LDFLAGS += -lxml2 -lxslt -lexslt
  36. PYTHON3_PKG_SETUP_ARGS += \
  37. --static
  38. PYTHON3_PKG_SETUP_VARS += \
  39. INCLUDE="$(STAGING_DIR)/usr/include/ $(STAGING_DIR)/usr/include/libxml2" \
  40. LIBRARY="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib" \
  41. CFLAGS="$(TARGET_CFLAGS)" \
  42. LDFLAGS="$(TARGET_LDFLAGS)"
  43. $(eval $(call Py3Package,python3-lxml))
  44. $(eval $(call BuildPackage,python3-lxml))
  45. $(eval $(call BuildPackage,python3-lxml-src))