2013-05-13 09:14:15 +00:00
|
|
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
2006-10-01 19:17:49 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xotcl
|
2013-05-13 09:14:15 +00:00
|
|
|
PORTVERSION= 1.6.7
|
2008-04-09 13:42:26 +00:00
|
|
|
CATEGORIES?= lang tcl
|
2008-11-03 13:49:25 +00:00
|
|
|
MASTER_SITES= SF \
|
|
|
|
http://media.wu-wien.ac.at/download/
|
2006-10-01 19:17:49 +00:00
|
|
|
|
2011-08-09 15:41:30 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-10-01 19:17:49 +00:00
|
|
|
COMMENT= Object-oriented scripting language based on Tcl
|
|
|
|
|
2011-03-23 11:37:49 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
|
2013-11-11 10:58:46 +00:00
|
|
|
USES+= gmake tcl:84,85
|
2007-03-01 10:10:39 +00:00
|
|
|
|
2006-12-13 10:16:03 +00:00
|
|
|
INSTALL_TARGET= install
|
2007-03-01 10:10:39 +00:00
|
|
|
ALL_TARGET= all test-nohttp
|
2006-10-01 19:17:49 +00:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
2009-11-18 22:39:55 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-10-01 19:17:49 +00:00
|
|
|
|
2007-03-01 10:10:39 +00:00
|
|
|
.if !defined(AOLSERVER_XOTCL)
|
2007-04-12 15:31:04 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/xotcl${PORTVERSION}
|
2007-03-01 10:10:39 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-08-18 09:23:11 +00:00
|
|
|
PORTDOCS= *
|
2007-03-01 10:10:39 +00:00
|
|
|
|
2012-06-13 05:13:04 +00:00
|
|
|
OPTIONS_DEFINE= ACTIWEB TUTORIAL DOCS
|
|
|
|
OPTIONS_DEFAULT= ACTIWEB
|
|
|
|
ACTIWEB_DESC= Include actiweb
|
|
|
|
TUTORIAL_DESC= Install XOTcl tutorial
|
2010-05-11 09:44:49 +00:00
|
|
|
|
2013-11-11 10:58:46 +00:00
|
|
|
LIB_DEPENDS+= libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
CONFIGURE_ARGS+=--with-expat=${LOCALBASE}/include,${LOCALBASE}/lib
|
2007-03-01 10:10:39 +00:00
|
|
|
.else
|
2007-07-02 22:44:13 +00:00
|
|
|
AOLSERVERBASE?= aolserver
|
2007-03-01 10:10:39 +00:00
|
|
|
.endif
|
2006-10-01 19:17:49 +00:00
|
|
|
|
2013-09-20 19:53:09 +00:00
|
|
|
NO_STAGE= yes
|
2012-06-13 05:13:04 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2006-10-01 19:17:49 +00:00
|
|
|
|
2007-03-01 10:10:39 +00:00
|
|
|
.if defined(AOLSERVER_XOTCL)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/aolserver/bin/init.tcl:${PORTSDIR}/www/aolserver \
|
2007-03-21 13:21:42 +00:00
|
|
|
${LOCALBASE}/lib/xotcl${PORTVERSION}/xotclConfig.sh:${PORTSDIR}/lang/xotcl
|
2007-03-01 10:10:39 +00:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist.aolserver
|
2007-07-02 22:44:13 +00:00
|
|
|
PLIST_FILES= ${AOLSERVERBASE}/modules/tcl/xotcl.tcl
|
2007-03-01 10:10:39 +00:00
|
|
|
LATEST_LINK= aolserver-xotcl
|
|
|
|
NO_BUILD= yes
|
|
|
|
.endif
|
|
|
|
|
2012-06-13 05:13:04 +00:00
|
|
|
.if ${PORT_OPTIONS:MACTIWEB}
|
2006-12-13 10:16:03 +00:00
|
|
|
CONFIGURE_ARGS+= --with-actiweb --with-gdbm=${LOCALBASE}/include,${LOCALBASE}/lib
|
2013-11-11 10:58:46 +00:00
|
|
|
LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm
|
2006-12-13 10:16:03 +00:00
|
|
|
PLIST_SUB+= ACTIWEB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ACTIWEB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-13 05:13:04 +00:00
|
|
|
.if ${PORT_OPTIONS:MTUTORIAL}
|
2006-10-01 19:17:49 +00:00
|
|
|
PLIST_SUB+= TUTORIAL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TUTORIAL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-03-01 10:10:39 +00:00
|
|
|
INSTALL_TARGET+= install-shells
|
|
|
|
|
|
|
|
.if !defined(AOLSERVER_XOTCL) && !defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN1= xotclsh.1
|
2006-11-27 02:30:32 +00:00
|
|
|
.endif
|
2007-03-01 10:10:39 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \
|
|
|
|
--libdir=${PREFIX}/lib \
|
2007-03-20 11:39:16 +00:00
|
|
|
--enable-threads \
|
2007-04-05 12:37:59 +00:00
|
|
|
--with-tcl=${TCL_LIBDIR} \
|
|
|
|
--with-tclinclude=${TCL_INCLUDEDIR}/generic/ \
|
2007-03-01 10:10:39 +00:00
|
|
|
--with-xotclsh
|
|
|
|
|
2010-05-11 09:44:49 +00:00
|
|
|
CONFIGURE_ENV+= TCL_INCLUDEDIR="${TCL_INCLUDEDIR}" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2007-09-22 11:42:17 +00:00
|
|
|
|
2007-03-20 11:39:16 +00:00
|
|
|
post-patch:
|
2007-04-05 12:37:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|TCLSH_PROG=".*"|TCLSH_PROG="${TCLSH}"|g' \
|
2007-03-20 11:39:16 +00:00
|
|
|
${WRKSRC}/configure
|
|
|
|
|
|
|
|
.if defined(AOLSERVER_XOTCL) # Install for aolserver module
|
|
|
|
|
2007-03-01 10:10:39 +00:00
|
|
|
do-install:
|
2007-07-02 22:44:13 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/generic/aol-xotcl.tcl \
|
|
|
|
${PREFIX}/${AOLSERVERBASE}/modules/tcl/xotcl.tcl
|
2006-10-01 19:17:49 +00:00
|
|
|
.endif
|
|
|
|
|
2007-03-01 10:10:39 +00:00
|
|
|
.if !defined(AOLSERVER_XOTCL) # Aolserver module has no post-install
|
2006-10-01 19:17:49 +00:00
|
|
|
post-install:
|
2012-06-13 05:13:04 +00:00
|
|
|
.if ${PORT_OPTIONS:MTUTORIAL}
|
2006-10-01 19:17:49 +00:00
|
|
|
${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
|
2012-06-13 05:13:04 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-08-16 08:57:03 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2011-03-23 11:37:49 +00:00
|
|
|
.for FILE in ChangeLog README README.aol
|
2006-10-01 19:17:49 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/xotclsh.1 ${PREFIX}/man/man1/
|
|
|
|
.endif
|
2007-03-01 10:10:39 +00:00
|
|
|
.endif
|
2012-06-13 05:13:04 +00:00
|
|
|
.include <bsd.port.mk>
|