clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since c2b8e07 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # Freetype2
|
---|
| 4 | #
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=freetype2-blfs.log
|
---|
| 7 | SELF=`basename ${0}`
|
---|
| 8 | set_buildenv
|
---|
| 9 | set_libdirname
|
---|
| 10 | setup_multiarch
|
---|
| 11 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 12 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 13 | fi
|
---|
| 14 |
|
---|
| 15 | unpack_tarball freetype-${FREETYPE2_VER} &&
|
---|
| 16 |
|
---|
| 17 | cd ${PKGDIR}
|
---|
| 18 |
|
---|
| 19 | case ${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 | ;;
|
---|
| 29 | esac
|
---|
| 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 |
|
---|
| 37 | max_log_init Freetype2 ${FREETYPE2_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
| 38 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 39 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 40 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 41 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 42 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 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 |
|
---|
| 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 |
|
---|
| 61 | if [ "Y" = "${MULTIARCH}" ]; then
|
---|
| 62 | use_wrapper /usr/bin/freetype-config
|
---|
| 63 | create_stub_hdrs /usr/include/freetype2/freetype/config/ftconfig.h
|
---|
| 64 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.