head	1.31;
access;
symbols
	RELEASE_8_3_0:1.28
	RELEASE_9_0_0:1.28
	RELEASE_7_4_0:1.25
	RELEASE_8_2_0:1.25
	RELEASE_6_EOL:1.25
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.24
	RELEASE_8_0_0:1.22
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.19
	RELEASE_6_4_0:1.19
	RELEASE_5_EOL:1.18
	RELEASE_7_0_0:1.16
	RELEASE_6_3_0:1.16
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.31
date	2013.02.06.19.12.20;	author svnexp;	state Exp;
branches;
next	1.30;

1.30
date	2012.11.17.05.58.58;	author svnexp;	state Exp;
branches;
next	1.29;

1.29
date	2012.06.13.05.13.04;	author bapt;	state Exp;
branches;
next	1.28;

1.28
date	2011.09.12.13.46.55;	author gabor;	state Exp;
branches;
next	1.27;

1.27
date	2011.08.09.15.41.28;	author mm;	state Exp;
branches;
next	1.26;

1.26
date	2011.03.23.11.37.47;	author mm;	state Exp;
branches;
next	1.25;

1.25
date	2010.05.11.09.44.49;	author mm;	state Exp;
branches;
next	1.24;

1.24
date	2010.01.12.12.17.44;	author mm;	state Exp;
branches;
next	1.23;

1.23
date	2009.11.18.22.39.52;	author pav;	state Exp;
branches;
next	1.22;

1.22
date	2009.03.24.23.12.42;	author mm;	state Exp;
branches;
next	1.21;

1.21
date	2009.02.23.14.46.32;	author mm;	state Exp;
branches;
next	1.20;

1.20
date	2008.11.03.13.49.25;	author mm;	state Exp;
branches;
next	1.19;

1.19
date	2008.08.24.14.38.20;	author mm;	state Exp;
branches;
next	1.18;

1.18
date	2008.04.09.13.42.12;	author pav;	state Exp;
branches;
next	1.17;

1.17
date	2008.02.24.19.19.38;	author mm;	state Exp;
branches;
next	1.16;

1.16
date	2007.10.14.08.42.46;	author mm;	state Exp;
branches;
next	1.15;

1.15
date	2007.09.28.05.18.43;	author mm;	state Exp;
branches;
next	1.14;

1.14
date	2007.09.22.11.42.16;	author mm;	state Exp;
branches;
next	1.13;

1.13
date	2007.08.18.09.23.11;	author mm;	state Exp;
branches;
next	1.12;

1.12
date	2007.08.16.08.57.03;	author mm;	state Exp;
branches;
next	1.11;

1.11
date	2007.07.02.22.44.13;	author mm;	state Exp;
branches;
next	1.10;

1.10
date	2007.04.12.15.31.04;	author mm;	state Exp;
branches;
next	1.9;

1.9
date	2007.04.05.13.19.05;	author mm;	state Exp;
branches;
next	1.8;

1.8
date	2007.04.05.12.36.23;	author mm;	state Exp;
branches;
next	1.7;

1.7
date	2007.03.21.13.21.41;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2007.03.20.11.39.16;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2007.03.01.10.10.39;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2006.12.13.10.16.03;	author miwi;	state Exp;
branches;
next	1.3;

1.3
date	2006.11.27.12.33.50;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.27.02.30.32;	author rafan;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.01.19.17.49;	author stas;	state Exp;
branches;
next	;


desc
@@


1.31
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311776
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	xotcl
# Date created:				Mon Sep 25 15:31:00 CET 2006
# Whom:					Martin Matuska <mm@@FreeBSD.org>
#
# $FreeBSD: head/lang/xotcl/Makefile 311776 2013-02-06 15:42:16Z gahr $
#

PORTNAME=	xotcl
PORTVERSION=	1.6.6
PORTREVISION=	1
CATEGORIES?=	lang tcl
MASTER_SITES=	SF \
		http://media.wu-wien.ac.at/download/

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Object-oriented scripting language based on Tcl

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USE_TCL=		84+

