mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
New package: python-netifaces
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
e64b34e957
commit
221d609bcf
25
package/python-netifaces/python-netifaces.mk
Normal file
25
package/python-netifaces/python-netifaces.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
#############################################################
|
||||
#
|
||||
# python-netifaces
|
||||
#
|
||||
#############################################################
|
||||
|
||||
PYTHON_NETIFACES_VERSION = 0.6
|
||||
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" \
|
||||
$(HOST_DIR)/usr/bin/python setup.py build)
|
||||
endef
|
||||
|
||||
define PYTHON_NETIFACES_INSTALL_TARGET_CMDS
|
||||
(cd $(@D); PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
|
||||
$(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
|
||||
endef
|
||||
|
||||
$(eval $(call GENTARGETS))
|
||||
Reference in New Issue
Block a user