onefang pushed a commit to branch master.

http://git.enlightenment.org/admin/devs.git/commit/?id=3eeaaf1b22f12d7a94cbb3f8085f36d64dc6529e

commit 3eeaaf1b22f12d7a94cbb3f8085f36d64dc6529e
Author: David Walter Seikel <won_f...@yahoo.com.au>
Date:   Sat Feb 22 07:40:39 2014 +1000

    Add a way to pass different config options to different packages.
---
 developers/onefang/build_efl.lua | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/developers/onefang/build_efl.lua b/developers/onefang/build_efl.lua
index 12e433a..c495228 100755
--- a/developers/onefang/build_efl.lua
+++ b/developers/onefang/build_efl.lua
@@ -93,6 +93,13 @@ local binExtra =
 }
 local eThemes = {}
 
+local configOptions =
+{
+    efl = ' --enable-xinput22 --enable-multisense --disable-gstreamer1 
--enable-lua-old --enable-gstreamer 
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa',
+--    efl = ' --enable-xinput22 --enable-multisense --disable-gstreamer1 
--enable-gstreamer 
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa',
+    -- Left out --enable-systemd --enable-harfbuzz --enable-wayland 
--disable-tslib --enable-fb --enable-image-loader-webp
+    -- The moment I saw --enable-i-really-know-what-i-am-doing-... hit git, I 
knew I'd end up using it.  Coz apparently the stable version of the worlds most 
popular Linux distro isn't important to support.
+}
 
 local exportedEnvVars = ''
 local saEnvVars = ''
@@ -121,6 +128,9 @@ end
 local function build(i, package)
     local exists
     local path
+    local conf = configOptions[package]
+
+    if not conf then conf = '' end
 
     for j, dir in ipairs(searchPaths) do 
        path = dir .. '/' .. package
@@ -136,14 +146,14 @@ local function build(i, package)
            end
 
            if fileExists(path .. '/autogen.sh') then
-               if good then good = runBuildCommand(i, package, path, 
'./autogen.sh --prefix=' .. installPath .. ' 
--cache-file=/tmp/eflBuild/autofoo.cache') end
+               if good then good = runBuildCommand(i, package, path, 
'./autogen.sh --prefix=' .. installPath .. ' 
--cache-file=/tmp/eflBuild/autofoo.cache' .. conf) end
                if good then good = runBuildCommand(i, package, path, 'make -j' 
.. threads) end
                if good then good = runBuildCommand(i, package, path, 'sudo 
make install') end
            elseif fileExists(path .. '/build.sh') then
                if good then good = runBuildCommand(i, package, path, 
'./build.sh') end
            elseif fileExists(path .. '/bootstrap.sh') then
                if good then good = runBuildCommand(i, package, path, 
'./bootstrap.sh') end
-               if good then good = runBuildCommand(i, package, path, 
'./configure --prefix=' .. installPath .. ' 
--cache-file=/tmp/eflBuild/autofoo.cache') end
+               if good then good = runBuildCommand(i, package, path, 
'./configure --prefix=' .. installPath .. ' 
--cache-file=/tmp/eflBuild/autofoo.cache' .. conf) end
                if good then good = runBuildCommand(i, package, path, 'make -j' 
.. threads) end
                if good then good = runBuildCommand(i, package, path, 'sudo 
make install') end
            elseif fileExists(path .. '/Makefile.PL') then

-- 


Reply via email to