openttd.inc: Added some notes and allow adding parameters via EXTRA_OECONF.
authorRobert Schuster <r.schuster@tarent.de>
Sat, 12 Mar 2011 17:49:09 +0000 (18:49 +0100)
committerRobert Schuster <r.schuster@tarent.de>
Sat, 12 Mar 2011 17:49:09 +0000 (18:49 +0100)
Signed-off-by: Robert Schuster <r.schuster@tarent.de>
recipes/openttd/openttd.inc

index bd88a70..b8d5bc8 100644 (file)
@@ -11,10 +11,14 @@ APPIMAGE = "media/openttd.128.png"
 
 inherit siteinfo sdl
 
+# OpenTTD uses a self-made build system (meh!) that looks like the autotools.
+# When messing with it be careful not to expect it to behave the same!
 do_configure() {
   # The way the OTTD configure system handles the application's directories
   # isn't the way autotools does it. Mainly prefix is always prepended even if
-  # absolute binary-dir and data-dir is given. 
+  # absolute binary-dir and data-dir is given.
+
+  # The build system does not forgive unknown options.
 
   ${S}/configure \
        --host=${TARGET_SYS} \
@@ -35,7 +39,8 @@ do_configure() {
        --cxx-build='${BUILD_CXX}' \
        --cxx-host='${CXX}' \
        --strip='${STRIP}' \
-       --install-dir=${D}
+       --install-dir=${D} \
+       ${EXTRA_OECONF}
 }
 
 do_install() {