src/world/python/Makefile

32 lines
910 B
Makefile

# Makefile - hhl - /usr/src/world/python
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = python
include versions.mk
distfullname = Python-$(python_version)
include world.mk
export CFLAGS = --sysroot=$(DESTDIR)
export ac_cv_file__dev_ptmx = yes
export ac_cv_file__dev_ptc = no
config_opts += --host=$(tgt)
config_opts += --build=$$($(srcdir)/config.guess)
config_opts += --enable-ipv6
config_opts += --enable-shared
config_opts += --with-system-expat
config_opts += --with-system-ffi
config_opts += --with-ensurepip=yes
py-docdir = $(docdir)/python/$(python_version)/html
define post_install
ln -sf pip$(python_version) $(bindir)/pip3
install -d $(py-docdir)
$(MAKE) -C $(distdir) python-docs
tar --strip-components=1 --no-same-owner \
--no-same-permissions -C $(py-docdir) \
-xf $(distdir)/python-$(python_version)-docs-html.tar.bz2
endef
include targets.mk