From obonilla@voyager.fisicc-ufm.edu Wed May  5 10:56:24 1999
Return-Path: <obonilla@voyager.fisicc-ufm.edu>
Received: from voyager.fisicc-ufm.edu (ip-46-094.guate.net [200.12.46.94])
	by hub.freebsd.org (Postfix) with ESMTP id 9104214F46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 May 1999 10:56:11 -0700 (PDT)
	(envelope-from obonilla@voyager.fisicc-ufm.edu)
Received: (from root@localhost)
	by voyager.fisicc-ufm.edu (8.9.3/8.9.3) id LAA42266;
	Wed, 5 May 1999 11:56:06 -0600 (CST)
	(envelope-from obonilla)
Message-Id: <199905051756.LAA42266@voyager.fisicc-ufm.edu>
Date: Wed, 5 May 1999 11:56:06 -0600 (CST)
From: obonilla@fisicc-ufm.edu
Sender: obonilla@voyager.fisicc-ufm.edu
Reply-To: obonilla@fisicc-ufm.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Otcl doesn't check for X
X-Send-Pr-Version: 3.2

>Number:         11522
>Category:       ports
>Synopsis:       Otcl doesn't check for X
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May  5 11:00:00 PDT 1999
>Closed-Date:    Sun May 9 09:40:48 PDT 1999
>Last-Modified:  Sun May  9 09:41:55 PDT 1999
>Originator:     Oscar Bonilla
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
Universidad Francisco Marroquin - FISICC
>Environment:

>Description:

	if X is not installed, otcl crashes :)

>How-To-Repeat:

	make install otcl without X installed

>Fix:
	
Here's the corrected port. I should have sent diffs, but i removed the
original Makefile... oops :)

it's easier to just add USE_XLIB= yes

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	otcl
#	otcl/Makefile
#	otcl/pkg
#	otcl/pkg/COMMENT
#	otcl/pkg/DESCR
#	otcl/pkg/PLIST
#	otcl/pkg/PLIST~
#	otcl/files
#	otcl/files/md5
#	otcl/README.html
#	otcl/patches
#	otcl/patches/patch-aa
#
echo c - otcl
mkdir -p otcl > /dev/null 2>&1
echo x - otcl/Makefile
sed 's/^X//' >otcl/Makefile << 'END-of-otcl/Makefile'
X# New ports collection makefile for: otcl
X# Version required:	1.0a4
X# Date created:		23 April 1999
X# Whom:			obonilla
X#
X# $Id: Makefile,v 1.1.1.1 1999/04/30 16:36:22 taoka Exp $
X#
X
XDISTNAME=	otcl-1.0a4
XCATEGORIES=	lang
XMASTER_SITES=	http://www-mash.cs.berkeley.edu/dist/
X
XMAINTAINER=	obonilla@fisicc-ufm.edu
X
XLIB_DEPENDS=    tcl80.1:${PORTSDIR}/lang/tcl80
X
XUSE_XLIB=	yes
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--includedir=${PREFIX}/include/tcl8.0/generic
X.include <bsd.port.mk>
END-of-otcl/Makefile
echo c - otcl/pkg
mkdir -p otcl/pkg > /dev/null 2>&1
echo x - otcl/pkg/COMMENT
sed 's/^X//' >otcl/pkg/COMMENT << 'END-of-otcl/pkg/COMMENT'
XMIT Object Tcl
END-of-otcl/pkg/COMMENT
echo x - otcl/pkg/DESCR
sed 's/^X//' >otcl/pkg/DESCR << 'END-of-otcl/pkg/DESCR'
XFrom the README:
X
X   OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for
X   object-oriented programming. It shouldn't be confused with the IXI
X   Object Tcl extension by Dean Sheenan. (Sorry, but we both like the
X   name and have been using it for a while.)
X
X   Some of OTcl's features as compared to alternatives are:
X     * designed to be dynamically extensible, like Tcl, from the ground
X       up
X     * builds on Tcl syntax and concepts rather than importing another
X       language
X     * compact yet powerful object programming system (draws on CLOS,
X       Smalltalk, and Self)
X     * fairly portable implementation (2000 lines of C, without core
X       hacks)
X
X   OTcl was presented at the Tcl/Tk Workshop '95. It constitutes a
X   standalone release of a system that has been in use, embedded in the
X   VuSystem, for two years. We made the release public (with free use,
X   distribution and modification under the MIT license) to meet the
X   demand for object-oriented programming in Tcl.
X
X-Oscar <obonilla@fisicc-ufm.edu>
END-of-otcl/pkg/DESCR
echo x - otcl/pkg/PLIST
sed 's/^X//' >otcl/pkg/PLIST << 'END-of-otcl/pkg/PLIST'
Xbin/otclsh
Xbin/owish
Xinclude/otcl.h
Xlib/libotcl.a
Xlib/libotcl.so.1
END-of-otcl/pkg/PLIST
echo x - otcl/pkg/PLIST~
sed 's/^X//' >otcl/pkg/PLIST~ << 'END-of-otcl/pkg/PLIST~'
Xbin/otclsh
Xbin/owish
Xinclude/otcl.h
Xlib/libotcl.a
Xlib/libotcl.so
Xlib/libotcl.so.1
Xshare/doc/otcl/
X@dirrm share/doc/otcl
END-of-otcl/pkg/PLIST~
echo c - otcl/files
mkdir -p otcl/files > /dev/null 2>&1
echo x - otcl/files/md5
sed 's/^X//' >otcl/files/md5 << 'END-of-otcl/files/md5'
XMD5 (otcl-1.0a4.tar.gz) = 1aafd63973857991b90d08b9dcf29e03
END-of-otcl/files/md5
echo x - otcl/README.html
sed 's/^X//' >otcl/README.html << 'END-of-otcl/README.html'
X<html>
X<title> The FreeBSD Ports Collection (lang/otcl)</title>
X<head><h1> The FreeBSD Ports Collection ("lang/otcl")</h1> </head> <hr>
X<body>
X
X<p>You are now in the directory for the port "lang/otcl" (package name "otcl-1.0a4").
X
X<p>This is the one-line description for this port:
X
X<p><hr><p>
XMIT Object Tcl
X<p><hr>
X
X<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a
Xlonger description.
X
X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
Xa summary on how to use the ports collection.
X
X<p>
XThis port requires package(s) "tcl-8.0.5" to build.
X<p>
XThis port requires package(s) "tcl-8.0.5" to run.
X
X<p><hr><p>
X<a href="../README.html"> Go up one level</a>
X|
X<a href="../../README.html"> Go to top of ports tree</a>
X</body>
X</html>
END-of-otcl/README.html
echo c - otcl/patches
mkdir -p otcl/patches > /dev/null 2>&1
echo x - otcl/patches/patch-aa
sed 's/^X//' >otcl/patches/patch-aa << 'END-of-otcl/patches/patch-aa'
X--- configure.~1~	Tue Feb 23 07:18:58 1999
X+++ configure	Fri Apr 30 23:57:31 1999
X@@ -2607,7 +2607,7 @@
X         if test -e /usr/include/dlfcn.h; then
X             SHLIB_CFLAGS="-fpic"
X             SHLIB_LD="ld -Bshareable"
X-            SHLIB_SUFFIX=".so"
X+            SHLIB_SUFFIX=".so.1"
X             DL_LIBS=""
X             SHLD_FLAGS=""
X         else
END-of-otcl/patches/patch-aa
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 9 09:40:48 PDT 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
