source: scripts_home/scripts/untested/blfs-scripts/blfs-swig.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.0 KB
Line 
1#!/bin/bash
2
3### swig ###
4
5cd ${SRC}
6LOG=swig-blfs.log
7
8set -x
9set_libdirname
10set +x
11setup_multiarch
12
13unpack_tarball swig-${SWIG_VER}
14cd ${PKGDIR}
15
16echo ${libdirname}
17
18echo ${DEFAULTENV}
19
20sed -i "s@PYLIBDIR=\"lib\"@PYLIBDIR=\"${libdirname}\"@g" configure
21echo "JAVA_HOME ${JAVA_HOME} ${BUILDENV}"
22
23# TODO: ensure swig looks in lib64 for python libs...
24# NOTE: only diff between 32 and 64 builds is the swig binary itself
25# we may need to install both -32 and -64, but I'm not too sure
26
27max_log_init swig ${SWIG_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
28CC="${CC-gcc} ${ARCH_CFLAGS}" \
29CXX="${CXX-g++} ${ARCH_CFLAGS}" \
30CFLAGS="${TGT_CFLAGS}" \
31CXXFLAGS="${TGT_CFLAGS}" \
32./configure --prefix=/usr \
33 --with-tclconfig=/usr/${libdirname} \
34 --with-java=${JAVA_HOME}/bin \
35 --with-javaincl=${JAVA_HOME}/include \
36 >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" &&
38
39min_log_init ${BUILDLOGS} &&
40make ${PMFLAGS} \
41 >> ${LOGFILE} 2>&1 &&
42echo " o Build OK" &&
43
44min_log_init ${INSTLOGS} &&
45make install \
46 >> ${LOGFILE} 2>&1 &&
47echo " o ALL OK" || barf
48
Note: See TracBrowser for help on using the repository browser.