INSTALL_TARGET=	install
ALL_TARGET=	all test-nohttp
USE_GMAKE=	yes
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
MAKE_JOBS_UNSAFE=	yes

.if !defined(AOLSERVER_XOTCL)
USE_LDCONFIG=	${PREFIX}/lib/xotcl${PORTVERSION}
GNU_CONFIGURE=	yes
PORTDOCS=	*

OPTIONS_DEFINE=	ACTIWEB TUTORIAL DOCS
OPTIONS_DEFAULT=	ACTIWEB
ACTIWEB_DESC=	Include actiweb
TUTORIAL_DESC=	Install XOTcl tutorial

LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
CONFIGURE_ARGS+=	--with-expat=${LOCALBASE}/include,${LOCALBASE}/lib
.else
AOLSERVERBASE?=	aolserver
.endif

.include <bsd.port.options.mk>

.if defined(AOLSERVER_XOTCL)
RUN_DEPENDS+=		${LOCALBASE}/aolserver/bin/init.tcl:${PORTSDIR}/www/aolserver \
			${LOCALBASE}/lib/xotcl${PORTVERSION}/xotclConfig.sh:${PORTSDIR}/lang/xotcl
PLIST=			${WRKDIR}/pkg-plist.aolserver
PLIST_FILES=		${AOLSERVERBASE}/modules/tcl/xotcl.tcl
LATEST_LINK=		aolserver-xotcl
NO_BUILD=		yes
.endif

.if ${PORT_OPTIONS:MACTIWEB}
CONFIGURE_ARGS+=	--with-actiweb --with-gdbm=${LOCALBASE}/include,${LOCALBASE}/lib
LIB_DEPENDS+=		gdbm.4:${PORTSDIR}/databases/gdbm
PLIST_SUB+=	ACTIWEB=""
.else
PLIST_SUB+=	ACTIWEB="@@comment "
.endif

.if ${PORT_OPTIONS:MTUTORIAL}
PLIST_SUB+=	TUTORIAL=""
.else
PLIST_SUB+=	TUTORIAL="@@comment "
.endif

INSTALL_TARGET+=	install-shells

.if !defined(AOLSERVER_XOTCL) && !defined(NO_INSTALL_MANPAGES)
MAN1=			xotclsh.1
.endif

CONFIGURE_ARGS+=	--exec-prefix=${PREFIX} \
			--libdir=${PREFIX}/lib \
			--enable-threads \
			--with-tcl=${TCL_LIBDIR} \
			--with-tclinclude=${TCL_INCLUDEDIR}/generic/ \
			--with-xotclsh

CONFIGURE_ENV+=		TCL_INCLUDEDIR="${TCL_INCLUDEDIR}" \
			PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
			PTHREAD_LIBS="${PTHREAD_LIBS}"

post-patch:
	@@${REINPLACE_CMD} -e 's|TCLSH_PROG=".*"|TCLSH_PROG="${TCLSH}"|g' \
		${WRKSRC}/configure

.if defined(AOLSERVER_XOTCL) # Install for aolserver module

do-install:
	@@${INSTALL_DATA} ${WRKSRC}/generic/aol-xotcl.tcl \
		${PREFIX}/${AOLSERVERBASE}/modules/tcl/xotcl.tcl
.endif

.if !defined(AOLSERVER_XOTCL) # Aolserver module has no post-install
post-install:
.if ${PORT_OPTIONS:MTUTORIAL}
	${MKDIR} ${EXAMPLESDIR}/tutorial/html ${EXAMPLESDIR}/tutorial/pdf
.for FILE in langRef-xotcl.pdf tutorial.pdf
	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${EXAMPLESDIR}/tutorial/pdf
.endfor
	@@cd ${WRKSRC}; ${FIND} doc/ -type f \( -name '*.html' -or -name '*.css' -or -name '*.gif' \) \
	-exec ${INSTALL_DATA} ${WRKSRC}/{} ${EXAMPLESDIR}/tutorial/html \;
.endif
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.for FILE in ChangeLog README README.aol
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.if !defined(NO_INSTALL_MANPAGES)
	${INSTALL_MAN} ${WRKSRC}/man/xotclsh.1 ${PREFIX}/man/man1/
