1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/www/tclhttpd/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

54 lines
1.5 KiB
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= tclhttpd
PORTVERSION= 3.5.1
PORTREVISION= 3
CATEGORIES= www tcl
MASTER_SITES= TCLTK/httpd
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Http-server implemented in TCL
RUN_DEPENDS= dtplite:${PORTSDIR}/devel/tcllib
USE_RC_SUBR= tclhttpd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl="${TCL_LIBDIR}" \
--with-tclinclude="${TCL_INCLUDEDIR}" \
--exec-prefix=${PREFIX}
USES= tcl
.include <bsd.port.pre.mk>
SHLIB_NAME!= ${MAKE} -f "${FILESDIR}/Makefile.lib" -V SHLIB_NAME
PLIST_SUB+= PORTVERSION=${PORTVERSION} \
SHLIB_NAME=${SHLIB_NAME}
MAKE_ENV+= TCLSH_PROG=${TCLSH} FILESDIR="${FILESDIR}" TCL_DVER=${TCL_VER} \
PREFIX=${STAGEDIR}${PREFIX}
SCRIPTS_ENV+= TCL_DVER=${TCL_VER}
SUB_LIST+= TCL_DVER=${TCL_VER}
do-build:
${MAKE_ENV} ${MAKE} -C ${WRKSRC} ${MAKE_ARGS} \
FILESDIR="${FILESDIR}" \
${_MAKE_JOBS} -f "${FILESDIR}/Makefile.lib"
pre-su-install:
${MKDIR} ${STAGEDIR}${PREFIX}/tclhttpd/custom
post-install:
${INSTALL_DATA} ${WRKSRC}/${SHLIB_NAME} \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
${WRKSRC}/bin/httpdthread.tcl ${STAGEDIR}${PREFIX}/bin/
${SED} 's%@VER@%${PORTVERSION}%g' < ${WRKSRC}/bin/tclhttpd.rc \
> ${STAGEDIR}${PREFIX}/etc/tclhttpd.rc.default
${SED} 's%@LIB@%${SHLIB_NAME}%g' < \
${FILESDIR}/pkgIndex.tcl >> \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
.include <bsd.port.post.mk>