[Lunar-commits] r20041 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Thu May 11 15:28:26 UTC 2006


Author: sofar
Date: 2006-05-11 15:28:25 +0000 (Thu, 11 May 2006)
New Revision: 20041

Modified:
   lunar/trunk/var/lib/lunar/functions/modules.lunar
Log:
Explicitly set PKG_CONFIG_PATH and PATH for non-standard build locations. Makes setting PKT_CONFIG_PATH in BUILD obsolete.


Modified: lunar/trunk/var/lib/lunar/functions/modules.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/modules.lunar	2006-05-11 09:29:11 UTC (rev 20040)
+++ lunar/trunk/var/lib/lunar/functions/modules.lunar	2006-05-11 15:28:25 UTC (rev 20041)
@@ -227,7 +227,10 @@
     SOURCE_DIRECTORY=${SOURCE_DIRECTORY:-$BUILD_DIRECTORY/$1-$VERSION}
     MODULE_CONFIG=${MODULE_CONFIG:-$DEPENDS_CONFIG/$MODULE}
     MODULE_PREFIX=${MODULE_PREFIX:-$DEFAULT_PREFIX}
-
+    if [ "$MODULE_PREFIX" != "$DEFAULT_PREFIX" ]; then
+      export PKG_CONFIG_PATH=$MODULE_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
+      export PATH=$PATH:$MODULE_PREFIX/bin
+    fi
     return 0
   fi
 }



More information about the Lunar-commits mailing list