2013-03-02 23:32:48 +01:00
|
|
|
# Created by: Diane Bruce <db@db.net>
|
2006-11-12 20:04:42 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wsjt
|
2012-02-10 14:15:13 +01:00
|
|
|
VERSION= 9.1
|
2013-03-02 23:32:48 +01:00
|
|
|
PORTREVISION= 1
|
2012-02-10 14:15:13 +01:00
|
|
|
DISTVERSION= ${VERSION}.r${SVN_REV}
|
2006-11-12 20:04:42 +01:00
|
|
|
CATEGORIES= comms hamradio
|
2009-09-01 23:02:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= db
|
|
|
|
DISTNAME= wsjt-r${SVN_REV}
|
2006-11-12 20:04:42 +01:00
|
|
|
|
2007-01-19 19:14:20 +01:00
|
|
|
MAINTAINER= db@FreeBSD.org
|
2007-08-23 00:47:33 +02:00
|
|
|
COMMENT= Weak signal ham radio communication package
|
2006-11-12 20:04:42 +01:00
|
|
|
|
2013-03-02 23:32:48 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
|
2009-09-01 23:02:25 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
|
|
|
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float \
|
|
|
|
samplerate:${PORTSDIR}/audio/libsamplerate
|
2007-08-10 17:10:46 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/scipy:${PORTSDIR}/science/py-scipy \
|
2007-02-25 03:37:44 +01:00
|
|
|
${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2 \
|
|
|
|
${PYNUMPY}
|
2006-11-12 20:04:42 +01:00
|
|
|
|
2009-09-01 23:02:25 +02:00
|
|
|
ALL_TARGET= build
|
|
|
|
USE_BZIP2= yes
|
2012-02-10 14:15:13 +01:00
|
|
|
USE_GMAKE= yes
|
2007-08-10 17:10:46 +02:00
|
|
|
USE_FORTRAN= yes
|
2006-11-12 20:04:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-09-01 23:02:25 +02:00
|
|
|
CONFIGURE_ARGS= --enable-gfortran --prefix=${LOCALBASE} \
|
|
|
|
--with-portaudio-include-dir=${LOCALBASE}/include/portaudio2 \
|
2007-08-10 17:10:46 +02:00
|
|
|
--with-portaudio-lib-dir=${LOCALBASE}/lib/portaudio2
|
2011-09-24 00:26:39 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-02-25 00:25:54 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2009-09-01 23:02:25 +02:00
|
|
|
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \
|
2012-02-10 14:15:13 +01:00
|
|
|
VERSION=${VERSION}
|
2006-11-12 20:04:42 +01:00
|
|
|
|
2009-09-01 23:02:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2006-11-12 20:04:42 +01:00
|
|
|
|
2009-09-01 23:02:25 +02:00
|
|
|
.if defined(BOOTSTRAP)
|
2012-02-10 14:15:13 +01:00
|
|
|
SVN_REV!= svn info http://svn.code.sf.net/p/wsjt/code/trunk/ | ${GREP} Revision | cut -d' ' -f2
|
2009-09-01 23:02:25 +02:00
|
|
|
.else
|
|
|
|
.include "Makefile.svn_rev"
|
|
|
|
.endif
|
|
|
|
|
2012-02-10 14:15:13 +01:00
|
|
|
.if defined(BOOTSTRAP) || defined(SVN_FETCH)
|
2009-09-01 23:02:25 +02:00
|
|
|
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
|
|
|
|
|
|
|
do-fetch:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
svn export -r ${SVN_REV} \
|
2012-02-10 14:15:13 +01:00
|
|
|
http://svn.code.sf.net/p/wsjt/code/trunk ${WRKDIR}/wsjt-r${SVN_REV}
|
2009-09-01 23:02:25 +02:00
|
|
|
cd ${WRKDIR};rm -f ${DISTNAME}/*.a ${DISTNAME}/*.lib ${DISTNAME}/*.dll;\
|
|
|
|
tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
|
2012-02-10 14:15:13 +01:00
|
|
|
echo "SVN_REV= ${SVN_REV}" > ${MASTERDIR}/Makefile.svn_rev
|
2009-09-01 23:02:25 +02:00
|
|
|
.if ${USER} == db
|
|
|
|
scp ${DISTDIR}/${DISTNAME}.tar.bz2 \
|
2012-02-10 14:15:13 +01:00
|
|
|
freefall.freebsd.org:public_distfiles/
|
2009-09-01 23:02:25 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-02-10 14:15:13 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for d in ${WRKSRC}/WSJT_Quick_Reference.pdf ${WRKSRC}/WSJT_Source_Code.txt \
|
|
|
|
${WRKSRC}/WSJT_User_600.pdf ${WRKSRC}/UpdateHistory.txt \
|
|
|
|
${WRKSRC}/WSJT_Source_Code.txt ${WRKSRC}/LICENSE.TXT
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "docs installed in ${DOCSDIR}"
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2009-09-01 23:02:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|