source: scripts/blfs-scripts/blfs-freetype2.sh@ 7ed0e05

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7ed0e05 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.7 KB
RevLine 
[617118d]1#!/bin/sh
2#
3# Freetype2
4#
5cd ${SRC}
6LOG=freetype2-blfs.log
7SELF=`basename ${0}`
8set_buildenv
9set_libdirname
10setup_multiarch
11if [ ! "${libdirname}" = "lib" ]; then
12 extra_conf="--libdir=/usr/${libdirname}"
13fi
14
15unpack_tarball freetype-${FREETYPE2_VER} &&
16
17cd ${PKGDIR}
18
19case ${FREETYPE2_VER} in
20 2.1.9 )
21 apply_patch freetype-2.1.9-bytecode_interpreter-1
22 ;;
23 * )
24 echo "WARNING: freetype-2.1.9-bytecode_interpreter-1 patch not applied"
25 echo " Please check if freetype-${FREETYPE2VER} requires this or not,"
26 echo " if so please update this script and send patches to"
27 echo " either ryan@pha.com.au or ryan@linuxfromscratch.org"
28 ;;
29esac
30
31# TODO: May need to supply -fno-strict-aliasing for some architectures
32# Investigate
33
34# TODO: should hack freetype-config during bi-arch so we dont hardcoe rpaths
35# in unnecessarily
36
37max_log_init Freetype2 ${FREETYPE2_VER} "native (shared)" ${CONFLOGS} ${LOG}
38CC="${CC-gcc} ${ARCH_CFLAGS}" \
39CXX="${CXX-g++} ${ARCH_CFLAGS}" \
40CFLAGS="${TGT_CFLAGS}" \
41CXXFLAGS="${TGT_CFLAGS}" \
42./configure --prefix=/usr ${extra_conf} \
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
56# Here is a hack, if we are biarch, move freetype-config
57# to freetype-config-32 or 64 and provide a symlink.
58# This symlink will have to be adjusted for packages that use
59# freetype-config so they get the right settings.
60
61if [ "Y" = "${MULTIARCH}" ]; then
62 use_wrapper /usr/bin/freetype-config
63 create_stub_hdrs /usr/include/freetype2/freetype/config/ftconfig.h
64fi
Note: See TracBrowser for help on using the repository browser.