[Lunar-commits] <moonbase> mc: add --with-x option if libX11 is installed.

Florin Braescu florin at lunar-linux.org
Tue Oct 19 08:29:52 CEST 2010


commit 020a6c546eb30e4dd18934a475172568f808d4e9
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Tue Oct 19 09:29:52 2010 +0300

    mc: add --with-x option if libX11 is installed.
---
 filemanagers/mc/BUILD |   35 ++++++++++++++++++++---------------
 1 files changed, 20 insertions(+), 15 deletions(-)

diff --git a/filemanagers/mc/BUILD b/filemanagers/mc/BUILD
index b67d037..f96247f 100644
--- a/filemanagers/mc/BUILD
+++ b/filemanagers/mc/BUILD
@@ -1,21 +1,26 @@
 (
 
-  automake --add-missing
+  automake --add-missing  &&
 
-  ./configure      --build=$BUILD             \
-                   --prefix=/usr              \
-                   --bindir=/usr/bin          \
-                   --sbindir=/usr/sbin        \
-                   --sysconfdir=/etc          \
-                   --localstatedir=/var       \
-                   --infodir=/usr/share/info  \
-                   --mandir=/usr/share/man    \
-                   --enable-largefile         \
-                   --without-gnome            \
-                   --without-debug            \
-                   --with-terminfo            \
-                   --disable-glibtest         \
-                   --with-ext2undel          &&
+  if module_installed libX11; then
+     OPTS+=" --with-x "
+  fi  &&
+
+  ./configure  --build=$BUILD             \
+               --prefix=/usr              \
+               --bindir=/usr/bin          \
+               --sbindir=/usr/sbin        \
+               --sysconfdir=/etc          \
+               --localstatedir=/var       \
+               --infodir=/usr/share/info  \
+               --mandir=/usr/share/man    \
+               --enable-largefile         \
+               --without-gnome            \
+               --without-debug            \
+               --with-terminfo            \
+               --disable-glibtest         \
+               --with-ext2undel           \
+               $OPTS                     &&
 
   default_make
 


More information about the Lunar-commits mailing list