clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since def3913 was 236a72e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r600@server (orig r598): ryan | 2005-08-05 23:18:36 -0700
Add edit to fix generated mxmkmf when doing a multilib build
Add support for latest lesstif version
|
-
Property mode
set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### lesstif ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=lesstif-blfs.log
|
---|
7 |
|
---|
8 | SELF=`basename ${0}`
|
---|
9 | set_buildenv
|
---|
10 | set_libdirname
|
---|
11 | setup_multiarch
|
---|
12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
14 | fi
|
---|
15 |
|
---|
16 | unpack_tarball lesstif-${LESSTIF_VER}
|
---|
17 | cd ${PKGDIR}
|
---|
18 |
|
---|
19 | case ${LESSTIF_VER} in
|
---|
20 | 0.94.0 )
|
---|
21 | apply_patch lesstif-0.94.0-use_libdir
|
---|
22 | ;;
|
---|
23 | 0.94.4 )
|
---|
24 | apply_patch lesstif-0.94.4-use_libdir_and_fix_installdirs
|
---|
25 | apply_patch lesstif-0.94.4-testsuite_fix-1
|
---|
26 | ;;
|
---|
27 | esac
|
---|
28 |
|
---|
29 | # fix mxmkmf generation to point at correct location when multi-arch
|
---|
30 | sed -i -e "/^lcfgdir=/s@/lib/@/${libdirname}/@g" \
|
---|
31 | lib/config/mxmkmf.in
|
---|
32 |
|
---|
33 | max_log_init lesstif ${LESSTIF_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
34 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
35 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
36 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
37 | CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
38 | ./configure --prefix=/usr ${extra_conf} \
|
---|
39 | --enable-build-21 \
|
---|
40 | --disable-debug \
|
---|
41 | --enable-production \
|
---|
42 | --disable-build-tests \
|
---|
43 | --with-xdnd \
|
---|
44 | --mandir=/usr/share/man \
|
---|
45 | --infodir=/usr/share/info \
|
---|
46 | >> ${LOGFILE} 2>&1 &&
|
---|
47 | echo " o Configure OK" &&
|
---|
48 |
|
---|
49 | min_log_init ${BUILDLOGS} &&
|
---|
50 | make \
|
---|
51 | >> ${LOGFILE} 2>&1 &&
|
---|
52 | echo " o Build OK" &&
|
---|
53 |
|
---|
54 | min_log_init ${INSTLOGS} &&
|
---|
55 | make install \
|
---|
56 | >> ${LOGFILE} 2>&1 &&
|
---|
57 | echo " o ALL OK" || barf
|
---|
58 |
|
---|
59 | if [ "Y" = "${MULTIARCH}" ]; then
|
---|
60 | use_wrapper /usr/bin/mxmkmf
|
---|
61 | fi
|
---|
62 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.