From f2e30d23522cb3e6a5f38c9186ff629b7a096e6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= Date: Sat, 23 Oct 2010 20:16:12 +0000 Subject: [PATCH] python-sip: Check for python-dev prereq SVN-Revision: 23597 --- lang/python-sip/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lang/python-sip/Makefile b/lang/python-sip/Makefile index 6f50adfa0..3b9368e7e 100644 --- a/lang/python-sip/Makefile +++ b/lang/python-sip/Makefile @@ -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 \ -- 2.30.2