summaryrefslogtreecommitdiff
path: root/package/python-netifaces/python-netifaces.mk
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2012-01-04 12:30:05 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-01-07 21:00:33 +0100
commit221d609bcf6baed80ac07230e80da49d1522e069 (patch)
tree2e8e6ba39f9377e167e0595bb79ebffe3b2b4630 /package/python-netifaces/python-netifaces.mk
parente64b34e957522c355ed77f6356666862c99a1b96 (diff)
New package: python-netifaces
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/python-netifaces/python-netifaces.mk')
-rw-r--r--package/python-netifaces/python-netifaces.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/python-netifaces/python-netifaces.mk b/package/python-netifaces/python-netifaces.mk
new file mode 100644
index 000000000..e9a7099cd
--- /dev/null
+++ b/package/python-netifaces/python-netifaces.mk
@@ -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))