summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/python/python_2.4.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/python/python_2.4.4.bb')
-rw-r--r--meta-extras/packages/python/python_2.4.4.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta-extras/packages/python/python_2.4.4.bb b/meta-extras/packages/python/python_2.4.4.bb
new file mode 100644
index 0000000000..962646833b
--- /dev/null
+++ b/meta-extras/packages/python/python_2.4.4.bb
@@ -0,0 +1,70 @@
1DESCRIPTION = "Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSF"
4SECTION = "devel/python"
5PRIORITY = "optional"
6DEPENDS = "python-native readline zlib gdbm openssl"
7DEPENDS_sharprom = "python-native readline zlib gdbm openssl"
8PR = "ml0"
9
10PYTHON_MAJMIN = "2.4"
11
12SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
13 file://bindir-libdir.patch;patch=1 \
14 file://crosscompile.patch;patch=1 \
15 file://fix-tkinter-detection.patch;patch=1 \
16 file://sitebranding.patch;patch=1"
17S = "${WORKDIR}/Python-${PV}"
18
19inherit autotools
20
21EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
22 --without-cxx --with-signal-module --with-wctype-functions \
23 --enable-shared"
24
25#
26# copy config.h and an appropriate Makefile for distutils.sysconfig
27# which laters uses the information out of these to compile extensions
28#
29do_compile_prepend() {
30 install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
31 install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
32 install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
33 install -m 0644 Makefile Makefile.orig
34 install -m 0644 Makefile Makefile.backup
35 sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile
36 install -m 0644 Makefile Makefile.backup
37 sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile
38 install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
39}
40
41do_compile() {
42 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
43 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
44 STAGING_LIBDIR=${STAGING_LIBDIR} \
45 STAGING_INCDIR=${STAGING_INCDIR} \
46 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
47 OPT="${CFLAGS}"
48}
49
50do_stage() {
51 install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
52 oe_libinstall -a -so libpython2.4 ${STAGING_LIBDIR}
53}
54
55do_install() {
56 install -m 0644 Makefile.orig Makefile
57 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
58 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
59 STAGING_LIBDIR=${STAGING_LIBDIR} \
60 STAGING_INCDIR=${STAGING_INCDIR} \
61 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
62 DESTDIR=${D} install
63}
64
65require python-${PV}-manifest.inc
66
67RPROVIDES_python-core = "python"
68RPROVIDES_python-curses = "python"
69PACKAGES =+ "libpython2"
70FILES_libpython2 = "${libdir}/libpython*"