2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-04 12:30:05 +01:00
|
|
|
#
|
|
|
|
# python-netifaces
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-04 12:30:05 +01:00
|
|
|
|
2012-01-31 11:45:52 +01:00
|
|
|
PYTHON_NETIFACES_VERSION = 0.7
|
2012-01-04 12:30:05 +01:00
|
|
|
PYTHON_NETIFACES_SOURCE = netifaces-$(PYTHON_NETIFACES_VERSION).tar.gz
|
|
|
|
PYTHON_NETIFACES_SITE = http://alastairs-place.net/projects/netifaces
|
|
|
|
|
|
|
|
PYTHON_NETIFACES_DEPENDENCIES = python host-python-setuptools host-python-distutilscross
|
|
|
|
|
|
|
|
define PYTHON_NETIFACES_BUILD_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
2012-01-09 08:42:07 +01:00
|
|
|
$(HOST_DIR)/usr/bin/python setup.py build -x)
|
2012-01-04 12:30:05 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PYTHON_NETIFACES_INSTALL_TARGET_CMDS
|
2013-05-06 05:13:32 +02:00
|
|
|
(cd $(@D); \
|
|
|
|
PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
|
|
|
|
$(HOST_DIR)/usr/bin/python setup.py install \
|
|
|
|
--single-version-externally-managed --root=/ --prefix=$(TARGET_DIR)/usr)
|
2012-01-04 12:30:05 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|