source: scripts/native-scripts/native-groff.sh@ be9c22a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since be9c22a 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.0 KB
Line 
1#!/bin/bash
2
3# cross-lfs native groff build
4# ----------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=groff-native.log
13
14set_libdirname
15setup_multiarch
16
17if [ ! "${libdirname}" = "lib" ]; then
18 extra_conf="--libdir=/usr/${libdirname}"
19fi
20
21unpack_tarball groff-${GROFF_VER}
22cd ${PKGDIR}
23
24max_log_init Groff ${GROFF_VER} "native (shared)" ${CONFLOGS} ${LOG}
25
26# Assuming page size will be set correctly according to locale
27CC="${CC-gcc} ${ARCH_CFLAGS}" \
28CXX="${CXX-g++} ${ARCH_CFLAGS}" \
29CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
30CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
31./configure \
32 --prefix=/usr ${extra_conf} \
33 --mandir=/usr/share/man \
34 --infodir=/usr/share/info \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Configure OK" &&
37
38min_log_init ${BUILDLOGS} &&
39make LDFLAGS="-s" \
40 >> ${LOGFILE} 2>&1 &&
41echo " o Build OK" &&
42
43make install \
44 >> ${LOGFILE} 2>&1 &&
45echo " o ALL OK" || barf
46
47ln -sf soelim /usr/bin/zsoelim
48ln -sf eqn /usr/bin/geqn
49ln -sf tbl /usr/bin/gtbl
50
Note: See TracBrowser for help on using the repository browser.