2013-09-21 01:36:50 +02:00
|
|
|
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
|
2007-02-13 07:46:59 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= websh
|
2010-02-25 04:38:57 +01:00
|
|
|
PORTVERSION= 3.6.0b5
|
2013-05-25 21:48:21 +02:00
|
|
|
PORTREVISION= 3
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= www tcl
|
2007-02-13 07:46:59 +01:00
|
|
|
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
|
|
|
|
|
2009-06-24 06:03:08 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2007-02-13 07:46:59 +01:00
|
|
|
TCL_DVER= ${TCL_VER:S/.//}
|
|
|
|
|
2010-02-25 04:38:57 +01:00
|
|
|
USE_TCL= 84+
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2007-02-13 07:46:59 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/unix
|
|
|
|
CONFIGURE_ARGS+=--with-tclinclude=${TCL_INCLUDEDIR} \
|
|
|
|
--with-tcl=${TCL_LIBDIR}
|
|
|
|
USE_GMAKE= yes
|
- 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)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-02-13 07:46:59 +01:00
|
|
|
SUB_FILES= httpd.conf pkgIndex.tcl pkg-message
|
2010-02-25 04:38:57 +01:00
|
|
|
SUB_LIST+= TCL_DVER=${TCL_DVER} WS_VER=${PORTVERSION}
|
2007-02-13 07:46:59 +01:00
|
|
|
SUB_LIST+= APACHEETCDIR=${APACHEETCDIR} APACHEMODDIR=${APACHEMODDIR}
|
2010-02-25 04:38:57 +01:00
|
|
|
PLIST_SUB+= TCL_DVER=${TCL_DVER}
|
2007-02-13 07:46:59 +01:00
|
|
|
|
2012-08-18 16:29:08 +02:00
|
|
|
USE_APACHE= 22+
|
2007-02-13 07:46:59 +01:00
|
|
|
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
|
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2007-02-13 07:46:59 +01:00
|
|
|
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
|
2013-08-04 00:28:37 +02:00
|
|
|
${REINPLACE_CMD} -e 's|__declspec(dllexport)|DLLEXPORT|' \
|
|
|
|
${WRKSRC}/../generic/*.[ch]
|
2007-02-13 07:46:59 +01:00
|
|
|
|
|
|
|
post-configure:
|
2008-04-21 05:59:03 +02:00
|
|
|
# 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
|
2007-02-13 07:46:59 +01:00
|
|
|
|
|
|
|
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:
|
2011-02-22 00:45:16 +01:00
|
|
|
@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/mod_${MODULENAME}.so"
|
2007-02-13 07:46:59 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
.include <bsd.port.mk>
|