source: scripts/scripts/untested/blfs-scripts/blfs-directfb.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • 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.