clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since b67b7ca was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago |
r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure
|
-
Property mode
set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native flex build
|
---|
4 | # ----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=flex-native.log
|
---|
13 |
|
---|
14 | SELF=`basename ${0}`
|
---|
15 | set_buildenv
|
---|
16 | set_libdirname
|
---|
17 | setup_multiarch
|
---|
18 |
|
---|
19 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
20 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
21 | fi
|
---|
22 |
|
---|
23 | unpack_tarball flex-${FLEX_VER} &&
|
---|
24 | cd ${PKGDIR}
|
---|
25 |
|
---|
26 | case ${FLEX_VER} in
|
---|
27 | 2.5.31 )
|
---|
28 | # Fix brokenness in flex-2.5.31
|
---|
29 | apply_patch flex-2.5.31-debian_fixes-2
|
---|
30 | # do not regen doc (triggered by above patch)
|
---|
31 | touch ./doc/flex.1
|
---|
32 | ;;
|
---|
33 | esac
|
---|
34 |
|
---|
35 | max_log_init Flex ${FLEX_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
36 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
37 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
38 | ./configure --prefix=/usr \
|
---|
39 | --mandir=/usr/share/man --infodir=/usr/share/info ${extra_conf} \
|
---|
40 | >> ${LOGFILE} 2>&1 &&
|
---|
41 | echo " o Configure OK" || barf
|
---|
42 |
|
---|
43 | min_log_init ${BUILDLOGS} &&
|
---|
44 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
45 | >> ${LOGFILE} 2>&1 &&
|
---|
46 | echo " o Build OK" || barf
|
---|
47 |
|
---|
48 | min_log_init ${TESTLOGS} &&
|
---|
49 | make check \
|
---|
50 | >> ${LOGFILE} 2>&1 &&
|
---|
51 | echo " o Test OK" || barf
|
---|
52 |
|
---|
53 | min_log_init ${INSTLOGS} &&
|
---|
54 | make install \
|
---|
55 | >> ${LOGFILE} 2>&1 &&
|
---|
56 | echo " o ALL OK" || barf
|
---|
57 |
|
---|
58 | # Create lex wrapper
|
---|
59 | cat > /usr/bin/lex << "EOF"
|
---|
60 | #!/bin/sh
|
---|
61 | # Begin /usr/bin/lex
|
---|
62 |
|
---|
63 | exec /usr/bin/flex -l "$@"
|
---|
64 |
|
---|
65 | # End /usr/bin/lex
|
---|
66 | EOF
|
---|
67 |
|
---|
68 | chmod 755 /usr/bin/lex
|
---|
69 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.