1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/www/mongrel2/Makefile
Steven Kreuzer 45b3ee8d1a Install example files when EXAMPLES is defined
Replace USE_GMAKE with USES=gmake
Add STAGEDIR Support
Convert to new LIB_DEPENDS syntax
Define LICENSE
2014-01-13 17:15:51 +00:00

54 lines
1.0 KiB
Makefile

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= mongrel2
PORTVERSION= 1.7.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://mongrel2.org/static/downloads/
MAINTAINER= vg@FreeBSD.org
COMMENT= Is an application, language, and network arch
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libzmq.so:${PORTSDIR}/net/libzmq2 \
libsqlite3.so:${PORTSDIR}/databases/sqlite3
USES= gmake
USE_BZIP2= yes
MAKE_FLAGS= freebsd
EXAMPLES_LIST= bbs \
chat \
configs \
http_0mq \
kegogi \
mp3stream \
procer \
python \
tornado \
zcov
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/Makefile
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
.for examples in ${EXAMPLES_LIST}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${examples} ${STAGEDIR}/${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.mk>