1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../directfb/directfb.conf
5 # Copyright (C) 2004 - 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 # this makes to search libsysfs.so in /lib - libtool issue
16 var_append LDFLAGS ' ' "-L$root/lib"
19 # enable multi application core default=no
20 pkginstalled dfb-linux-fusion && var_append confopt ' ' "--enable-multi"
22 # enable Voodoo (network support) default=no
23 var_append confopt ' ' "--enable-voodoo"
25 # enable window manager
26 var_append confopt ' ' "--enable-unique"
28 # use zlib, e.g. for screen shots default=no
29 var_append confopt ' ' "--enable-zlib"
31 # build with Video4Linux2 support default=no
32 var_append confopt ' ' "--enable-video4linux2"
34 # build Linux Input driver default=no
35 var_append confopt ' ' "--enable-linux-input"
38 if pkginstalled libx11; then
39 var_append confopt ' ' "--enable-x11"
40 hook_add preconf 5 'sed -i -e "s,/usr/X11R6,/usr/X11,g" configure*'
41 [[ $libdir != *lib ]] && hook_add preconf 9 'sed -i -e "s,/usr/X11/lib,/usr/X11/lib64,g" configure*'
42 var_append LDFLAGS ' ' "-L$root/$(pkgprefix libdir libx11)"
45 var_append confopt ' ' "--disable-x11"
49 #pkginstalled libsdl && var_append confopt ' ' "--enable-sdl"
51 # VNC support: b0rken for 1.1.0-git @ 2007-11-02
52 var_append confopt ' ' "--disable-vnc"
55 [ $SDECFG_DEBUG -ge 1 ] && var_append confopt ' ' '--enable-debug-support'
56 [ $SDECFG_DEBUG -ge 2 ] && var_append confopt ' ' '--enable-debug --enable-trace'