blob: 81d37b49cfbeb922464cea5e761986c85bf6d4cf [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Python GObject bindings"
2SECTION = "devel/python"
3LICENSE = "LGPLv2.1"
4
5RECIPE_NO_UPDATE_REASON = "Newer versions of python-pygobject depend on gobject-introspection which doesn't cross-compile"
6
7LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
8DEPENDS = "python python-pygobject-native libffi glib-2.0"
9DEPENDS_class-native = "python-native libffi-native glib-2.0-native"
10RDEPENDS_class-native = ""
11
12MAJ_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
13
14SRC_URI = "${GNOME_MIRROR}/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
15 file://obsolete_automake_macros.patch \
16"
17
18# libtool-native doesn't have fixinstall.patch applied which means
19# that libs get relinked at installation time. This triggers a
20# relinking along the lines of:
21# gcc -L/tmp/foo/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/lib -lpyglib-2.0-python -o .libs/_glib.so
22# where /tmp/foo is DESTDIR and pyglib-2.0-python may be installed/reinstalled
23# at the same time as the gcc command runs.
24# If this happens between the handoff between gcc and ld, you can see:
25# /bin/ld: cannot find -lpyglib-2.0-python
26# Adding a dependency rule like install-pyglibLTLIBRARIES: install-libLTLIBRARIES
27# would be ideal but automake can't cope with that without manually
28# defining the whole function. Give up and disable parallel make in native builds.
29PARALLEL_MAKEINST_class-native = ""
30
31SRC_URI[md5sum] = "aa64900b274c4661a5c32e52922977f9"
32SRC_URI[sha256sum] = "7da88c169a56efccc516cebd9237da3fe518a343095a664607b368fe21df95b6"
33S = "${WORKDIR}/pygobject-${PV}"
34
35EXTRA_OECONF += "--disable-introspection"
36
37inherit autotools distutils-base pkgconfig
38
39# necessary to let the call for python-config succeed
40export BUILD_SYS
41export HOST_SYS
42export STAGING_INCDIR
43export STAGING_LIBDIR
44
45PACKAGES += "${PN}-lib"
46
47RDEPENDS_${PN} += "python-textutils"
48
49FILES_${PN} = "${libdir}/python*"
50FILES_${PN}-lib = "${libdir}/lib*.so.*"
51FILES_${PN}-dev += "${bindir} ${datadir}"
52
53BBCLASSEXTEND = "native"