vanhofen
3 years ago
3 changed files with 38 additions and 18 deletions
@ -0,0 +1,37 @@ |
|||||
|
################################################################################
|
||||
|
#
|
||||
|
# Python packages
|
||||
|
#
|
||||
|
################################################################################
|
||||
|
|
||||
|
HOST_PYTHON3_BUILD = \
|
||||
|
CC="$(HOSTCC)" \
|
||||
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
|
LDSHARED="$(HOSTCC) -shared" \
|
||||
|
PYTHONPATH=$(HOST_DIR)/$(HOST_PYTHON3_BASE_DIR)/site-packages \
|
||||
|
$(HOST_PYTHON3_BINARY) ./setup.py -q build --executable=/usr/python |
||||
|
|
||||
|
HOST_PYTHON3_INSTALL = \
|
||||
|
CC="$(HOSTCC)" \
|
||||
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
|
LDSHARED="$(HOSTCC) -shared" \
|
||||
|
PYTHONPATH=$(HOST_DIR)/$(HOST_PYTHON3_BASE_DIR)/site-packages \
|
||||
|
$(HOST_PYTHON3_BINARY) ./setup.py -q install --root=$(HOST_DIR) --prefix= |
||||
|
|
||||
|
#define python3-package
|
||||
|
# $(call PREPARE)
|
||||
|
# $(CHDIR)/$($(PKG)_DIR); \
|
||||
|
# $(PYTHON3_BUILD); \
|
||||
|
# $(PYTHON3_INSTALL)
|
||||
|
# $(call TARGET_FOLLOWUP)
|
||||
|
#endef
|
||||
|
|
||||
|
define host-python3-package |
||||
|
$(call PREPARE) |
||||
|
$(CHDIR)/$($(PKG)_DIR); \
|
||||
|
$(HOST_PYTHON3_BUILD); \
|
||||
|
$(HOST_PYTHON3_INSTALL) |
||||
|
$(call HOST_FOLLOWUP) |
||||
|
endef |
Loading…
Reference in new issue