aboutsummaryrefslogtreecommitdiff
path: root/devel/libunit/Makefile
blob: 917256cdcc4059485b43778aa85be0ff696b3b6d (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
# Created by: Sergey A. Osokin <osa@FreeBSD.org>

PORTNAME=	libunit
PORTVERSION=	${UNIT_VERSION}
MASTER_SITES?=	https://unit.nginx.org/download/
DISTNAME=	unit-${PORTVERSION}
DISTINFO_FILE=	${.CURDIR}/../../www/unit/distinfo

MAINTAINER=	osa@FreeBSD.org
COMMENT=	Development kit for dynamic web application server

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

CATEGORIES=	devel www

USES+=		compiler:c11 cpe

CPE_VENDOR=	nginx
CPE_PRODUCT=	unit

HAS_CONFIGURE=	yes

CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--ld-opt="-L${LOCALBASE}/lib" \
		--no-regex

PLIST_FILES+=	include/nxt_auto_config.h \
		include/nxt_unit_field.h \
		include/nxt_unit_request.h \
		include/nxt_unit_response.h \
		include/nxt_unit_sptr.h \
		include/nxt_unit_typedefs.h \
		include/nxt_unit_websocket.h \
		include/nxt_unit.h \
		include/nxt_version.h \
		include/nxt_websocket_header.h \
		lib/libunit.a

do-build:
	@cd ${WRKSRC} && ${MAKE} build/libunit.a

do-install:
	${MAKE} -C ${WRKSRC} libunit-install DESTDIR=${STAGEDIR}

.include "../../www/unit/version.mk"
.include <bsd.port.mk>