source: scripts/untested/blfs-scripts/blfs-swig.sh @ f118837

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

r601@server (orig r599): ryan | 2005-08-05 23:20:54 -0700
Add java support...
At some point have to remove the debugging stuff



  • 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.