summaryrefslogtreecommitdiff
path: root/net/deviceatlas-enterprise-c/Makefile
blob: b4d83d8b8b4e0d3954ce7eb34fb7facf38db7aec (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
# Created by: David Carlier

PORTNAME=	deviceatlas-enterprise-c
PORTVERSION=	2.3.4
CATEGORIES=	net devel
MASTER_SITES=	#

MAINTAINER=	dcarlier@afilias.info
COMMENT=	DeviceAtlas Device Detection C API

LICENSE=	deviceatlas-enterprise-c-license
LICENSE_NAME=	DeviceAtlas C Enterprise API License
LICENSE_TEXT=	The free of charge offering has a restricted use license, for own usage only; \
		no redistribution or derivative works are permitted. \
		Contact us (http://www.deviceatlas.com/contact-us) to upgrade or to enable usage as part of a service offering.
LICENSE_PERMS=	none

LIB_DEPENDS=	libpcre.so:devel/pcre

USES=		cmake zip
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DDOCSDIR=${DOCSDIR} -DEXAMPLESDIR=${EXAMPLESDIR}
PLIST_SUB=	PORTVERSION=${PORTVERSION}

REGISTRATION_URL=	https://deviceatlas.com/deviceatlas-haproxy-module

OPTIONS_DEFINE=	DOCS EXAMPLES

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE?=	you must manually fetch the DeviceAtlas Device Detection C API from ${REGISTRATION_URL} and place it in ${DISTDIR} and then run make again
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libda.so \
		${STAGEDIR}${PREFIX}/lib/libci.so

.include <bsd.port.post.mk>