You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../evas/evas.conf
# Copyright (C) 2006 - 2011 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2004 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# image loaders
for x in libpng:png libjpeg:jpeg librsvg:svg; do
if pkginstalled ${x%:*}; then
y=enable
else
y=disable
fi
var_append extraconfopt ' ' "--$y-image-loader-${x#*:}"
done
# eet
if pkginstalled eet; then
y=enable
else
y=disable
fi
for x in image font; do
var_append extraconfopt ' ' "--$y-$x-loader-eet"
done
# enable framebuffer support by default
var_append confopt " " "--enable-fb"
# check for directfb
if pkginstalled directfb ; then
var_append confopt " " "--enable-directfb"
fi
# check for xorg
if pkginstalled xorg-server ; then
var_append confopt " " "--x-includes=$( pkgprefix -r includedir xorg-server )"
var_append confopt " " "--x-libraries=$( pkgprefix -r libdir xorg-server )"
var_append configprefix ' ' 'LDFLAGS="-L$( pkgprefix -r libdir xorg-server )"'
fi
# check if we can enable the OpenGL X11 display engine
pkginstalled mesa && var_append confopt ' ' "--enable-gl-x11"
# check if we can enable the Cairo X11 support
if pkginstalled cairo ; then
var_append confopt ' ' "--enable-cairo-x11"
var_append GCC_WRAPPER_APPEND ' ' "`pkg-config cairo --cflags`"
fi
if pkginstalled fontconfig ; then
pkgprefix -t fontconfig
var_append confopt ' ' "--enable-fontconfig"
var_append GCC_WRAPPER_APPEND ' ' "`pkg-config fontconfig --cflags`"
else
var_append confopt ' ' "--disable-fontconfig"
fi