clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 8a3554d was f118837, checked in by Jim Gifford <clfs@…>, 19 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 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=swig-blfs.log
|
---|
7 |
|
---|
8 | set -x
|
---|
9 | set_libdirname
|
---|
10 | set +x
|
---|
11 | setup_multiarch
|
---|
12 |
|
---|
13 | unpack_tarball swig-${SWIG_VER}
|
---|
14 | cd ${PKGDIR}
|
---|
15 |
|
---|
16 | echo ${libdirname}
|
---|
17 |
|
---|
18 | echo ${DEFAULTENV}
|
---|
19 |
|
---|
20 | sed -i "s@PYLIBDIR=\"lib\"@PYLIBDIR=\"${libdirname}\"@g" configure
|
---|
21 | echo "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 |
|
---|
27 | max_log_init swig ${SWIG_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
28 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
29 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
30 | CFLAGS="${TGT_CFLAGS}" \
|
---|
31 | CXXFLAGS="${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 &&
|
---|
37 | echo " o Configure OK" &&
|
---|
38 |
|
---|
39 | min_log_init ${BUILDLOGS} &&
|
---|
40 | make ${PMFLAGS} \
|
---|
41 | >> ${LOGFILE} 2>&1 &&
|
---|
42 | echo " o Build OK" &&
|
---|
43 |
|
---|
44 | min_log_init ${INSTLOGS} &&
|
---|
45 | make install \
|
---|
46 | >> ${LOGFILE} 2>&1 &&
|
---|
47 | echo " o ALL OK" || barf
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.