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