clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since c2b8e07 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...
|
-
Property mode
set to
100755
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native autoconf build
|
---|
4 | # -------------------------------
|
---|
5 | # $LastChangedBy: roliver $
|
---|
6 | # $LastChangedDate: 2005-05-21 15:22:56 +1000 (Sat, 21 May 2005) $
|
---|
7 | # $LastChangedRevision: 528 $
|
---|
8 | # $HeadURL: svn+ssh://roliver@be-linux.org/svn/cross-lfs/cross-lfs/trunk/scripts/native-scripts/native-autoconf.sh $
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=autoconf-native.log
|
---|
13 |
|
---|
14 | echo ${AUTOCONF_VER}
|
---|
15 | set_libdirname
|
---|
16 | setup_multiarch
|
---|
17 |
|
---|
18 | unpack_tarball autoconf-${AUTOCONF_VER} &&
|
---|
19 | cd ${PKGDIR}
|
---|
20 |
|
---|
21 | # From gentoo
|
---|
22 | case ${AUTOCONF_VER} in
|
---|
23 | 2.1* )
|
---|
24 | sed -i -e "s@\* Autoconf:@\* Autoconf v${AUTOCONF_VER:0:3}:@" \
|
---|
25 | -e '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' \
|
---|
26 | autoconf.texi
|
---|
27 | ;;
|
---|
28 | 2.59 )
|
---|
29 | apply_patch autoconf-2.59-more-quotes
|
---|
30 | ;;
|
---|
31 | esac
|
---|
32 |
|
---|
33 | max_log_init Autoconf ${AUTOCONF_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
34 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
35 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
36 | ./configure --prefix=/usr \
|
---|
37 | --program-suffix="-${AUTOCONF_VER}" \
|
---|
38 | >> ${LOGFILE} 2>&1 &&
|
---|
39 | echo " o Configure OK" || barf
|
---|
40 |
|
---|
41 | case ${AUTOCONF_VER} in
|
---|
42 | 2.5* )
|
---|
43 | sed -i "/^program_transform_name/s@-${AUTOCONF_VER}@@" man/Makefile
|
---|
44 | ;;
|
---|
45 | esac
|
---|
46 |
|
---|
47 | min_log_init ${BUILDLOGS} &&
|
---|
48 | make LDFLAGS="-s" \
|
---|
49 | >> ${LOGFILE} 2>&1 &&
|
---|
50 | echo " o Build OK" || barf
|
---|
51 |
|
---|
52 | #min_log_init ${TESTLOGS} &&
|
---|
53 | #make check \
|
---|
54 | # >> ${LOGFILE} 2>&1 &&
|
---|
55 | #echo " o Test OK" || errmsg
|
---|
56 |
|
---|
57 | min_log_init ${INSTLOGS} &&
|
---|
58 | make install \
|
---|
59 | >> ${LOGFILE} 2>&1 &&
|
---|
60 | echo " o ALL OK" || barf
|
---|
61 |
|
---|
62 | mv /usr/share/info/autoconf.info \
|
---|
63 | /usr/share/info/autoconf-${AUTOCONF_VER}.info
|
---|
Note:
See
TracBrowser
for help on using the repository browser.