aboutsummaryrefslogtreecommitdiffstats
path: root/comms/tqsllib/Makefile
blob: 7823692b374adc5e19ef6f949e9a31b3ff00277c (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
#
# $FreeBSD$
#

PORTNAME=   tqsllib
PORTVERSION=    2.2
PORTREVISION=   1
CATEGORIES= comms hamradio
MASTER_SITES=   SF/trustedqsl/tqsllib/V2.2/

MAINTAINER= db@FreeBSD.org
COMMENT=    Amateur Radio Station electronic trusted logbook libraries

LIB_DEPENDS=    expat:${PORTSDIR}/textproc/expat2

GNU_CONFIGURE=  YES
USE_LDCONFIG=   YES

CONFIGURE_ARGS+=    "CXXFLAGS=${CXXFLAGS} -fpermissive" --enable-docs=no

.include <bsd.port.pre.mk>

WITH_OPENSSL_HACK7= yes
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+=    --with-openssl=${OPENSSLBASE}

pre-install:
    (cd ${WRKSRC}; \
        make converter;make gen_crq; \
        make load_cert;make station_loc)

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/converter ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/gen_crq ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/load_cert ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/station_loc ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/tqsllib
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/tqsllib
    ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/tqsllib
.endif

.include <bsd.port.post.mk>