summaryrefslogtreecommitdiff
path: root/comms/trustedqsl/Makefile
blob: 4d9ea5dc79776b63a46ced83d7a847adc702785d (plain)
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
52
53
54
55
56
PORTNAME=	trustedqsl
DISTVERSION=	2.7.2
#PORTREVISION=	1
CATEGORIES=	comms hamradio
MASTER_SITES=	http://www.arrl.org/files/file/LoTW%20Instructions/ \
		LOCAL/shurd
DISTNAME=	tqsl-${PORTVERSION}

MAINTAINER=	hamradio@FreeBSD.org
COMMENT=	Amateur Radio Station electronic trusted logbook
WWW=		https://lotw.arrl.org/lotw-help/

LICENSE=	ARRL
LICENSE_NAME=	American Radio Relay League, Inc. All rights reserved.
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libexpat.so:textproc/expat2 \
		liblmdb.so:databases/lmdb

PKGMESSAGE=	${WRKDIR}/pkg-message

USES=		bdb:5+ cmake compiler:c++11-lib pkgconfig ssl
CMAKE_ARGS=	-DBDB_PREFIX=${LOCALBASE}
CMAKE_ARGS+=	-DCMAKE_INSTALL_MANDIR:PATH="share/man"
USE_WX=		3.2
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	GEN_CRQ LOAD_CERT STATION_LOC CONVERTER
GEN_CRQ_DESC=	Build gen_crq
LOAD_CERT_DESC=	Build load_cert
STATION_LOC_DESC=	Build station_loc
CONVERTER_DESC=	Build converter

GEN_CRQ_CMAKE_ON=	-DBUILD_GENCRQ=ON
LOAD_CERT_CMAKE_ON=	-DBUILD_LOADCERT=ON
STATION_LOC_CMAKE_ON=	-DBUILD_STATIONLOC=ON
CONVERTER_CMAKE_ON=	-DBUILD_CONVERTER=ON

OPTIONS_SUB=	yes

post-install-GEN_CRQ-on:
	${INSTALL_PROGRAM} ${WRKSRC}/src/gen_crq ${STAGEDIR}${PREFIX}/bin
post-install-LOAD_CERT-on:
	${INSTALL_PROGRAM} ${WRKSRC}/src/load_cert ${STAGEDIR}${PREFIX}/bin
post-install-STATION_LOC-on:
	${INSTALL_PROGRAM} ${WRKSRC}/src/station_loc ${STAGEDIR}${PREFIX}/bin
post-install-CONVERTER-on:
	${INSTALL_PROGRAM} ${WRKSRC}/src/converter ${STAGEDIR}${PREFIX}/bin

post-patch:
	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
		${FILESDIR}/pkg-message > ${WRKDIR}/pkg-message

.include <bsd.port.mk>