Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2015 16:37:13 +0000 (UTC)
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392990 - in head/comms/wspr: . files
Message-ID:  <201507271637.t6RGbDcL049204@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: db
Date: Mon Jul 27 16:37:12 2015
New Revision: 392990
URL: https://svnweb.freebsd.org/changeset/ports/392990

Log:
  Unbreak build
  Portaudio cleanups
  remove obsolete USE_AUTOTOOLS=  autoconf

Deleted:
  head/comms/wspr/files/patch-WsprMode_specjt.py
Modified:
  head/comms/wspr/Makefile
  head/comms/wspr/files/patch-Makefile.in
  head/comms/wspr/files/patch-configure.ac
  head/comms/wspr/files/patch-wspr.py

Modified: head/comms/wspr/Makefile
==============================================================================
--- head/comms/wspr/Makefile	Mon Jul 27 16:36:24 2015	(r392989)
+++ head/comms/wspr/Makefile	Mon Jul 27 16:37:12 2015	(r392990)
@@ -2,7 +2,7 @@
 
 PORTNAME=	wspr
 DISTVERSION=	${VERSION}.r${SVN_REV}
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	comms hamradio
 MASTER_SITES=	LOCAL/db
 DISTNAME=	wspr-r${SVN_REV}
@@ -21,9 +21,8 @@ LIB_DEPENDS=	libhamlib.so:${PORTSDIR}/co
 		libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
 		libportaudio.so:${PORTSDIR}/audio/portaudio
 
-MAKE_JOBS_UNSAFE=	yes
-USE_AUTOTOOLS=	autoconf
-USES=		fortran gmake libtool tar:bzip2 python:3.3 dos2unix
+DISABLE_MAKE_JOBS=	yes
+USES=		autoreconf dos2unix fortran gmake libtool python:3.3 tar:bzip2
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-gfortran=${FC} \
 		--with-f2py=f2py-${PYTHON_VER} \

Modified: head/comms/wspr/files/patch-Makefile.in
==============================================================================
--- head/comms/wspr/files/patch-Makefile.in	Mon Jul 27 16:36:24 2015	(r392989)
+++ head/comms/wspr/files/patch-Makefile.in	Mon Jul 27 16:37:12 2015	(r392990)
@@ -1,41 +1,42 @@
---- Makefile.in.orig	2014-06-20 18:58:03.000000000 -0400
-+++ Makefile.in	2014-07-24 16:14:06.000000000 -0400
-@@ -25,7 +25,7 @@
+--- Makefile.in.orig	2015-07-27 16:22:02 UTC
++++ Makefile.in
+@@ -25,7 +25,8 @@ SHELL		:=	@SHELL@
  MKDIR		:=	@MKDIR@
  
  # Install locations
 -INATALL		:=	install
 +INSTALL		:=	install
++PREFIX		:=	@PREFIX@
  BINDIR		:=	@BINDIR@
  DOCDIR		:=	@DOCDIR@
  HOMEDIR		:=	@HOMEDIR@
-@@ -50,6 +50,8 @@
+@@ -45,7 +46,7 @@ F2PY		:=	@F2PY@
+ 
+ # Libs and Flags
+ LIBS		:=	@LIBS@
+-CPPFLAGS	+=	${DEFS}
++CPPFLAGS	:=	@CPPFLAGS@
+ LDFLAGS		+=	@LDFLAGS@
  CFLAGS		+=	@CFLAGS@
  FFLAGS		+=	@FFLAGS@
- FCOPT		+=	@FCOPT@
-+PORTAUDIO_INCLUDE = 	@PORTAUDIO_INCLUDE@
-+PORTAUDIO_LIBDIR =	@PORTAUDIO_LIBDIR@
- 
- # Config Definitions
- DEFS		:=	@DEFS@
-@@ -71,24 +73,24 @@
+@@ -71,24 +72,24 @@ all:	libwspr.a thnix.o WsprMod/w.so fmte
  
  # Default Rules
  %.o: %.c
 -	${CC} ${CPPFLAGS} ${CFLAGS} -c $<
