diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-23 10:55:38 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-23 10:55:38 +0000 |
commit | 9ca244720e005906aa4292159689d81ea2dd5751 (patch) | |
tree | 481bbeac69aef28c32ff882d7e585db1c86bca8a /packages | |
parent | 97fb19ffc8d0dd9e0fe1d7dce49843dbe50cd04d (diff) | |
parent | 9840a3458d188fc6c1e44ae7760d9007117dfbea (diff) |
merge of '5071c48a87d5b7fe1522ead80ed52698f40d90af'
and 'd92df12b19c3a9740bd99582f5b7044cc25f6316'
Diffstat (limited to 'packages')
-rw-r--r-- | packages/python/python-pygtk2/acinclude.m4 | 6 | ||||
-rw-r--r-- | packages/python/python-pygtk2_2.10.3.bb | 1 | ||||
-rw-r--r-- | packages/python/python-pygtk2_2.6.3.bb | 2 | ||||
-rw-r--r-- | packages/python/python-pygtk2_2.8.6.bb | 6 |
4 files changed, 13 insertions, 2 deletions
diff --git a/packages/python/python-pygtk2/acinclude.m4 b/packages/python/python-pygtk2/acinclude.m4 index eec3758afc..53518fb2eb 100644 --- a/packages/python/python-pygtk2/acinclude.m4 +++ b/packages/python/python-pygtk2/acinclude.m4 @@ -43,12 +43,18 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) dnl deduce PYTHON_INCLUDES +AC_ARG_WITH(python-includes, + [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval) +if test x$py_exec_prefix != x; then +PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}" +else py_prefix=`$PYTHON -c "import sys; print sys.prefix"` py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" if test "$py_prefix" != "$py_exec_prefix"; then PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" fi +fi AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS="$CPPFLAGS" diff --git a/packages/python/python-pygtk2_2.10.3.bb b/packages/python/python-pygtk2_2.10.3.bb index d040299a0e..f7366af401 100644 --- a/packages/python/python-pygtk2_2.10.3.bb +++ b/packages/python/python-pygtk2_2.10.3.bb @@ -13,6 +13,7 @@ SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.10/${SRCNAME}-${PV}.tar S = "${WORKDIR}/${SRCNAME}-${PV}" EXTRA_OECONF = "--disable-docs" +EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../" inherit autotools pkgconfig distutils-base diff --git a/packages/python/python-pygtk2_2.6.3.bb b/packages/python/python-pygtk2_2.6.3.bb index 61250631ef..ffd837f0da 100644 --- a/packages/python/python-pygtk2_2.6.3.bb +++ b/packages/python/python-pygtk2_2.6.3.bb @@ -13,6 +13,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}" inherit autotools pkgconfig distutils-base +EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../" + PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-doc ${PN}" FILES_${PN}-dbg += "${libdir}/python2.4/site-packages/gtk-2.0/gtk/.debug \ ${libdir}/python2.4/site-packages/gtk-2.0/.debug" diff --git a/packages/python/python-pygtk2_2.8.6.bb b/packages/python/python-pygtk2_2.8.6.bb index ab571bdfd9..b3d8c93584 100644 --- a/packages/python/python-pygtk2_2.8.6.bb +++ b/packages/python/python-pygtk2_2.8.6.bb @@ -1,11 +1,11 @@ DESCRIPTION = "Python GTK+ Bindings" SECTION = "devel/python" -# needs gtk+-2.8.x +PRIORITY = "optional" DEPENDS = "gtk+ libglade" RDEPENDS = "python-shell" SRCNAME = "pygtk" LICENSE = "LGPL" -PR = "ml0" +PR = "r1" SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.8/${SRCNAME}-${PV}.tar.bz2 \ file://acinclude.m4" @@ -13,6 +13,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}" inherit autotools pkgconfig distutils-base +EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../" + do_configure_prepend() { install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/ } |