aboutsummaryrefslogtreecommitdiff
path: root/www/blastbeat/Makefile
blob: 96bdf84f8271b8d48b7430c6c8bf2d6ba17b7279 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=	blastbeat
PORTVERSION=	20121205
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	GH GHC

MAINTAINER=	vg@FreeBSD.org
COMMENT=	High-performance HTTP/HTTPS/SPDY proxy

LICENSE=	UNBIT
LICENSE_NAME=	UNBIT
LICENSE_FILE=	${WRKSRC}/LICENSE
LICENSE_PERMS=	auto-accept

LIB_DEPENDS=	ev:${PORTSDIR}/devel/libev \
		uuid:${PORTSDIR}/misc/e2fsprogs-libuuid \
		zmq:${PORTSDIR}/devel/zmq

USE_GMAKE=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	zloidemon
GH_COMMIT=	cdac9a9
GH_TAGNAME=	${GH_COMMIT}
PORTEXAMPLES=	*

CFLAGS+=	-I${LOCALBASE}/include \
		-L${LOCALBASE}/lib

PLIST_FILES=	bin/blastbeat \
		%%ETCDIR%%/blastbeat.ini.sample
PLIST_DIRSTRY=	%%ETCDIR%%

OPTIONS_DEFINE=	EXAMPLES

.include <bsd.port.options.mk>

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${ETCDIR} && \
		${INSTALL} ${WRKSRC}/${PORTNAME}.ini ${ETCDIR}/${PORTNAME}.ini.sample

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}
	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>