python-sip: Check for python-dev prereq
authorMichael Büsch <mb@bu3sch.de>
Sat, 23 Oct 2010 20:16:12 +0000 (20:16 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sat, 23 Oct 2010 20:16:12 +0000 (20:16 +0000)
SVN-Revision: 23597

lang/python-sip/Makefile

index 6f50adf..3b9368e 100644 (file)
@@ -127,7 +127,16 @@ define Host/Install
                install
 endef
 
-#TODO check for host python-dev headers.
+define Require/python2-dev
+  [ -e /usr/include/Python.h ] || \
+  [ -e /usr/include/python/Python.h ] || \
+  [ -e /usr/include/python2.5/Python.h ] || \
+  [ -e /usr/include/python2.6/Python.h ]
+endef
+
+$(eval $(call Require,python2-dev, \
+       Please install Python 2.x headers (python-dev) \
+))
 
 $(eval $(call RequireCommand,python, \
        Please install Python 2.x \