freebsd-ports/www/yaws/Makefile

80 lines
2.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: yaws
# Date Created: 25 Jan 2004
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= yaws
PORTVERSION= 1.91
CATEGORIES= www
MASTER_SITES= http://yaws.hyber.org/download/
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A webserver for dynamic content written in Erlang
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
HAS_CONFIGURE= yes
USE_GMAKE= yes
2006-02-11 15:43:38 -05:00
WRKSRC= ${WRKDIR}/yaws-${PORTVERSION}
ONLY_FOR_ARCHS= i386 amd64 sparc64
MAN1= yaws.1
2006-12-21 05:27:03 -05:00
MAN5= yaws.conf.5 yaws_api.5 yaws_soap_lib.5
OPTIONS= SENDFILE "Use native sendfile(2) interface" on
APPDIR=${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION}
SUB_FILES= pkg-message
2004-02-26 04:33:38 -05:00
.include <bsd.port.pre.mk>
.if defined(WITH_SENDFILE)
PLIST_SUB+= WITH_SENDFILE=""
.else
2009-02-13 06:15:51 -05:00
CONFIGURE_ARGS+=--disable-sendfile
PLIST_SUB+= WITH_SENDFILE="@comment "
.endif
post-extract:
@${FIND} ${WRKSRC} -name .empty | ${XARGS} ${RM}
post-patch:
@${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' \
${WRKSRC}/man/yaws_api.5 ${WRKSRC}/man/yaws.conf.5 \
${WRKSRC}/README
2004-01-25 16:47:51 -05:00
@${FIND} ${WRKSRC} -name \*.orig -or -name \*.bak | ${XARGS} ${RM}
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/bin/yaws ${PREFIX}/bin
@${MKDIR} ${ETCDIR}
@${INSTALL_DATA} ${FILESDIR}/yaws.conf.sample ${ETCDIR}
@${MKDIR} ${APPDIR}/ebin
@${MKDIR} ${APPDIR}/include
@${MKDIR} ${APPDIR}/priv
2007-12-23 17:03:55 -05:00
@${MKDIR} ${APPDIR}/priv/lib
@${MKDIR} ${APPDIR}/src
@${MKDIR} ${PREFIX}/www/yaws
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${APPDIR}/ebin
2007-12-23 17:03:55 -05:00
.for FILE in envelope.xsd mime.types soap.xsd wsdl.xsd epam
@${INSTALL_DATA} ${WRKSRC}/priv/${FILE} ${APPDIR}/priv
.endfor
@${INSTALL_DATA} ${WRKSRC}/priv/lib/* ${APPDIR}/priv/lib
@${INSTALL_DATA} ${WRKSRC}/include/* ${APPDIR}/include
@${INSTALL_DATA} ${WRKSRC}/src/*.?rl ${APPDIR}/src
@cd ${WRKSRC}/www && (${FIND} * | ${CPIO} -pu ${WWWDIR})
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}
@${INSTALL_MAN} ${WRKSRC}/man/*.1 ${MANPREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/man/*.5 ${MANPREFIX}/man/man5
post-install:
@${LN} -sf ${PORTNAME}-${PORTVERSION} ${PREFIX}/lib/erlang/lib/${PORTNAME}
@${CAT} ${PKGMESSAGE}
2004-02-26 04:33:38 -05:00
.include <bsd.port.post.mk>