2006-10-01 19:17:49 +00:00
# New ports collection makefile for: xotcl
# Date created: Mon Sep 25 15:31:00 CET 2006
# Whom: Martin Matuska <martin@matuska.org>
#
# $FreeBSD$
#
PORTNAME = xotcl
2006-11-27 02:30:32 +00:00
PORTVERSION = 1.5.3
2006-12-13 10:16:03 +00:00
PORTREVISION = 1
2006-10-01 19:17:49 +00:00
CATEGORIES = lang tcl83 tcl84
MASTER_SITES = http://media.wu-wien.ac.at/download/
MAINTAINER = martin@matuska.org
COMMENT = Object-oriented scripting language based on Tcl
GNU_CONFIGURE = yes
USE_TCL = yes
USE_TCL_BUILD = yes
ALL_TARGET = all test-nohttp
2006-12-13 10:16:03 +00:00
INSTALL_TARGET = install
2006-10-01 19:17:49 +00:00
USE_LDCONFIG = yes
USE_GMAKE = yes
PLIST_SUB += PORTVERSION = ${ PORTVERSION }
2006-12-13 10:16:03 +00:00
OPTIONS = ACTIWEB "Include actiweb" on \
AOLSERVER "AOL server module" off \
2006-11-27 02:30:32 +00:00
THREADS "Force threaded build" off \
2006-10-01 19:17:49 +00:00
TUTORIAL "Install XOTcl tutorial" off
CONFIGURE_ARGS += --exec-prefix= ${ PREFIX } \
--libdir= ${ PREFIX } /lib \
--with-tcl= ${ TCL_LIBDIR } \
--with-tclinclude= ${ TCL_INCLUDEDIR } /generic/ \
--with-xotclsh
. i n c l u d e < b s d . p o r t . p r e . m k >
2006-12-13 10:16:03 +00:00
. i f d e f i n e d ( W I T H _ A C T I W E B )
CONFIGURE_ARGS += --with-actiweb --with-gdbm= ${ LOCALBASE } /include,${ LOCALBASE } /lib
LIB_DEPENDS += gdbm.3:${ PORTSDIR } /databases/gdbm
PLIST_SUB += ACTIWEB = ""
. e l s e
PLIST_SUB += ACTIWEB = "@comment "
. e n d i f
2006-10-01 19:17:49 +00:00
. i f d e f i n e d ( W I T H _ A O L S E R V E R )
BUILD_DEPENDS += ${ LOCALBASE } /aolserver/bin/init.tcl:${ PORTSDIR } /www/aolserver
RUN_DEPENDS += ${ BUILD_DEPENDS }
PLIST_SUB += AOLSERVER = ""
2006-12-13 10:16:03 +00:00
INSTALL_TARGET += install-aol
2006-10-01 19:17:49 +00:00
. e l s e
PLIST_SUB += AOLSERVER = "@comment "
. e n d i f
. i f d e f i n e d ( W I T H _ T U T O R I A L )
PLIST_SUB += TUTORIAL = ""
. e l s e
PLIST_SUB += TUTORIAL = "@comment "
. e n d i f
2006-11-27 02:30:32 +00:00
. i f d e f i n e d ( W I T H _ T H R E A D S )
2006-11-27 12:33:50 +00:00
TCL_THREADED != ${ ECHO_CMD } 'puts [array names tcl_platform -exact threaded]' | ${ TCLSH }
2006-11-27 02:30:32 +00:00
. i f e m p t y ( T C L _ T H R E A D E D )
IGNORE = WITH_THREADS option is selected. You need Tcl with threads to use this port. Please install Tcl with WITH_THREADS defined or from lang/tcl84-thread port and try again.
. e n d i f
CONFIGURE_ARGS += --enable-threads
. e n d i f
2006-10-01 19:17:49 +00:00
INSTALL_TARGET += install-shells
. i f ! d e f i n e d ( N O _ I N S T A L L _ M A N P A G E S )
MAN1 = xotclsh.1
. e n d i f
post-install :
. i f d e f i n e d ( W I T H _ T U T O R I A L )
${ MKDIR } ${ EXAMPLESDIR } /tutorial/html ${ EXAMPLESDIR } /tutorial/pdf
. f o r F I L E i n l a n g R e f - x o t c l . p d f t u t o r i a l . p d f
${ INSTALL_DATA } ${ WRKSRC } /doc/${ FILE } ${ EXAMPLESDIR } /tutorial/pdf
. e n d f o r
@cd ${ WRKSRC } ; ${ FIND } doc/ -type f \( -name '*.html' -or -name '*.css' -or -name '*.gif' \) \
-exec ${ INSTALL_DATA } ${ WRKSRC } /{ } ${ EXAMPLESDIR } /tutorial/html \;
. e n d i f
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ DOCSDIR } ${ DOCSDIR } /announces
. f o r F I L E i n C O P Y R I G H T C h a n g e L o g R E A D M E R E A D M E . a o l d o c / T O D O
${ INSTALL_DATA } ${ WRKSRC } /${ FILE } ${ DOCSDIR }
. e n d f o r
@cd ${ WRKSRC } ; ${ FIND } doc/ -name 'Announce-*' -type f \
-exec ${ INSTALL_DATA } ${ WRKSRC } /{ } ${ DOCSDIR } /announces \;
. e n d i f
. i f ! d e f i n e d ( N O _ I N S T A L L _ M A N P A G E S )
${ INSTALL_MAN } ${ WRKSRC } /man/xotclsh.1 ${ PREFIX } /man/man1/
. e n d i f
. i n c l u d e < b s d . p o r t . p o s t . m k >