aboutsummaryrefslogtreecommitdiffstats
path: root/comms/wspr/Makefile
blob: fc45ec985a7933cd377ef20a3504820ed41388db (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
63
64
65
66
67
68
# New ports collection makefile for:    wspr
# Date created:             30 April 2009
# Whom:                 Diane Bruce <db@db.net>
#
# $FreeBSD$
#

PORTNAME=   wspr
PORTVERSION=    1.11
PORTREVISION=   1
CATEGORIES= comms hamradio
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db
DISTNAME=   wspr-r${SVN_REV}

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=    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}

ALL_TARGET= build
USE_BZIP2=  yes
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
CONFIGURE_ENV=  CFLAGS+="-I${LOCALBASE}/include" \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_PYTHON= 2.4+
USE_AUTOTOOLS=  libtool:22
PLIST_SUB=  PYVER=${PYTHON_VERSION:S/python//} \
        PORTVERSION=${PORTVERSION}

.include <bsd.port.pre.mk>

post-install:
    @${CAT} ${PKGMESSAGE}

.if defined(BOOTSTRAP)
SVN_REV!=   svn info http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr/ | ${GREP} Revision | cut -d' ' -f2
.else
.include "Makefile.svn_rev"
.endif

.if defined(BOOTSTRAP)
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion

do-fetch:
    ${MKDIR} ${WRKDIR}
    svn export -r ${SVN_REV} \
        http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr ${WRKSRC}
    cd ${WRKDIR};rm -f ${DISTNAME}/*.a ${DISTNAME}/*.lib ${DISTNAME}/*.dll;\
        tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
    echo "SVN_REV=  ${SVN_REV}" > ${MASTERDIR}/Makefile.svn_rev
.if ${USER} == db
    scp ${DISTDIR}/${DISTNAME}.tar.bz2 \
        freefall.freebsd.org:public_distfiles/
.endif
.endif

.include <bsd.port.post.mk>