Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 1998 11:31:23 +0100 (CET)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Cyrus and TCL
Message-ID:  <Pine.BSF.3.96.980215111727.11349B-100000@gold.amis.net>

next in thread | raw e-mail | index | archive | help
What is the correct dependency for ports that need TCL? Cyrus is marked
broken in the ports collection because of a non-working tcl dependency. I
can make it work by patching its configure script to directly use -ltcl80
and the include directory ${prefix}/include/tcl80. So should I make this
depend on tcl 8.0 or tcl 7.5? Here is the patch that makes cyrus compile
correctly under 2.2.5-STABLE if the tcl 8.0 port is installed on the
system (remove BROKEN from Makefile first, of course). Add the below patch
as patch-ac in the patches directory to make it work.

Blaz Zupan, blaz@medinet.si, http://www.amis.net/staff/blaz
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia

*** configure.old	Wed Mar 19 22:43:58 1997
--- configure	Sun Feb 15 11:06:27 1998
***************
*** 2438,2459 ****
  fi
  
  if test -z "$with_tcl"; then
!      if test -f /usr/local/lib/libtcl.a; then
  	with_tcl="/usr/local"
       fi
  fi
  case "$with_tcl" in
  	no) if test "$TCL_SUBDIRS" != ""; then
! 		{ echo "configure: error: Could not find Tcl libraries.  You must either install Tcl or configure with --disable-cyradm" 1>&2; exit 1; }
  	    fi;;
! 	""|yes) echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
! echo "configure:2451: checking for Tcl_Init in -ltcl" >&5
  ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
! LIBS="-ltcl -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
  #line 2459 "configure"
  #include "confdefs.h"
--- 2438,2459 ----
  fi
  
  if test -z "$with_tcl"; then
!      if test -f /usr/local/lib/libtcl80.a; then
  	with_tcl="/usr/local"
       fi
  fi
  case "$with_tcl" in
  	no) if test "$TCL_SUBDIRS" != ""; then
! 		{ echo "configure: error: Could not find Tcl 8.0 libraries.  You must either install Tcl or configure with --disable-cyradm" 1>&2; exit 1; }
  	    fi;;
! 	""|yes) echo $ac_n "checking for Tcl_Init in -ltcl80""... $ac_c" 1>&6
! echo "configure:2451: checking for Tcl_Init in -ltcl80" >&5
  ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
! LIBS="-ltcl80 -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
  #line 2459 "configure"
  #include "confdefs.h"
***************
*** 2481,2496 ****
  fi
  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!   TCLLIBS="-ltcl -lm"
  else
    echo "$ac_t""no" 1>&6
  if test "$TCL_SUBDIRS" != ""; then
! 		{ echo "configure: error: Could not find Tcl libraries.  You must either install Tcl or configure with --disable-cyradm" 1>&2; exit 1; }
  	     fi
  fi
   ;;
! 	*)  CPPFLAGS="${CPPFLAGS} -I${with_tcl}/include"
! 	    TCLLIBS="-L${with_tcl}/lib ${ld_runpath_switch}${with_tcl}/lib -ltcl -lm" ;;
  esac
  
  # Check whether --with-zephyr or --without-zephyr was given.
--- 2481,2496 ----
  fi
  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!   TCLLIBS="-ltcl80 -lm"
  else
    echo "$ac_t""no" 1>&6
  if test "$TCL_SUBDIRS" != ""; then
! 		{ echo "configure: error: Could not find Tcl libraries.  You must either install Tcl 8.0 or configure with --disable-cyradm" 1>&2; exit 1; }
  	     fi
  fi
   ;;
! 	*)  CPPFLAGS="${CPPFLAGS} -I${with_tcl}/include/tcl8.0"
! 	    TCLLIBS="-L${with_tcl}/lib ${ld_runpath_switch}${with_tcl}/lib -ltcl80 -lm" ;;
  esac
  
  # Check whether --with-zephyr or --without-zephyr was given.





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980215111727.11349B-100000>