head	1.22;
access;
symbols
	RELEASE_8_3_0:1.20
	RELEASE_9_0_0:1.19
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.14
	RELEASE_8_1_0:1.12
	RELEASE_7_3_0:1.12
	RELEASE_8_0_0:1.10
	RELEASE_7_2_0:1.9
	RELEASE_7_1_0:1.8
	RELEASE_6_4_0:1.8
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.3;
locks; strict;
comment	@# @;


1.22
date	2012.11.17.06.03.11;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.20;

1.20
date	2012.01.01.16.47.41;	author ohauer;	state Exp;
branches;
next	1.19;

1.19
date	2011.09.23.22.26.07;	author amdmi3;	state Exp;
branches;
next	1.18;

1.18
date	2011.08.20.17.27.52;	author ohauer;	state Exp;
branches;
next	1.17;

1.17
date	2011.02.22.04.18.39;	author mi;	state Exp;
branches;
next	1.16;

1.16
date	2011.02.21.23.45.16;	author ohauer;	state Exp;
branches;
next	1.15;

1.15
date	2010.12.04.07.34.01;	author ade;	state Exp;
branches;
next	1.14;

1.14
date	2010.10.16.11.52.44;	author ade;	state Exp;
branches;
next	1.13;

1.13
date	2010.09.15.18.35.21;	author ade;	state Exp;
branches;
next	1.12;

1.12
date	2010.02.25.03.42.07;	author mi;	state Exp;
branches;
next	1.11;

1.11
date	2010.02.25.03.38.57;	author mi;	state Exp;
branches;
next	1.10;

1.10
date	2009.06.24.04.03.08;	author pgollucci;	state Exp;
branches;
next	1.9;

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

1.8
date	2008.08.20.00.57.31;	author ade;	state Exp;
branches;
next	1.7;

1.7
date	2008.04.21.03.59.03;	author mi;	state Exp;
branches;
next	1.6;

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

1.5
date	2008.04.09.13.42.21;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2007.09.30.04.47.34;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2007.04.02.22.56.14;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2007.02.13.06.53.06;	author mi;	state Exp;
branches;
next	1.1;

1.1
date	2007.02.13.06.46.59;	author mi;	state Exp;
branches;
next	;


desc
@@


1.22
log
@Switch exporter over
@
text
@# New ports collection makefile for:	websh
# Date created:				January 31, 2007
# Whom:					Mikhail Teterin <mi@@aldan.algebra.com>
#
# $FreeBSD: head/www/websh/Makefile 302724 2012-08-18 14:29:08Z ohauer $
#

