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

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 fdfb73b, checked in by Jim Gifford <clfs@…>, 19 years ago

r591@server (orig r589): ryan | 2005-08-05 23:00:46 -0700
Add patch to update gnu config files to support newer architectures



  • Property mode set to 100755
File size: 1.2 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
20case ${A2PS_VER} in
21 4.13* )
22 apply_patch a2ps-4.13b-update_gnu_config-1
23 ;;
24esac
25
26# TODO: NEEDS WORK
27# update libtool so we understand newer architectures
28#libtoolize --copy --force
29
30sed -i -e "s|emacs||" contrib/Makefile.in &&
31sed -i -e "s|/usr/local/share|/usr/share|" configure &&
32sed -i -e "s|char \*malloc ();|/* char *malloc (); */|" \
33 lib/path-concat.c
34
35max_log_init a2ps ${A2PS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
36CC="${CC-gcc} ${ARCH_CFLAGS}" \
37CXX="${CXX-g++} ${ARCH_CFLAGS}" \
38CFLAGS="${TGT_CFLAGS}" \
39CXXFLAGS="${TGT_CFLAGS}" \
40./configure --prefix=/usr ${extra_conf} \
41 --sysconfdir=/etc/a2ps --localstatedir=/var \
42 --enable-shared --mandir=/usr/share/man \
43 >> ${LOGFILE} 2>&1 &&
44echo " o Configure OK" &&
45
46min_log_init ${BUILDLOGS} &&
47make \
48 >> ${LOGFILE} 2>&1 &&
49echo " o Build OK" &&
50
51min_log_init ${INSTLOGS} &&
52make install \
53 >> ${LOGFILE} 2>&1 &&
54echo " o ALL OK" || barf
55
Note: See TracBrowser for help on using the repository browser.