From: mb Date: Sat, 23 Oct 2010 20:16:12 +0000 (+0000) Subject: python-sip: Check for python-dev prereq X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=8b012c8faa4c96610f49d42d53712a307bad02dc;p=packages.git python-sip: Check for python-dev prereq git-svn-id: svn://svn.openwrt.org/openwrt/packages@23597 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 \