PORTNAME=	websh
PORTVERSION=	3.6.0b5
PORTREVISION=	2
CATEGORIES=	www tcl
MASTER_SITES=	${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR=tcl/${PORTNAME}/source
EXTRACT_SUFX=	-src.tar.gz

MAINTAINER=	mi@@aldan.algebra.com
COMMENT=	Embeds a TCL8 interpreter in the Apache server

MAKE_JOBS_UNSAFE=	yes

TCL_DVER=	${TCL_VER:S/.//}

USE_TCL=	84+
USE_AUTOTOOLS=	autoconf
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/unix
CONFIGURE_ARGS+=--with-tclinclude=${TCL_INCLUDEDIR} \
		--with-tcl=${TCL_LIBDIR}
USE_GMAKE=	yes
USE_LDCONFIG=	yes
SUB_FILES=	httpd.conf pkgIndex.tcl pkg-message
SUB_LIST+=	TCL_DVER=${TCL_DVER} WS_VER=${PORTVERSION}
SUB_LIST+=	APACHEETCDIR=${APACHEETCDIR} APACHEMODDIR=${APACHEMODDIR}
PLIST_SUB+=	TCL_DVER=${TCL_DVER}

USE_APACHE=	22+
CONFIGURE_ARGS+=--with-httpdinclude=`apxs -q includedir`

CPPFLAGS+=	-I ${LOCALBASE}/include/apr-1
.if !defined(NO_WERROR) && ${CC} == "cc" || ${CC:T:Mgcc*} != ""
CPPFLAGS+=	-Wall -Werror
.endif

post-patch:
	${REINPLACE_CMD} -e 's,/usr/local/websh,${PREFIX},' \
		${WRKSRC:H:H}/doc/mod_websh/conf/websh.conf
	for p in ${WRKSRC:H:H}/doc/mod_websh/htdocs/*.html ; do	\
		${SED} -e 's,\.html,.whtml,g' < $$p >	\
			`${DIRNAME} $$p`/`${BASENAME} $$p .html`.whtml;	\
	done
	${REINPLACE_CMD} -e 's,\.html,.whtml,g' ${WRKSRC:H:H}/doc/mod_websh/htdocs/*.ws3

post-configure:
	# Remove the "STUBS" and the PACKAGE_* defines, which may conflict
	# with Apache's definitions:
	${REINPLACE_CMD} -e 's,tclstub,tcl,'	\
		-e 's,-DPACKAGE_[^=]*=."[^"]*",,g' ${WRKSRC}/Makefile

post-build test:
	${SETENV} LANG=C ${GMAKE} -C ${WRKSRC} test | ${AWK} '\
		/Failed/ && $$NF {failed=1}	\
		END {exit failed}	\
		{print}'

do-install:
	${MKDIR} ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC:H:H}/doc/mod_websh/conf/*.ws3	\
		${WRKDIR}/pkgIndex.tcl ${PREFIX}/lib/${PORTNAME}/
	${INSTALL_DATA} ${WRKSRC:H:H}/doc/mod_websh/conf/websh.conf	\
		${PREFIX}/etc/websh.conf.dist
	${INSTALL_DATA} ${WRKSRC}/mod_websh${PORTVERSION}.so \
		${PREFIX}/${APACHEMODDIR}/mod_websh.so
	${INSTALL_DATA} ${WRKSRC}/libwebsh${TCL_DVER}.so.1 ${PREFIX}/lib
	${LN} -sf ${PREFIX}/lib/libwebsh${TCL_DVER}.so.1 \
		${PREFIX}/lib/libwebsh${TCL_DVER}.so
.if !defined(NOPORTDOCS)
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC:H:H}/doc/mod_websh/htdocs/*.ws3	\
		${WRKSRC:H:H}/doc/mod_websh/htdocs/*.whtml		\
		${WRKDIR}/httpd.conf ${EXAMPLESDIR}/
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC:H:H}/doc/html/* ${DOCSDIR}
.endif

post-install:
	@@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/mod_${MODULENAME}.so"
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.21
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.20
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d35 1
a35 1
USE_APACHE=	20+
@


1.19
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d35 1
a35 1
USE_APACHE=	13+
@


1.18
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d88 1
a88 5
.include <bsd.port.pre.mk>

CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"

.include <bsd.port.post.mk>
@


1.17
log
@The PORTREVISION bump was not warranted -- the pre-built package was not
affected by the ohauer's change, which only affected the post-install
target.
@
text
@d10 1
a10 1
PORTREVISION=	1
d35 1
a35 1
USE_APACHE=	1.3+
@


1.16
log
@ - fix pkg-plist if installed from port (leftover in httpd.conf)
 - remove MD5 from distfile

 Reference:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147009
 http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/a.8-exp.20110129080700/ap22-mod_log_sql-1.101.log

PR:		ports/154752
Submitted by:	myself
Approved by:	maintainer timeout
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.15
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	1
d85 1
@


1.14
log
@Punt autoconf267->autoconf268
@
text
@d24 1
a24 1
USE_AUTOTOOLS=	autoconf:268
@


1.13
log
@Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
@
text
@d24 1
a24 1
USE_AUTOTOOLS=	autoconf:267
@


1.12
log
@Clean-up the atavisms accidentally left out by the prior commit. The
OPTIONS no longer had an effect.

Feature safe: yes
@
text
@d10 1
d24 1
a24 1
USE_AUTOTOOLS=	autoconf:262
@


1.11
log
@Upgrade from 3.6.b4 to 3.6.b5. The author says, a number of Tcl-8.5 (and
8.6) compatibility issues are solved.

Feature safe: yes
@
text
@a19 3
OPTIONS=	WSMDEBUG "memory(n) and checkmem(n) commands in web-scripts" on
OPTIONS+=	WSSTATIC "Link the objects into the module statically" off

a87 8
.if defined(WITH_WSMDEBUG)
CFLAGS+=	-DTCL_MEM_DEBUG
.endif

.if defined(WITHOUT_WSSTATIC)
EXTRA_PATCHES=	${FILESDIR}/shared-patch
.endif

@


1.10
log
@- Mark MAKE_JOBS_UNSAFE=yes

PR:             ports/135552, ports/135553, ports/135538
Appproved by:   linimon (via irc)
Submitted by:   myself (pgollucci@@)
@
text
@d9 1
a9 2
PORTVERSION=	3.6.0b4
PORTREVISION=	2
d25 1
a25 1
USE_TCL=	84
d33 1
a33 1
SUB_LIST+=	TCL_DVER=${TCL_DVER} WS_VER=${PORTVERSION:R}
d35 1
@


1.9
log
@- Change USE_TCL from YES to 84 due to planned default tcl change
@
text
@d19 2
@


1.8
log
@Conversion from (now defunct) autoconf-2.61 to autoconf-2.62

Tested by:	exp build run (erwin)
@
text
@d24 1
a24 1
USE_TCL=	yes
@


1.7
log
@Fix up the makefile post-configure to avoid useless
PACKAGE_-definitions, which may conflict with the
(equally useless) Apache ones.

Insist on TCL-8.4 -- using 8.5 causes self-test failures
including seg-faults... These are being investigated.
@
text
@d25 1
a25 1
USE_AUTOTOOLS=	autoconf:261
@


1.6
log
@- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
@
text
@d10 1
a10 1
PORTREVISION=	1
d53 4
a56 2
	# "STUBS" are for wimps:
	${REINPLACE_CMD} -e 's,tclstub,tcl,' ${WRKSRC}/Makefile
@


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

With hat:	portmgr
@
text
@d30 1
a30 1
INSTALLS_SHLIB=	yes
@


1.4
log
@Switch autoconf dependencies from 2.53 or 2.59 to 2.61.

PR:		ports/116639
Submitted by:	aDe
@
text
@d11 1
a11 1
CATEGORIES=	www tcl84
@


1.3
log
@- Convert existing ports to a new bsd.tcl.mk order

PR:		ports/109097
Submitted by:	Martin Matuska <martin@@matuska.org>
Tested on:	pointyhat exp-run
@
text
@d10 1
d25 1
a25 1
USE_AUTOTOOLS=	autoconf:259
@


1.2
log
@Grrr... Fix the stuff that stayed from the mod_dtcl port, which I
used as a template...
@
text
@a17 2
LIB_DEPENDS=	tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER}

@


1.1
log
@Webshell -- a TCL module for Apache. Appears to be the most advanced
and the best supported such module of the several listed at

	http://tcl.apache.org/

Works with both Apache-1.3.x and 2.x and has an interesting development
paradigm.
@
text
@d1 1
a1 1
# New ports collection makefile for:	mod_dtcl
@

