/usr/bin/directfb-config is in libdirectfb-dev 1.2.10.0-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | #!/bin/sh
prefix=/usr
exec_prefix=${prefix}
exec_prefix_set=no
moduledir=${prefix}/lib/x86_64-linux-gnu/directfb-1.2-9
usage()
{
cat <<EOF
Usage: directfb-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
For static linking:
[--input=<driver>[,<driver>]...] (default: none)
[--graphics=<driver>[,<driver>]...] (default: none)
[--system=<system>[,<system>]...] (default: 'fbdev')
[--wm=<wm>[,<wm>]...] (default: 'default')
[--font=<impl>[,<impl>]...] (default: none)
[--imageprovider=<impl>[,<impl>]...] (default: none)
[--videoprovider=<impl>[,<impl>]...] (default: none)
[--fusionsound]
[--voodoo]
Example for static linking:
directfb-config --libs --graphics=matrox,r200
--input=linux_input --font=ft2
--imageprovider=jpeg,png,gif
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
lib_directfb=yes
lib_avifile=no
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo 1.2.10
;;
--cflags)
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
directfb)
lib_directfb=yes
;;
avifile)
lib_avifile=yes
;;
--input=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_input="$echo_input $moduledir/inputdrivers/libdirectfb_$i.o"
done
echo_static=yes
;;
--graphics=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_graphics="$echo_graphics $moduledir/gfxdrivers/libdirectfb_$i.o"
done
echo_static=yes
;;
--font=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_font="$echo_font $moduledir/interfaces/IDirectFBFont/libidirectfbfont_$i.o"
case $i in
ft2)
echo_font="$echo_font -lfreetype"
;;
esac
done
echo_static=yes
;;
--system=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_system="$echo_system $moduledir/systems/libdirectfb_$i.o"
case $i in
fbdev)
echo_system="$echo_system "
;;
sdl)
echo_system="$echo_system "
;;
esac
done
echo_static=yes
;;
--wm=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_wm="$echo_wm $moduledir/wm/libidirectfb_$i.o"
case $i in
unique)
echo_wm="$echo_wm -luniquewm"
;;
esac
done
echo_static=yes
;;
--imageprovider=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_imageprovider="$echo_imageprovider $moduledir/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_$i.o"
case $i in
imlib2)
echo_imageprovider="$echo_imageprovider -lImlib2 -lttf -lm -lXext -lX11"
;;
jpeg)
echo_imageprovider="$echo_imageprovider -ljpeg"
;;
png)
echo_imageprovider="$echo_imageprovider -lpng -lz -lm"
;;
gif)
;;
esac
done
echo_static=yes
;;
--videoprovider=*)
if test -z "$optarg"; then
usage 2 1>&2
fi
for i in `echo $optarg | sed 's/,/ /g'`; do
echo_videoprovider="$echo_videoprovider $moduledir/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_$i.o"
case $i in
libmpeg3)
echo_videoprovider="$echo_videoprovider -lmpeg3"
;;
swf)
echo_videoprovider="$echo_videoprovider -ljpeg -lz"
;;
openquicktime)
echo_videoprovider="$echo_videoprovider -lopenquicktime -lz -lglib -lm"
;;
esac
done
echo_static=yes
;;
--fusionsound)
echo_fusionsound="-Wl,-uIFusionSound_default -lifusionsound"
echo_static=yes
;;
--voodoo)
echo_voodoo=yes
echo_static=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
if test ${prefix}/include/directfb != /usr/include ; then
cflags="-I${SYSROOT}${prefix}/include/directfb"
fi
echo $cflags -D_REENTRANT
fi
if test -n "$echo_static"; then
echo -static
if test -z "$echo_system"; then
echo $moduledir/systems/libdirectfb_fbdev.o
fi
if test -z "$echo_wm"; then
echo $moduledir/wm/libdirectfbwm_default.o
fi
fi
if test -n "$echo_font"; then
echo $echo_font
fi
if test -n "$echo_imageprovider"; then
echo $echo_imageprovider
fi
if test -n "$echo_videoprovider"; then
echo $echo_videoprovider
fi
if test -n "$echo_input"; then
echo $echo_input
fi
if test -n "$echo_graphics"; then
echo $echo_graphics
fi
if test -n "$echo_system"; then
echo $echo_system
fi
if test -n "$echo_wm"; then
echo $echo_wm
fi
if test -n "$echo_fusionsound"; then
echo -L${SYSROOT}$moduledir/interfaces/IFusionSound $echo_fusionsound
fi
print_voodoo ()
{
echo $moduledir/interfaces/$1/lib$2_dispatcher.o $moduledir/interfaces/$1/lib$2_requestor.o
}
if test -n "$echo_voodoo"; then
print_voodoo IDirectFB idirectfb
print_voodoo IDirectFBDataBuffer idirectfbdatabuffer
print_voodoo IDirectFBDisplayLayer idirectfbdisplaylayer
print_voodoo IDirectFBEventBuffer idirectfbeventbuffer
print_voodoo IDirectFBFont idirectfbfont
print_voodoo IDirectFBImageProvider idirectfbimageprovider
print_voodoo IDirectFBInputDevice idirectfbinputdevice
print_voodoo IDirectFBPalette idirectfbpalette
print_voodoo IDirectFBScreen idirectfbscreen
print_voodoo IDirectFBSurface idirectfbsurface
print_voodoo IDirectFBWindow idirectfbwindow
echo -lvoodoo
fi
if test "$echo_libs" = "yes"; then
libs=-L${SYSROOT}${prefix}/lib/x86_64-linux-gnu
if test "$lib_directfb" = "yes"; then
libs="$libs -ldirectfb -lfusion -ldirect -lpthread"
if test -n "$echo_static"; then
libs="$libs -ldl "
fi
fi
if test "$lib_avifile" = "yes"; then
libs="$libs @AVIFILE_LIBS@"
fi
echo $libs
fi
|