source: scripts/untested/blfs-scripts/blfs-python-32.sh @ 23b6afb

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 23b6afb was 23b6afb, checked in by Jim Gifford <clfs@…>, 18 years ago

r564@server (orig r562): jim | 2005-06-07 20:12:28 -0700
Mirrored from jg555.com on Tue Jun 7 20:12:17 PDT 2005
----------------------------------------------------------------------


  • Property mode set to 100644
File size: 2.8 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
64#!/bin/bash
65#
66# python
67#
68# Dependencies: None
69#
70
71cd ${SRC}
72LOG=blfs-python.log
73
74SELF=`basename ${0}`
75set_buildenv
76set_libdirname
77setup_multiarch
78if [ ! "${libdirname}" = "lib" ]; then
79   extra_conf="--libdir=/usr/${libdirname}"
80fi
81
82unpack_tarball Python-${PYTHON_VER} &&
83cd ${PKGDIR}
84
85case ${PYTHON_VER}} in
86   2.4 ) apply_patch Python-2.4-db43-1 ;;
87esac
88# Still applies to 2.4.1
89apply_patch Python-2.4-gdbm-1
90
91#------------------------------------------
92# TODO: need to do some edits for lib64 ...
93#------------------------------------------
94if [ "lib64" = ${libdirname} ]; then
95   case ${PYTHON_VER}} in
96      2.4 )   apply_patch Python-2.4-lib64-1 ;;
97      2.4.* ) apply_patch Python-2.4.1-lib64-1 ;;
98   esac
99fi
100
101max_log_init python ${PYTHON_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
102CC="${CC-gcc} ${ARCH_CFLAGS}" \
103CXX="${CXX-g++} ${ARCH_CFLAGS}" \
104CFLAGS="${TGT_CFLAGS}" \
105CXXFLAGS="${TGT_CFLAGS}" \
106./configure --prefix=/usr --build="${TARGET}" \
107   --mandir=/usr/share/man --infodir=/usr/share/info \
108   --enable-shared ${extra_conf} \
109   --enable-ipv6 \
110   >> ${LOGFILE} 2>&1 &&
111echo " o Configure OK" &&
112
113min_log_init ${BUILDLOGS} &&
114make ${PMFLAGS} LDFLAGS="-s" \
115   >> ${LOGFILE} 2>&1 &&
116echo " o Build OK" &&
117
118min_log_init ${INSTLOGS} &&
119make install \
120   >> ${LOGFILE} 2>&1 &&
121echo " o ALL OK" || barf
122
123if [ "Y" = "${MULTIARCH}" ]; then
124   use_wrapper /usr/bin/{python,python2.4}
125   create_stub_hdrs /usr/include/python2.4/pyconfig.h
126fi
Note: See TracBrowser for help on using the repository browser.