freebsd-ports/comms/wspr/Makefile
Diane Bruce 71420ec473 - Temporary hack to fix the build for now.
This bug was triggered as a side effect of: "revision 1.34 of Mk/bsd.gcc.mk
  date: 2009/09/26 01:02:01;  author: gerald;  state: Exp;  lines: +3 -1
  Have CFLAGS and LDFLAGS set an -rpath to the lang/gcc44 library directory "
  The actual problem is in f2py from py-numpy which is not recognising
  -Wl,rpath=... as a loader option and should be fixed in f2py.

Notified by:	erwin, pav (pointyhat)
2009-10-05 21:52:44 +00:00

70 lines
2 KiB
Makefile

# 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-configure:
@${REINPLACE_CMD} -e 's|-Wl.*||' ${WRKSRC}/Makefile
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>