.endif
.endif
.include <bsd.port.mk>
@


1.30
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/xotcl/Makefile 300896 2012-07-14 13:54:48Z beat $
a21 1
USE_TCL_THREADS=	yes
@


1.29
log
@Convert to new options framework
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.28
log
@- Track dependencies after databases/gdbm update
@
text
@d35 4
a38 2
OPTIONS=	ACTIWEB		"Include actiweb"		on \
		TUTORIAL	"Install XOTcl tutorial" 	off
d46 1
a46 1
.include <bsd.port.pre.mk>
d57 1
a57 1
.if defined(WITH_ACTIWEB)
d65 1
a65 1
.if defined(WITH_TUTORIAL)
d101 1
a101 1
.if defined(WITH_TUTORIAL)
d109 1
a109 1
.if !defined(NOPORTDOCS)
d119 1
a119 1
.include <bsd.port.post.mk>
@


1.27
log
@Transfer maintainer back to ports@@FreeBSD.org

Approved by:	maintainer (myself)
@
text
@d10 1
d57 1
a57 1
LIB_DEPENDS+=		gdbm.3:${PORTSDIR}/databases/gdbm
@


1.26
log
@- Add LICENSE information
- Make portlint happier
@
text
@d14 1
a14 1
MAINTAINER=	mm@@FreeBSD.org
@


1.25
log
@- Update to 1.6.6
- Add dependency on expat
@
text
@d17 3
d108 1
a108 1
.for FILE in COPYRIGHT ChangeLog README README.aol
@


1.24
log
@- Update to 1.6.5
@
text
@d9 1
a9 1
PORTVERSION=	1.6.5
d33 3
d78 3
a80 1
CONFIGURE_ENV+=		TCL_INCLUDEDIR=${TCL_INCLUDEDIR}
@


1.23
log
@- Mark MAKE_JOBS_UNSAFE

Reported by:	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	1.6.3
d100 1
a100 1
.for FILE in COPYRIGHT ChangeLog README README.aol doc/TODO
@


1.22
log
@- Update to 1.6.3
@
text
@d24 1
@


1.21
log
@- Change default Tcl/Tk version to 8.5
- Bump PORTVERSION of ports affected

Tested by:	pointyhat (pav)
@
text
@d9 1
a9 2
PORTVERSION=	1.6.2
PORTREVISION=	1
@


1.20
log
@- Update to 1.6.2
- Add home MASTER_SITE
@
text
@d10 1
@


1.19
log
@- Update to 1.6.1
@
text
@d9 1
a9 1
PORTVERSION=	1.6.1
d11 2
a12 1
MASTER_SITES=	SF
@


1.18
log
@- Move from versioned tcl/tk CATEGORIES to simple tcl and tk categories

With hat:	portmgr
@
text
@d9 1
a9 1
PORTVERSION=	1.6.0
@


1.17
log
@- Update to 1.6.0
- Change MASTER_SITES to SourceForge
@
text
@d10 1
a10 1
CATEGORIES?=	lang tcl84
@


1.16
log
@- Update to 1.5.6
@
text
@d9 1
a9 1
PORTVERSION=	1.5.6
d11 1
a11 1
MASTER_SITES=	http://media.wu-wien.ac.at/download/
@


1.15
log
@- Reactivate support for Tcl 8.5
@
text
@d9 1
a9 1
PORTVERSION=	1.5.5
@


1.14
log
@- Update to 1.5.5
- Add patch to properly detect private Tcl headers
@
text
@d16 1
a16 1
USE_TCL=		84
@


1.13
log
@- Fix PORTDOCS for AOLSERVER_XOTCL
@
text
@d9 1
a9 1
PORTVERSION=	1.5.4
d73 2
@


1.12
log
@- Update to 1.5.4
- Remove PORTDOCS from pkg-plist

Approved by:	garga (mentor, implicit)
@
text
@d27 1
a34 2
PORTDOCS=	*

@


1.11
log
@- move AOLSERVERBASE under PREFIX

