python-lxml.mk 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. ################################################################################
  2. #
  3. # python-lxml
  4. #
  5. ################################################################################
  6. PYTHON_LXML_VERSION = 3.4.4
  7. PYTHON_LXML_SITE = http://lxml.de/files
  8. PYTHON_LXML_SOURCE = lxml-$(PYTHON_LXML_VERSION).tgz
  9. # Not including the GPL, because it is used only for the test scripts.
  10. PYTHON_LXML_LICENSE = BSD-3c, Others
  11. PYTHON_LXML_LICENSE_FILES = \
  12. LICENSES.txt \
  13. doc/licenses/BSD.txt \
  14. doc/licenses/elementtree.txt \
  15. src/lxml/isoschematron/resources/rng/iso-schematron.rng
  16. # python-lxml can use either setuptools, or distutils as a fallback.
  17. # So, we use setuptools.
  18. PYTHON_LXML_SETUP_TYPE = setuptools
  19. PYTHON_LXML_DEPENDENCIES = libxml2 libxslt zlib
  20. # python-lxml needs these scripts in order to properly detect libxml2 and
  21. # libxslt compiler and linker flags
  22. PYTHON_LXML_BUILD_OPTS = \
  23. --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config \
  24. --with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config
  25. $(eval $(python-package))