aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11-servers/XFree86-4-Server-snap/scripts/configure18
-rw-r--r--x11-servers/XFree86-4-Server/scripts/configure18
-rw-r--r--x11/XFree86-4-clients/scripts/configure18
-rw-r--r--x11/XFree86-4-libraries/scripts/configure18
-rw-r--r--x11/XFree86-4/scripts/configure18
-rw-r--r--x11/XFree86/scripts/configure18
6 files changed, 108 insertions, 0 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11-servers/XFree86-4-Server-snap/scripts/configure
+++ b/x11-servers/XFree86-4-Server-snap/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you
diff --git a/x11-servers/XFree86-4-Server/scripts/configure b/x11-servers/XFree86-4-Server/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11-servers/XFree86-4-Server/scripts/configure
+++ b/x11-servers/XFree86-4-Server/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you
diff --git a/x11/XFree86-4-clients/scripts/configure b/x11/XFree86-4-clients/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11/XFree86-4-clients/scripts/configure
+++ b/x11/XFree86-4-clients/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you
diff --git a/x11/XFree86-4-libraries/scripts/configure b/x11/XFree86-4-libraries/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11/XFree86-4-libraries/scripts/configure
+++ b/x11/XFree86-4-libraries/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you
diff --git a/x11/XFree86-4/scripts/configure b/x11/XFree86-4/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11/XFree86-4/scripts/configure
+++ b/x11/XFree86-4/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you
diff --git a/x11/XFree86/scripts/configure b/x11/XFree86/scripts/configure
index 6ee7ffa601e..4bb7c713ee7 100644
--- a/x11/XFree86/scripts/configure
+++ b/x11/XFree86/scripts/configure
@@ -19,6 +19,24 @@ F=$WRKDIR/.config
configure () {
rm -f $F
+# Tk detection
+tkversion=
+for v in 0 1 2 3 4; do
+ if `ls /usr/local/lib/libtk4.$v.so* >/dev/null 2>&1`; then
+ tkversion=$v
+ fi
+done
+if [ X$tkversion != X ]; then
+ echo "Using tk-4.$tkversion"
+ echo "#define HasTk YES" >>$F
+ echo "#define TkLibDir /usr/local/lib" >>$F
+ echo "#define TkIncDir /usr/local/include" >>$F
+ echo "#define TkLibName tk4.$tkversion" >>$F
+ echo "#define HasTcl YES" >>$F
+ echo "#define TclLibDir /usr/lib" >>$F
+ echo "#define TclIncDir /usr/include" >>$F
+ echo "#define TclLibName tcl75" >>$F
+fi
cat <<END
Which servers do you wish to build, you can save a lot of disk space
by only compiling the server you will be using. It will also save you