Approved by:	garga (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	1.5.3
PORTREVISION=	5
d16 1
a16 1
USE_TCL=		84+
d34 2
d96 1
a96 1
	${MKDIR} ${DOCSDIR} ${DOCSDIR}/announces
a99 2
	@@cd ${WRKSRC}; ${FIND} doc/ -name 'Announce-*' -type f \
	-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DOCSDIR}/announces \;
@


1.10
log
@- fixed USE_LDCONFIG path
- bump PORTREVISION

Approved by:	garga (mentor)
@
text
@d32 1
a32 1
AOLSERVERBASE?=	${LOCALBASE}/aolserver
d41 1
a41 1
PLIST_FILES=		${AOLSERVERBASE:S/${LOCALBASE}\///}/modules/tcl/xotcl.tcl
d80 2
a81 1
	@@${INSTALL_DATA} ${WRKSRC}/generic/aol-xotcl.tcl ${AOLSERVERBASE}/modules/tcl/xotcl.tcl
@


1.9
log
@- updated maintainer e-mail address

Approved by:	garga (mentor)
@
text
@d10 1
a10 1
PORTREVISION=	4
d26 1
a26 1
USE_LDCONFIG=	${PREFIX}/xotcl${PORTVERSION}
@


1.8
log
@- updated maintainer e-mail address.
- switched to new bsd.tcl.mk infrastructure.

Approved by:	garga (mentor)
@
text
@d3 1
a3 1
# Whom:					Martin Matuska <martin@@matuska.org>
@


1.7
log
@- Fix build with aolserver-xotcl

PR:             110612
Submitted by:   Martin Matuska <martin@@matuska.org> (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	martin@@matuska.org
d17 2
a18 1
USE_TCL_VER?=	84
a19 5
.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85
IGNORE=	supported values for USE_TCL_VER are only 84 and 85
.endif

LIB_DEPENDS+=	tcl${USE_TCL_VER}-threads:${PORTSDIR}/lang/tcl${USE_TCL_VER}-thread
d69 2
a70 2
			--with-tcl=${LOCALBASE}/lib/tcl${USE_TCL_VER:S/8/8./}-threads \
			--with-tclinclude=${LOCALBASE}/include/tcl${USE_TCL_VER:S/8/8./}/generic/ \
d74 1
a74 1
	@@${REINPLACE_CMD} -e 's|$${TCL_MINOR_VERSION}$${TCL_DBGX}|$${TCL_MINOR_VERSION}$${TCL_DBGX}-threads|g' \
@


1.6
log
@- Added support for the new tcl threads structure

PR:             110403
Submitted by:   Martin Matuska <martin@@matuska.org> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	3
d43 1
a43 1
			${LOCALBASE}/lib/xotcl${PORTVERSION}/xotclConfig.sh:${PORTSDIR}/lang/xotcl-thread
@


1.5
log
@- Removed WITH_THREADS and WITH_AOLSERVER from OPTIONS
- Added support for threaded build (WITH_THREADS), prepared for xotcl-thread slave port
- Added support for tcl85, removed tcl83 from CATEGORIES
- Prepared for www/aolserver-xotcl slave module (AOLSERVER_XOTCL knob)

PR:             109675
Submitted by:   Martin Matuska <martin@@matuska.org> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	2
a12 1
PKGNAMESUFFIX?=	${THREADS_SUFFIX}
d23 1
a23 2
USE_TCL=	${USE_TCL_VER}
USE_TCL_BUILD=	${USE_TCL_VER}
a47 1
WITH_THREADS=		yes
a69 24
. if exists(${TCLSH})
_TCL_IS_THREADED!=	${ECHO_CMD}	'puts [array names tcl_platform	-exact threaded]' | ${TCLSH} || return 0
.  if !defined(TCL_WITH_THREADS) && !defined(WITH_THREADS) && !empty(_TCL_IS_THREADED)
TCL_WITH_THREADS=	yes
.	endif
.	endif

.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
.  if defined(_TCL_IS_THREADED) && empty(_TCL_IS_THREADED)
IGNORE=	Tcl with threads is required. Please install Tcl with WITH_THREADS defined or from lang/tcl${USE_TCL} port and try again
.  endif
CONFIGURE_ARGS+=	--enable-threads
.  if !defined(AOLSERVER_XOTCL)
THREADS_SUFFIX=		-threads
.  endif
USE_TCL=	${USE_TCL_VER}-thread
USE_TCL_BUILD=	${USE_TCL_VER}-thread
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
.  else
CONFIGURE_ARGS+=	--disable-threads
.endif

LATEST_LINK?=	xotcl${THREADS_SUFFIX}

d72 3
a74 2
			--with-tcl=${TCL_LIBDIR} \
			--with-tclinclude=${TCL_INCLUDEDIR}/generic/ \
d77 6
a82 8
.if !defined(AOLSERVER_XOTCL) # Install for aolserver module
pre-configure:
. if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
	@@${ECHO_CMD} "*************************************************"
	@@${ECHO_CMD} "NOTICE: XOTcl will be built with threads support."
	@@${ECHO_CMD} "*************************************************"
. endif
.else # installation for aolserver module
@


1.4
log
@- Update to 1.5.3

PR:		ports/106663
Submitted by:	Martin Matuska <martin@@matuska.org> (maintainer)
@
text
@d10 2
a11 2
PORTREVISION=	1
CATEGORIES=	lang tcl83 tcl84
d13 1
d18 9
a26 3
GNU_CONFIGURE=	yes
USE_TCL=	yes
USE_TCL_BUILD=	yes
a27 2
INSTALL_TARGET=	install
USE_LDCONFIG=	yes
d31 4
a35 2
		AOLSERVER	"AOL server module"		off \
		THREADS		"Force threaded build"		off \
d37 3
d41 1
a41 5
CONFIGURE_ARGS+=	--exec-prefix=${PREFIX} \
			--libdir=${PREFIX}/lib \
			--with-tcl=${TCL_LIBDIR} \
			--with-tclinclude=${TCL_INCLUDEDIR}/generic/ \
			--with-xotclsh
d43 9
a51 1
.include <bsd.port.pre.mk>
a60 9
.if defined(WITH_AOLSERVER)
BUILD_DEPENDS+=		${LOCALBASE}/aolserver/bin/init.tcl:${PORTSDIR}/www/aolserver
RUN_DEPENDS+=		${BUILD_DEPENDS}
PLIST_SUB+=		AOLSERVER=""
INSTALL_TARGET+=	install-aol
.else
PLIST_SUB+=		AOLSERVER="@@comment "
.endif

d67 4
a70 4
.if defined(WITH_THREADS)
TCL_THREADED!=	${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH}
.if empty(TCL_THREADED)
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.
d72 12
d85 8
d95 18
a112 3
INSTALL_TARGET+=	install-shells
.if !defined(NO_INSTALL_MANPAGES)
MAN1=			xotclsh.1
d115 1
d136 1
@


1.3
log
@- fix typo, ECHO_CMD is ECHO_CMD

PR:		ports/105908
Submitted by:	Martin Matuska <martin at matuska.org> (maintainer)
Pointyhat:	rafan
@
text
@d10 1
d21 1
a21 1
INSTALL_TARGET=	install-binaries install-libraries
d26 2
a27 1
OPTIONS=	AOLSERVER	"AOL server module"		off \
d39 8
d51 1
a51 1
INSTALL_TARGET=		install-aol
@


1.2
log
@- Update to 1.5.3
- Add THREADS option for threading support

PR:		ports/105867
Submitted by:	Martin Matuska <martin at matuska.org> (maintainer)
@
text
@d53 1
a53 1
TCL_THREADED!=	${ECHO_EMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH}
@


1.1
log
@- Add port for lang/xotcl

Extended Object Tcl (for short: XOTcl, pronounced exotickle) is an object-
oriented scripting language based on Tcl. It was originally designed for
providing language support for design patterns and provides novel constructs
such as filters or transitive mixin classes. The language is designed for
empowering rather than constraining system developers. The basic object model
is highly influenced by CLOS.

WWW: http://media.wu-wien.ac.at/

PR:		ports/103670
Submitted by:	Martin Matuska <martin at matuska.org>
Approved by:	sem (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.5.2
d26 1
d52 8
@

