mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
1cd277bdce
GCC 4.6.4 to GCC 4.7.3. This entails updating the lang/gcc port as well as changing the default in Mk/bsd.default-versions.mk. Part II, Bump PORTREVISIONs. PR: 182136 Supported by: Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports) Tested by: bdrewery (two -exp runs)
78 lines
2.3 KiB
Makefile
78 lines
2.3 KiB
Makefile
# Created by: Diane Bruce <db@db.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wsjt
|
|
VERSION= 9.1
|
|
PORTREVISION= 3
|
|
DISTVERSION= ${VERSION}.r${SVN_REV}
|
|
CATEGORIES= comms hamradio
|
|
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 \
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
|
LIB_DEPENDS= libfftw3f.so:${PORTSDIR}/math/fftw3-float \
|
|
libsamplerate.so:${PORTSDIR}/audio/libsamplerate
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/scipy:${PORTSDIR}/science/py-scipy \
|
|
${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2 \
|
|
${PYNUMPY}
|
|
|
|
ALL_TARGET= build
|
|
USES= fortran gmake
|
|
USE_BZIP2= 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= yes
|
|
USE_AUTOTOOLS= libtool
|
|
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \
|
|
VERSION=${VERSION}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(BOOTSTRAP)
|
|
SVN_REV!= svn info http://svn.code.sf.net/p/wsjt/code/trunk/ | ${GREP} Revision | cut -d' ' -f2
|
|
.else
|
|
.include "Makefile.svn_rev"
|
|
.endif
|
|
|
|
.if defined(BOOTSTRAP) || defined(SVN_FETCH)
|
|
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
|
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export -r ${SVN_REV} \
|
|
http://svn.code.sf.net/p/wsjt/code/trunk ${WRKDIR}/wsjt-r${SVN_REV}
|
|
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
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${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}
|
|
|
|
.include <bsd.port.post.mk>
|