diff options
author | jmz <jmz@FreeBSD.org> | 1999-12-06 05:41:59 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1999-12-06 05:41:59 +0800 |
commit | 59f47f75c1b5b2effbd242c82807b7d7f1205443 (patch) | |
tree | 721c5db4ab4491f7361121e938359896fe5f8829 /x11-servers | |
parent | 8e151b2717ec3227c601b84f6b9273642547efa3 (diff) | |
download | freebsd-ports-gnome-59f47f75c1b5b2effbd242c82807b7d7f1205443.tar.gz freebsd-ports-gnome-59f47f75c1b5b2effbd242c82807b7d7f1205443.tar.zst freebsd-ports-gnome-59f47f75c1b5b2effbd242c82807b7d7f1205443.zip |
Add directives such as HasJpTk and HasJpTcl when compiling with japanese tcl/tk
PR: ports/12851
Submitted by: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>
Diffstat (limited to 'x11-servers')
-rw-r--r-- | x11-servers/XFree86-4-Server-snap/scripts/configure | 44 | ||||
-rw-r--r-- | x11-servers/XFree86-4-Server/scripts/configure | 44 |
2 files changed, 70 insertions, 18 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure index 4120f92f9a84..f45e2e3b0ceb 100644 --- a/x11-servers/XFree86-4-Server-snap/scripts/configure +++ b/x11-servers/XFree86-4-Server-snap/scripts/configure @@ -74,15 +74,41 @@ for v in 42 80 81 82 42jp 80jp; do fi done if [ X$tkversion != X ]; then - echo "Using tk-$tkLversion" - echo "#define HasTk YES" >>$F - echo "#define TkLibDir /usr/local/lib" >>$F - echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F - echo "#define TkLibName tk$tkversion" >>$F - echo "#define HasTcl YES" >>$F - echo "#define TclLibDir /usr/local/lib" >>$F - echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F - echo "#define TclLibName tcl$tclversion" >>$F + case $tkversion in + *jp) + echo "Using Japanized tk-$jptkLversion" + if [ X"${MACHINE}" = X"pc98" ]; then + echo "#define HasJpTk YES" >>$F + echo "#define JpTkLibDir /usr/local/lib" >>$F + echo "#define JpTkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define JpTkLibName tk$tkversion" >>$F + echo "#define HasJpTcl YES" >>$F + echo "#define JpTclLibDir /usr/local/lib" >>$F + echo "#define JpTclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define JpTclLibName tcl$tclversion" >>$F + else + echo "#define HasTk YES" >>$F + echo "#define TkLibDir /usr/local/lib" >>$F + echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define TkLibName tk$tkversion" >>$F + echo "#define HasTcl YES" >>$F + echo "#define TclLibDir /usr/local/lib" >>$F + echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define TclLibName tcl$tclversion" >>$F + fi + ;; + *) + echo "Using tk-$tkLversion" + echo "#define HasTk YES" >>$F + echo "#define TkLibDir /usr/local/lib" >>$F + echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define TkLibName tk$tkversion" >>$F + echo "#define HasTcl YES" >>$F + echo "#define TclLibDir /usr/local/lib" >>$F + echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define TclLibName tcl$tclversion" >>$F + ;; + esac else cat <<EOF *** I don't see the static library for tk version $tkversion in /usr/local/lib. diff --git a/x11-servers/XFree86-4-Server/scripts/configure b/x11-servers/XFree86-4-Server/scripts/configure index 4120f92f9a84..f45e2e3b0ceb 100644 --- a/x11-servers/XFree86-4-Server/scripts/configure +++ b/x11-servers/XFree86-4-Server/scripts/configure @@ -74,15 +74,41 @@ for v in 42 80 81 82 42jp 80jp; do fi done if [ X$tkversion != X ]; then - echo "Using tk-$tkLversion" - echo "#define HasTk YES" >>$F - echo "#define TkLibDir /usr/local/lib" >>$F - echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F - echo "#define TkLibName tk$tkversion" >>$F - echo "#define HasTcl YES" >>$F - echo "#define TclLibDir /usr/local/lib" >>$F - echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F - echo "#define TclLibName tcl$tclversion" >>$F + case $tkversion in + *jp) + echo "Using Japanized tk-$jptkLversion" + if [ X"${MACHINE}" = X"pc98" ]; then + echo "#define HasJpTk YES" >>$F + echo "#define JpTkLibDir /usr/local/lib" >>$F + echo "#define JpTkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define JpTkLibName tk$tkversion" >>$F + echo "#define HasJpTcl YES" >>$F + echo "#define JpTclLibDir /usr/local/lib" >>$F + echo "#define JpTclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define JpTclLibName tcl$tclversion" >>$F + else + echo "#define HasTk YES" >>$F + echo "#define TkLibDir /usr/local/lib" >>$F + echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define TkLibName tk$tkversion" >>$F + echo "#define HasTcl YES" >>$F + echo "#define TclLibDir /usr/local/lib" >>$F + echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define TclLibName tcl$tclversion" >>$F + fi + ;; + *) + echo "Using tk-$tkLversion" + echo "#define HasTk YES" >>$F + echo "#define TkLibDir /usr/local/lib" >>$F + echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define TkLibName tk$tkversion" >>$F + echo "#define HasTcl YES" >>$F + echo "#define TclLibDir /usr/local/lib" >>$F + echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define TclLibName tcl$tclversion" >>$F + ;; + esac else cat <<EOF *** I don't see the static library for tk version $tkversion in /usr/local/lib. |