2013-04-23 17:15:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mochiweb
|
2015-05-09 15:46:09 +02:00
|
|
|
PORTVERSION= 2.12.2
|
2015-05-07 22:24:15 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2013-04-23 17:15:49 +02:00
|
|
|
CATEGORIES= www devel
|
|
|
|
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
|
|
COMMENT= Erlang library for building lightweight HTTP servers
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
|
2015-05-09 15:46:09 +02:00
|
|
|
BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2013-04-23 17:40:16 +02:00
|
|
|
|
2013-04-23 18:08:35 +02:00
|
|
|
CONFLICTS= mochiweb-basho-[0-9]*
|
|
|
|
|
2015-05-19 14:05:22 +02:00
|
|
|
USES= cpe
|
|
|
|
CPE_VENDOR= mochiweb_project
|
|
|
|
|
2013-04-23 17:32:15 +02:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
2013-04-23 17:15:49 +02:00
|
|
|
|
2013-04-23 17:32:15 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= mochi
|
2013-04-23 17:15:49 +02:00
|
|
|
|
2015-05-09 15:46:09 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2013-04-24 18:35:52 +02:00
|
|
|
|
2013-04-23 17:15:49 +02:00
|
|
|
do-install:
|
2015-05-09 15:46:09 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-29 22:27:00 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
for FILE in CHANGES.md README; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
|
2013-04-23 17:15:49 +02:00
|
|
|
done
|
2015-05-09 15:46:09 +02:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2013-10-29 22:27:00 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
|
2015-05-09 15:46:09 +02:00
|
|
|
.endif
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
|
2013-04-23 17:15:49 +02:00
|
|
|
|
2013-04-24 18:35:52 +02:00
|
|
|
.include <bsd.port.mk>
|