source: scripts/untested/blfs-scripts/blfs-tex.sh@ 66f17d5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 66f17d5 was 8c8c5ab, checked in by Jim Gifford <clfs@…>, 19 years ago

r596@server (orig r594): ryan | 2005-08-05 23:10:34 -0700
Update for new version, add support for optional deps if they are detected


  • Property mode set to 100755
File size: 1.7 KB
Line 
1#!/bin/bash
2
3### tetex ###
4
5cd ${SRC}
6LOG=tetex-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball tetex-src-${TETEX_VER}
17#save pkgdir
18OLD_PKGDIR=${PKGDIR}
19mkdir -p /usr/share/texmf
20cd /usr/share/texmf
21(
22 umask 0
23 umask
24 unpack_tarball tetex-texmf-${TETEX_VER}
25 unpack_tarball tetex-texmfsrc-${TETEX_VER}
26)
27
28umask
29PKGDIR=${OLD_PKGDIR}
30
31cd ${SRC}/${PKGDIR}
32
33case ${TETEX_VER} in
34 2.0.2 )
35 apply_patch tetex-src-2.0.2-flex-1
36 apply_patch tetex-src-2.0.2-remove_readlink-1
37 ;;
38esac
39
40# Additional config if t1lib, gd were built previously
41if [ -f /usr/${libdirname}/libt1.a ]; then
42 extra_conf="${extra_conf} --with-system-t1lib"
43fi
44
45if [ -f /usr/${libdirname}/libgd.a ]; then
46 extra_conf="${extra_conf} --with-system-gd"
47fi
48
49# Added LDFLAGS to appease libtool w gdlib
50max_log_init tetex ${TETEX_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
51CC="${CC-gcc} ${ARCH_CFLAGS}" \
52CXX="${CXX-g++} ${ARCH_CFLAGS}" \
53CFLAGS="${TGT_CFLAGS}" \
54CXXFLAGS="${TGT_CFLAGS}" \
55LDFLAGS="-L/usr/${libdirname}" \
56./configure --prefix=/usr \
57 --with-system-ncurses --with-system-zlib \
58 --with-system-pnglib --without-texinfo \
59 --exec-prefix=/usr --bindir=/usr/bin ${extra_conf} \
60 >> ${LOGFILE} 2>&1 &&
61echo " o Configure OK" &&
62
63# TODO: check whether we should use make world or make all.
64# 2.0.2 instructions were make world
65min_log_init ${BUILDLOGS} &&
66make all \
67 >> ${LOGFILE} 2>&1 &&
68echo " o Build OK" || barf
69
70min_log_init ${INSTLOGS} &&
71make install \
72 >> ${LOGFILE} 2>&1 &&
73echo " o Install OK" || barf
74
75texconfig dvips paper a4
76texconfig font rw
Note: See TracBrowser for help on using the repository browser.