source: scripts/untested/blfs-scripts/blfs-a2ps.sh @ d5e4fdc0

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since d5e4fdc0 was 617118d, checked in by Jim Gifford <clfs@…>, 18 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.1 KB
Line 
1#!/bin/bash
2
3### a2ps ###
4
5cd ${SRC}
6LOG=a2ps-blfs.log
7libdir=lib
8
9SELF=`basename ${0}`
10set_buildenv
11set_libdirname
12setup_multiarch
13if [ ! "${libdirname}" = "lib" ]; then
14   extra_conf="--libdir=/usr/${libdirname}"
15fi
16
17unpack_tarball a2ps-${A2PS_VER}
18cd ${PKGDIR}
19
20# TODO: NEEDS WORK
21#       update libtool so we understand newer architectures
22#libtoolize --copy --force
23
24sed -i -e "s|emacs||" contrib/Makefile.in &&
25sed -i -e "s|/usr/local/share|/usr/share|" configure &&
26sed -i -e "s|char \*malloc ();|/* char *malloc (); */|" \
27    lib/path-concat.c
28
29max_log_init a2ps ${A2PS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
30CC="${CC-gcc} ${ARCH_CFLAGS}" \
31CXX="${CXX-g++} ${ARCH_CFLAGS}" \
32CFLAGS="${TGT_CFLAGS}" \
33CXXFLAGS="${TGT_CFLAGS}" \
34./configure --prefix=/usr ${extra_conf} \
35   --sysconfdir=/etc/a2ps --localstatedir=/var \
36   --enable-shared --mandir=/usr/share/man \
37   >> ${LOGFILE} 2>&1 &&
38echo " o Configure OK" &&
39
40min_log_init ${BUILDLOGS} &&
41make \
42   >> ${LOGFILE} 2>&1 &&
43echo " o Build OK" &&
44
45min_log_init ${INSTLOGS} &&
46make install \
47   >> ${LOGFILE} 2>&1 &&
48echo " o ALL OK" || barf
49
Note: See TracBrowser for help on using the repository browser.