freebsd-ports/www/yaws/Makefile
Jimmy Olgeni 576a3643fb Remove symbolic link from yaws-1.96 to yaws.
It caused "rebar generate" invocations to fail when Yaws was included,
due to duplicate application directories with the same version.

Also, add devel to CATEGORIES.
2013-04-23 14:53:51 +00:00

74 lines
2.2 KiB
Makefile

# $FreeBSD$
PORTNAME= yaws
PORTVERSION= 1.96
PORTREVISION= 1
CATEGORIES= www devel
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
WRKSRC= ${WRKDIR}/yaws-${PORTVERSION}
MAN1= yaws.1
MAN5= yaws.conf.5 yaws_api.5 yaws_soap_lib.5
APPDIR= ${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION}
SUB_FILES= pkg-message
CONFIGURE_ARGS+=--prefix=${PREFIX} --localstatedir=/var
.include <bsd.port.pre.mk>
post-extract:
@${FIND} ${WRKSRC} -name .empty -delete
post-patch:
@${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' \
${WRKSRC}/man/yaws_api.5 ${WRKSRC}/man/yaws.conf.5 \
${WRKSRC}/README ${WRKSRC}/scripts/gen-yaws
@${REINPLACE_CMD} -e 's|!!VERSION!!|${PORTVERSION}|g' \
${WRKSRC}/scripts/gen-yaws
@${FIND} ${WRKSRC} \( -name \*.orig -or -name \*.bak \) -delete
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/bin/yaws ${PREFIX}/bin
@${MKDIR} ${ETCDIR}
@${INSTALL_DATA} ${FILESDIR}/yaws.conf.sample ${ETCDIR}
@${MKDIR} ${APPDIR}/ebin
@${MKDIR} ${APPDIR}/examples
@${MKDIR} ${APPDIR}/examples/ebin
@${MKDIR} ${APPDIR}/examples/src
@${MKDIR} ${APPDIR}/include
@${MKDIR} ${APPDIR}/priv
@${MKDIR} ${APPDIR}/priv/lib
@${MKDIR} ${APPDIR}/src
@${MKDIR} ${PREFIX}/www/yaws
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${APPDIR}/ebin
@${INSTALL_DATA} ${WRKSRC}/examples/ebin/* ${APPDIR}/examples/ebin
@${INSTALL_DATA} ${WRKSRC}/examples/src/* ${APPDIR}/examples/src
.for FILE in envelope.xsd mime.types soap.xsd wsdl.xsd soap-envelope.xsd wsdl11soap12.xsd xml.xsd
@${INSTALL_DATA} ${WRKSRC}/priv/${FILE} ${APPDIR}/priv
.endfor
@${INSTALL_PROGRAM} ${WRKSRC}/priv/epam ${APPDIR}/priv
@${INSTALL_LIB} ${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:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>