aboutsummaryrefslogtreecommitdiffstats
path: root/comms/wspr/Makefile
blob: 1a95f72598677827bc9f4af533f0783c58e6b4fd (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:    wspr
# Date created:             30 April 2009
# Whom:                 Diane Bruce <db@db.net>
#
# $FreeBSD$
#

PORTNAME=   wspr
PORTVERSION=    2.00
PORTREVISION=   3
CATEGORIES= comms hamradio
MASTER_SITES=   http://www.physics.princeton.edu/pulsar/K1JT/
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db
DISTNAME=   wspr-${PORTVERSION}.r1714

MAINTAINER= db@FreeBSD.org
COMMENT=    Weak signal for HF ham radio communication package

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter/ \
        ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
LIB_DEPENDS=    hamlib:${PORTSDIR}/comms/hamlib \
        fftw3f:${PORTSDIR}/math/fftw3-float \
        samplerate:${PORTSDIR}/audio/libsamplerate
BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/scipy:${PORTSDIR}/science/py-scipy \
        ${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2 \
        ${PYNUMPY}

BROKEN=     does not build

ALL_TARGET= build
EXTRACT_SUFX=   .tgz
USE_FORTRAN=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-gfortran --prefix=${LOCALBASE} \
        --with-portaudio-include-dir=${LOCALBASE}/include/portaudio2 \
        --with-portaudio-lib-dir=${LOCALBASE}/lib/portaudio2
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
USE_PYTHON= 2.5+
USE_AUTOTOOLS=  libtool
PLIST_SUB=  PYVER=${PYTHON_VERSION:S/python//} \
        PORTVERSION=${PORTVERSION}

post-configure:
    @${REINPLACE_CMD} -e 's|-Wl.*||' ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for d in ${WRKSRC}/LICENSE.TXT ${WRKSRC}/WSPR_Announcement.TXT \
    ${WRKSRC}/WSPR_Instructions.TXT ${WRKSRC}/WSPR_Quick_Start.TXT \
    ${WRKSRC}/supported_rigs.txt
    ${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}
.endfor
    @${ECHO}
    @${ECHO} "docs installed in ${DOCSDIR}"
    @${ECHO}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>