source: scripts_home/scripts/untested/blfs-scripts/blfs-directfb.sh@ 1c9c5c3

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

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 1.6 KB
Line 
1#!/bin/bash
2
3### DirectFB ###
4
5cd ${SRC}
6LOG=DirectFB-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 DirectFB-${DIRECTFB_VER}
17cd ${PKGDIR}
18
19case ${TGT_ARCH} in
20 i686 ) extra_conf="${extra_conf} --enable-mmx --enable-sse" ;;
21 x86_64 )
22 ## Need patch for SIMD on amd64, patch stolen from gentoo
23 #if [ "${BUILDENV}" = "64" ]; then
24 # case ${DIRECTFB_VER} in
25 # 0.9.2[12] ) apply_patch DirectFB-0.9.21-simd-amd64 ;;
26 # esac
27 #fi
28 #extra_conf="${extra_conf} --enable-mmx --enable-sse"
29
30 ;;
31esac
32
33# fix integer type redefinition errors
34#--------------------------------------
35# This is primarily here to fix amd64 64bit compilation, but if the
36# linux-libc-headers are sane, this should not pose a problem for other
37# architectures.
38apply_patch DirectFB-0.9.22-dfb_types_amd64_hack
39
40max_log_init DirectFB ${DIRECTFB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
41CC="${CC-gcc} ${ARCH_CFLAGS}" \
42CXX="${CXX-g++} ${ARCH_CFLAGS}" \
43CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
44CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
45LDFLAGS="-L/usr/${libdirname}" \
46./configure --prefix=/usr ${extra_conf} \
47 --enable-sysfs --enable-video4linux2 --enable-unique \
48 >> ${LOGFILE} 2>&1 &&
49echo " o Configure OK" &&
50
51min_log_init ${BUILDLOGS} &&
52make \
53 >> ${LOGFILE} 2>&1 &&
54echo " o Build OK" &&
55
56min_log_init ${INSTLOGS} &&
57make install \
58 >> ${LOGFILE} 2>&1 &&
59echo " o ALL OK" || barf
60
61if [ "${MULTIARCH}" = "Y" ]; then
62 use_wrapper /usr/bin/directfb-config
63fi
Note: See TracBrowser for help on using the repository browser.