1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/www/mochiweb/Makefile

44 lines
1.3 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= mochiweb
2015-01-04 13:21:30 +00:00
PORTVERSION= 2.10.0
CATEGORIES= www devel
MASTER_SITES= GH
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Erlang library for building lightweight HTTP servers
LICENSE= MIT
2013-04-23 15:40:16 +00:00
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
CONFLICTS= mochiweb-basho-[0-9]*
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= mochi
GH_PROJECT= mochiweb
2015-01-04 13:21:30 +00:00
GH_COMMIT= 8b6fab5
GH_TAGNAME= v${PORTVERSION}
PORTDOCS= *
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
for FILE in CHANGES.md README; do \
${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
done
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/ebin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/include
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/include
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/src
.include <bsd.port.mk>