From b4fa3ef841c93908cd01744237fa0ccd63cd6435 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 11 May 2010 09:41:38 -0400 Subject: [PATCH] evas: changed hardcoded enables in .conf to enable/disable features based on what's installed --- e17/evas/evas.conf | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/e17/evas/evas.conf b/e17/evas/evas.conf index 3b0a90264..141bd3615 100644 --- a/e17/evas/evas.conf +++ b/e17/evas/evas.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../evas/evas.conf -# Copyright (C) 2006 The OpenSDE Project +# Copyright (C) 2006 - 2010 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -14,9 +14,26 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -var_append confopt " " "--enable-image-loader-png --enable-image-loader-jpeg \ ---enable-image-loader-eet --enable-image-loader-edb \ ---enable-font-loader-eet" +# 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"