-+	${CC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${CPPFLAGS} -c $<
++	${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
  %.o: %.f
 -	${FC} ${FFLAGS} -c $<
-+	${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
++	${FC} ${DEFS} ${CFLAGS} ${FFLAGS} -c $<
  %.o: %.F
 -	${FC} ${FFLAGS} -c $<
-+	${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
++	${FC} ${DEFS} ${CFLAGS} ${FFLAGS} -c $<
  %.o: %.f90
 -	${FC} ${FFLAGS} -c $<
-+	${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
++	${FC} ${DEFS} ${CFLAGS} ${FFLAGS} -c $<
  %.o: %.F90
 -	${FC} ${FFLAGS} -c $<
-+	${FC} ${PORTAUDIO_INCLUDE} ${CFLAGS} ${FFLAGS} -c $<
++	${FC} ${DEFS} ${CFLAGS} ${FFLAGS} -c $<
  
  # Objects
  OBJS1 = wspr0.o wspr0init.o wspr0_rx.o wspr0_tx.o thnix_stub.o
@@ -50,7 +51,7 @@
  
  OBJS3 = azdist.o ccf2.o chklevel.o db.o decode.o decode162.o deg2grid.o \
  	encode232.o fano232.o fchisq.o fil1.o flat3.o four2a.o\
-@@ -105,21 +107,22 @@
+@@ -105,21 +106,22 @@ OBJS3 = azdist.o ccf2.o chklevel.o db.o 
  
  # Build Library: libwspr.a
  libwspr.a: ${OBJS3} acom1.f90 acom2.f90
@@ -78,7 +79,7 @@
  
  # SRC for w.so
  F2PYSRCS = wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
-@@ -127,7 +130,7 @@
+@@ -127,30 +129,34 @@ F2PYSRCS = wspr1.f90 getfile.f90 patermi
  # Build W.SO & MV to WsprMod/
  WsprMod/w.so:	libwspr.a ${F2PYSRCS} acom1.f90 
  	${F2PY} -c --quiet --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \
@@ -87,7 +88,11 @@
  	${MV} w*.so WsprMod/w.so
  
  # Install target wspr
-@@ -137,20 +140,23 @@
+ install:
+-	@clear
++# tput has no TERM under automated install
++#	@clear
+ 	@echo '-----------------------------------'
  	@echo "      Installing ${PROGRAM}"
  	@echo '-----------------------------------'
  	@echo ''
@@ -108,7 +113,7 @@
 +	@${MKDIR} -p ${DESTDIR}${DOCDIR}/examples
 +	@${MKDIR} -p ${DESTDIR}${SHARED}/save/Samples
 +	@${MKDIR} -p ${DESTDIR}${WSPRLIB}/WsprMod
-+	@install -m 555 fmtest fcal fmeasure fmtave wspr0 wsprcode ${DESTDIR}${BINDIR}
++	@install -m 655 fmtest fcal fmeasure fmtave wspr0 wsprcode ${DESTDIR}${BINDIR}
 +	@strip ${DESTDIR}${BINDIR}/fmtest ${DESTDIR}${BINDIR}/fcal \
 +		${DESTDIR}${BINDIR}/fmeasure ${DESTDIR}${BINDIR}/fmtave \
 +		${DESTDIR}${BINDIR}/wspr0 ${DESTDIR}${BINDIR}/wsprcode

Modified: head/comms/wspr/files/patch-configure.ac
==============================================================================
--- head/comms/wspr/files/patch-configure.ac	Mon Jul 27 16:36:24 2015	(r392989)
+++ head/comms/wspr/files/patch-configure.ac	Mon Jul 27 16:37:12 2015	(r392990)
@@ -1,6 +1,6 @@
---- configure.ac.orig	2014-06-04 15:38:13.000000000 -0400
-+++ configure.ac	2014-09-26 15:03:51.000000000 -0400
-@@ -10,18 +10,33 @@
+--- configure.ac.orig	2015-07-27 16:22:02 UTC
++++ configure.ac
+@@ -10,18 +10,33 @@ dnl ------------------------------------
  dnl path vars
  dnl ----------------------------------------------------------------------------
  
@@ -40,7 +40,7 @@
  
  dnl ----------------------------------------------------------------------------
  dnl check compilers
-@@ -59,9 +74,17 @@
+@@ -59,9 +74,17 @@ AC_PATH_PROG([TR], [tr])
  AC_SUBST([OS], ["$host_os"])
  AC_SUBST([CPU], ["$host_cpu"])
  
@@ -60,7 +60,7 @@
  AC_HEADER_STDC
  AC_HEADER_DIRENT
  AC_HEADER_TIME
-@@ -88,36 +111,36 @@
+@@ -88,36 +111,36 @@ dnl ------------------------------------
  dnl add additional lib paths
  dnl ----------------------------------------------------------------------------
  if test -d "/usr/lib64"; then LDFLAGS="-L/usr/lib64 ${LDFLAGS}"; fi
@@ -108,7 +108,7 @@
  		AC_DEFINE([HAVE_PY3], [1])
  		AC_DEFINE_UNQUOTED([PY3_PATH], ["${PY3}"], [Path to Python3])
  		AC_SUBST([PYTHON], ["${PY3}"])
-@@ -128,6 +151,7 @@
+@@ -128,6 +151,7 @@ else
  fi
  
  # if not user supplied, check by calling python
@@ -116,7 +116,7 @@
  if test "$HAVE_PY3" = "no"; then
  
  	AC_MSG_CHECKING([Python3 using: python])
-@@ -172,7 +196,7 @@
+@@ -172,7 +196,7 @@ dnl ------------------------------------
  
  HAVE_F2PY=no
  
@@ -125,7 +125,7 @@
  AC_MSG_CHECKING([F2PY --with-f2py])
  AC_ARG_WITH([f2py], [  --with-f2py=PATH        path to: ../f2py ../f2py3],
  F2PY="$withval")
-@@ -244,13 +268,23 @@
+@@ -244,13 +268,23 @@ dnl ------------------------------------
  dnl check gfortran
  dnl ----------------------------------------------------------------------------
  
@@ -150,7 +150,23 @@
  	FCV=gnu95
  	FC_LIB_PATH=`${FC} -print-file-name=`
  	AC_DEFINE_UNQUOTED([FC_LIB_PATH], ["${FC_LIB_PATH}"], [Path to Gfortran libs.])
-@@ -279,7 +328,6 @@
+@@ -266,12 +300,14 @@ fi
+ dnl ----------------------------------------------------------------------------
+ dnl check portaudio
+ dnl ----------------------------------------------------------------------------
++#
+ 
+ AC_CHECK_LIB([portaudio], [Pa_Initialize], [], [])
+ if test "$ac_cv_lib_portaudio_Pa_Initialize" = "yes"; then
+-		LIBS="-lportaudio ${LIBS}"
++	LIBS="-lportaudio ${LIBS}"
+ fi
+ 
++
+ # if headers and libs found, set define
+ if test "$ac_cv_header_portaudio_h" = "yes" -a "$ac_cv_lib_portaudio_Pa_Initialize" = "yes"; then
+ 	HAVE_PORTAUDIO=1
+@@ -279,7 +315,6 @@ if test "$ac_cv_header_portaudio_h" = "y
  	AC_DEFINE([HAVE_PORTAUDIO_LIB], [1], [Portaudio Lib])
  fi
  
@@ -158,7 +174,7 @@
  dnl ----------------------------------------------------------------------------
  dnl check fftw3
  dnl ----------------------------------------------------------------------------
-@@ -322,8 +370,10 @@
+@@ -322,8 +357,10 @@ dnl ------------------------------------
  _LBU=$(echo "-lpthread $LIBS" |tr ' ' '\n'|sort -su |tr '\n' ' ')
  LIBS="$_LBU"
  
@@ -171,7 +187,7 @@
  
  _CPPU=$(echo "-I/usr/include -I/usr/local/include $CPPFLAGS" |tr ' ' '\n'|sort -su |tr '\n' ' ')
  CPPFLAGS="$_CPPU"
-@@ -355,6 +405,10 @@
+@@ -355,6 +392,10 @@ case "${host_os}" in
  		FFLAGS="-O2 -m64 -Wall -fbounds-check -fno-second-underscore \
  -Wno-conversion -Wno-character-truncation -fPIC"
  	;;
@@ -182,7 +198,7 @@
  	*)
  		AC_MSG_ERROR([Unsupported System: ${host_os}.])
  	;;
-@@ -377,10 +431,6 @@
+@@ -377,10 +418,6 @@ if test "$HAVE_PY3" = "no"; then
  	echo
  	echo 'Example:'
  	echo './configure --with-python3="/home/$USER/test/python3"'
@@ -193,7 +209,7 @@
  fi
  
  
-@@ -502,7 +552,7 @@
+@@ -502,7 +539,7 @@ AC_SUBST([PREFIX], ["$prefix"])
  AC_SUBST([PROGRAM], ["$PACKAGE_NAME"])
  AC_SUBST([VERSION], ["$PACKAGE_VERSION"])
  AC_SUBST([WEB], ["$PACKAGE_URL"])
@@ -202,7 +218,7 @@
  AC_OUTPUT
  
  
-@@ -523,7 +573,7 @@
+@@ -523,7 +560,7 @@ fi
  echo " Package: .........: ${PROGRAM} ${VERSION}"
  echo " Python3: .........: ${PYTHON}"
  echo " F2py: ............: ${F2PY}"

Modified: head/comms/wspr/files/patch-wspr.py
==============================================================================
--- head/comms/wspr/files/patch-wspr.py	Mon Jul 27 16:36:24 2015	(r392989)
+++ head/comms/wspr/files/patch-wspr.py	Mon Jul 27 16:37:12 2015	(r392990)
@@ -1,6 +1,6 @@
---- wspr.py.orig	2014-12-14 19:16:10.079628932 -0500
-+++ wspr.py	2014-12-14 19:16:18.894628427 -0500
-@@ -50,7 +50,7 @@
+--- wspr.py.orig	2015-07-27 16:22:02 UTC
++++ wspr.py
+@@ -50,7 +50,7 @@ from WsprMod import g
  import Pmw
  from WsprMod import palettes
  from math import log10



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507271637.t6RGbDcL049204>