source: scripts_home/scripts/untested/blfs-scripts/blfs-python.sh@ 1c9c5c3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/bash
2#
3# python
4#
5# Dependencies: None
6#
7
8cd ${SRC}
9LOG=blfs-python.log
10
11SELF=`basename ${0}`
12set_buildenv
13set_libdirname
14setup_multiarch
15if [ ! "${libdirname}" = "lib" ]; then
16 extra_conf="--libdir=/usr/${libdirname}"
17fi
18
19unpack_tarball Python-${PYTHON_VER} &&
20cd ${PKGDIR}
21
22case ${PYTHON_VER}} in
23 2.4 ) apply_patch Python-2.4-db43-1 ;;
24esac
25# Still applies to 2.4.1
26apply_patch Python-2.4-gdbm-1
27
28#------------------------------------------
29# TODO: need to do some edits for lib64 ...
30#------------------------------------------
31if [ "lib64" = ${libdirname} ]; then
32 case ${PYTHON_VER}} in
33 2.4 ) apply_patch Python-2.4-lib64-1 ;;
34 2.4.* ) apply_patch Python-2.4.1-lib64-1 ;;
35 esac
36fi
37
38max_log_init python ${PYTHON_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
39CC="${CC-gcc} ${ARCH_CFLAGS}" \
40CXX="${CXX-g++} ${ARCH_CFLAGS}" \
41CFLAGS="${TGT_CFLAGS}" \
42CXXFLAGS="${TGT_CFLAGS}" \
43./configure --prefix=/usr --build="${TARGET}" \
44 --mandir=/usr/share/man --infodir=/usr/share/info \
45 --enable-shared ${extra_conf} \
46 --enable-ipv6 \
47 >> ${LOGFILE} 2>&1 &&
48echo " o Configure OK" &&
49
50min_log_init ${BUILDLOGS} &&
51make ${PMFLAGS} LDFLAGS="-s" \
52 >> ${LOGFILE} 2>&1 &&
53echo " o Build OK" &&
54
55min_log_init ${INSTLOGS} &&
56make install \
57 >> ${LOGFILE} 2>&1 &&
58echo " o ALL OK" || barf
59
60if [ "Y" = "${MULTIARCH}" ]; then
61 use_wrapper /usr/bin/{python,python2.4}
62 create_stub_hdrs /usr/include/python2.4/pyconfig.h
63fi
Note: See TracBrowser for help on using the repository browser.