freebsd-ports/comms/wsjt/Makefile

78 lines
2.2 KiB
Makefile
Raw Normal View History

# Created by: Diane Bruce <db@db.net>
# $FreeBSD$
PORTNAME= wsjt
2012-02-10 14:15:13 +01:00
VERSION= 9.1
PORTREVISION= 1
2012-02-10 14:15:13 +01:00
DISTVERSION= ${VERSION}.r${SVN_REV}
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}
MAINTAINER= db@FreeBSD.org
COMMENT= Weak signal ham radio communication package
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
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/scipy:${PORTSDIR}/science/py-scipy \
${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2 \
${PYNUMPY}
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
USE_FORTRAN= yes
GNU_CONFIGURE= yes
2009-09-01 23:02:25 +02:00
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+
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}
2009-09-01 23:02:25 +02:00
.include <bsd.port.pre.mk>
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>