Clean up wsjt build and update to reflect latest version

Upstream version is now 10
Fix dependency to reflect new naming of tkinter under python3
Fix dependency for kvasd as it is installed in LOCALBASE not LINUXBASE
This commit is contained in:
Diane Bruce 2015-09-10 13:51:22 +00:00
parent 6c76ecc91f
commit 14a9ab02c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396569

View file

@ -2,7 +2,6 @@
PORTNAME= wsjt
DISTVERSION= ${VERSION}.r${SVN_REV}
PORTREVISION= 12
CATEGORIES= comms hamradio
MASTER_SITES= LOCAL/db
DISTNAME= wsjt-r${SVN_REV}
@ -16,12 +15,12 @@ LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libportaudio.so:${PORTSDIR}/audio/portaudio
WSJT_DEPENDS= ${PYTHON_LIBDIR}/tkinter:${PORTSDIR}/x11-toolkits/py-tkinter \
WSJT_DEPENDS= ${PYTHON_LIBDIR}/lib-dynload/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/scipy:${PORTSDIR}/science/py-scipy \
${PYTHON_SITELIBDIR}/PIL:${PORTSDIR}/graphics/py-pillow \
${PYNUMPY}
BUILD_DEPENDS= ${WSJT_DEPENDS}
RUN_DEPENDS= kvasd:${PORTSDIR}/comms/kvasd \
RUN_DEPENDS= ${LOCALBASE}/bin/kvasd:${PORTSDIR}/comms/kvasd \
${WSJT_DEPENDS}
USE_GCC= yes
@ -29,15 +28,13 @@ USES= autoreconf fortran gmake python:3.3+ tar:bzip2
SHEBANG_FILES= ${WRKSRC}/wsjt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${STAGEDIR}${LOCALBASE} \
--with-python=${PYTHON_CMD} \
--with-gfortran=${FC} \
--with-portaudio-include-dir=${LOCALBASE}/include \
--with-portaudio-lib-dir=${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
# Adding this breaks configure
#LDFLAGS+= -shared
VERSION= 9.1
VERSION= 10
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \
VERSION=${VERSION}
@ -98,8 +95,4 @@ post-configure:
${REINPLACE_CMD} -e 's|f2py|f2py-${PYTHON_VER}|' \
${WRKSRC}/Makefile
.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT}
IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
.endif
.include <bsd.port.post.mk>