[Lunar-commits] <moonbase> x3270: Some adjustments and changes to the BUILD allowing for the optional

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Fri Apr 29 13:43:14 CEST 2011


commit 6a0510ace4a570cccf47c6777c66ef13ffeca939
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Fri Apr 29 07:43:14 2011 -0400

    x3270: Some adjustments and changes to the BUILD allowing for the optional
    
    installation of other x3270 terminal types.
    
    As noted in the BUILD we do not at this time correctly install/build ncursesw.
    Don't know what to do about that since switching to a "real" ncursesw will
    break your box... at least it did here. Need to develope some migration method
    to avoid that.
---
 terminal/x3270/BUILD     |   33 +++++++++++++++++++++++++++++----
 terminal/x3270/CONFIGURE |    3 +++
 terminal/x3270/DEPENDS   |    4 +++-
 3 files changed, 35 insertions(+), 5 deletions(-)

diff --git a/terminal/x3270/BUILD b/terminal/x3270/BUILD
index a25df138..3c0a060 100644
--- a/terminal/x3270/BUILD
+++ b/terminal/x3270/BUILD
@@ -1,11 +1,36 @@
 (
 
-  cd x3270-3.3     &&
-  default_build    &&
+  VER=`lvu version x3270|cut -c 1-3` &&
+
+  cd x3270-$VER &&
+  default_build  &&
   make install.man &&
 
-  # Desktop icon
-  install -D -m644 x3270-icon2.xpm /usr/share/pixmaps/x3270-icon2.xpm  &&
+# Build the TCL based terminal
+  if [ $BUILD_TCL3270 == "y" ]; then
+    cd ../tcl3270-$VER &&
+    default_build &&
+    make install.man
+  fi &&
+
+# Build the scripting based terminal  
+  if [ $BUILD_S3270 == "y" ]; then
+    cd ../s3270-$VER &&
+    default_build &&
+    make install.man
+  fi &&
+
+# This won't work until we do something different in the way we handle
+# nucrses wide characters. As the ncursesw module does it now; it is 
+# not sufficient or um, correct. 
+#  if [ $BUILD_C3270 == "y" ]; then
+#    cd ../c3270-$VER &&
+#    default_build &&
+#    make install.man
+#  fi &&
+
+# Desktop icon
+  install -D -m644 $SOURCE_DIRECTORY/x3270-$VER/x3270-icon2.xpm /usr/share/pixmaps/x3270-icon2.xpm  &&
 
   # Desktop menu entry
   cat > ${MODULE}.desktop << EOF  &&
diff --git a/terminal/x3270/CONFIGURE b/terminal/x3270/CONFIGURE
new file mode 100644
index 0000000..43c9423
--- /dev/null
+++ b/terminal/x3270/CONFIGURE
@@ -0,0 +1,3 @@
+mquery BUILD_TCL3270 "Build the TCL version of x3270?" y 
+mquery BUILD_S3270 "Build the scripted version of x3270?" y
+mquery BUILD_C3270 "Build the ncursesw version of x3270?" y
diff --git a/terminal/x3270/DEPENDS b/terminal/x3270/DEPENDS
index a109f5c..98ebcb1 100644
--- a/terminal/x3270/DEPENDS
+++ b/terminal/x3270/DEPENDS
@@ -1 +1,3 @@
-optional_depends openssl "--with-ssl" "--without-ssl" "for ssl support"
+optional_depends openssl  "--with-ssl" "--without-ssl" "for ssl support"
+optional_depends tcl      ""           ""              "for tcl based 3270 terminal support"
+#optional_depends ncursesw ""           ""              "for ncurses wide based 3270 terminal support"


More information about the Lunar-commits mailing list