source: scripts/untested/blfs-scripts/blfs-directfb.sh@ a8f17cf

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

r589@server (orig r587): ryan | 2005-08-05 22:57:16 -0700
Add a pile of new scripts, and add -32 and -64 symlinks



  • Property mode set to 100755
File size: 1.6 KB
RevLine 
[1c379e4]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.