From 8b012c8faa4c96610f49d42d53712a307bad02dc Mon Sep 17 00:00:00 2001 From: mb Date: Sat, 23 Oct 2010 20:16:12 +0000 Subject: [PATCH] python-sip: Check for python-dev prereq git-svn-id: svn://svn.openwrt.org/openwrt/packages@23597 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 \