aboutsummaryrefslogtreecommitdiffstats
path: root/comms/wsjtx/Makefile
blob: 58b7d7e49a5c19fab0690b4ec2d4bff59cad11a1 (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
# $FreeBSD$

PORTNAME=   wsjtx
PORTVERSION=    1.7.0
CATEGORIES= comms hamradio
MASTER_SITES=   SF/wsjt/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DISTFILES=  ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= hamradio@FreeBSD.org
COMMENT=    Weak signal ham radio communication package

LICENSE=    GPLv3

BUILD_DEPENDS=  asciidoctor:textproc/rubygem-asciidoctor \
        a2x:textproc/asciidoc \
        ${LOCALBASE}/share/xsl/docbook:textproc/docbook-xsl
LIB_DEPENDS=    libfftw3.so:math/fftw3 \
        libfftw3f.so:math/fftw3-float \
        libhamlib.so:comms/hamlib \
        libxslt.so:textproc/libxslt \
        libomp.so:devel/openmp

MAKE_JOBS_UNSAFE=   yes
USE_GL=     yes
USE_QT5=    gui buildtools qmake_build widgets multimedia concurrent serialport
USES=       cmake compiler:c++11-lib dos2unix fortran pkgconfig tar:tgz
CMAKE_ARGS+=    -DPORT_BUILDING::STRING="ON" \
        -DCMAKE_PREFIX_PATH+=${LOCALBASE}/wsjtx/lib \
        -DLOCALBASE::STRING="${LOCALBASE}"
WRKSRC=     ${WRKDIR}/${PORTNAME}

#
# This nonsense is because wsjtx is shipped with a copy of hamlib
# as well as wsjtx
#
do-extract:
    ${TAR} xf ${DISTDIR}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} -C${WRKDIR}
    ${TAR} xf ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/wsjtx.tgz -C${WRKDIR}

.include <bsd.port.mk>