From owner-svn-ports-all@freebsd.org Thu Apr 14 21:35:35 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7626EADAFC5; Thu, 14 Apr 2016 21:35:35 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A0D31341; Thu, 14 Apr 2016 21:35:35 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3ELZYJb048296; Thu, 14 Apr 2016 21:35:34 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3ELZY0P048292; Thu, 14 Apr 2016 21:35:34 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201604142135.u3ELZY0P048292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 14 Apr 2016 21:35:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413318 - in head/audio/praat: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 21:35:35 -0000 Author: jbeich Date: Thu Apr 14 21:35:33 2016 New Revision: 413318 URL: https://svnweb.freebsd.org/changeset/ports/413318 Log: audio/praat: unbreak sound support Portaudio doesn't work with alsa-plugins-oss, so switch to native OSS. ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory [...] PR: 208728 Reported by: kaltheat@gmail.com Approved by: Jason Bacon (maintainer) MFH: 2016Q2 Added: head/audio/praat/files/patch-external_portaudio_Makefile (contents, props changed) head/audio/praat/files/patch-external_portaudio_pa__unix__hostapis.c (contents, props changed) Modified: head/audio/praat/Makefile (contents, props changed) head/audio/praat/files/makefile.defs.freebsd.alsa Modified: head/audio/praat/Makefile ============================================================================== --- head/audio/praat/Makefile Thu Apr 14 21:34:01 2016 (r413317) +++ head/audio/praat/Makefile Thu Apr 14 21:35:33 2016 (r413318) @@ -4,7 +4,7 @@ PORTNAME= praat PORTVERSION= 5.4.08 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio science MAINTAINER= bacon4000@gmail.com @@ -19,8 +19,6 @@ USE_GNOME= gtk20 MAKEFILE= makefile PLIST_FILES= bin/praat man/man1/praat.1.gz -LIB_DEPENDS+= libasound.so:audio/alsa-lib - .include .if ${OSVERSION} < 1000000 Modified: head/audio/praat/files/makefile.defs.freebsd.alsa ============================================================================== --- head/audio/praat/files/makefile.defs.freebsd.alsa Thu Apr 14 21:34:01 2016 (r413317) +++ head/audio/praat/files/makefile.defs.freebsd.alsa Thu Apr 14 21:35:33 2016 (r413318) @@ -8,17 +8,18 @@ CC ?= gcc CXX ?= g++ -CFLAGS = -std=gnu99 -DUNIX -Dlinux -DALSA `pkg-config --cflags gtk+-2.0` -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O1 -g1 +CFLAGS = -std=gnu99 -DUNIX -Dlinux -DHAVE_SYS_SOUNDCARD_H `pkg-config --cflags gtk+-2.0` -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O1 -g1 -CXXFLAGS = -std=gnu++11 -Wshadow -DUNIX -Dlinux -DALSA `pkg-config --cflags gtk+-2.0` -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O1 -g1 -I%%WRKSRC%%/sys -I%%WRKSRC%%/dwsys -I%%WRKSRC%%/num -I%%WRKSRC%%/stat -I%%WRKSRC%%/kar -I%%WRKSRC%%/dwtools -I%%WRKSRC%%/fon -I%%WRKSRC%%/LPC -I%%WRKSRC%%/EEG -I%%WRKSRC%%/external/espeak -I%%WRKSRC%%/external/flac -I%%WRKSRC%%/external/mp3 -I%%WRKSRC%%/external/gsl -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/unicode +CXXFLAGS = -std=gnu++11 -Wshadow -DUNIX -Dlinux -DHAVE_SYS_SOUNDCARD_H `pkg-config --cflags gtk+-2.0` -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O1 -g1 -I%%WRKSRC%%/sys -I%%WRKSRC%%/dwsys -I%%WRKSRC%%/num -I%%WRKSRC%%/stat -I%%WRKSRC%%/kar -I%%WRKSRC%%/dwtools -I%%WRKSRC%%/fon -I%%WRKSRC%%/LPC -I%%WRKSRC%%/EEG -I%%WRKSRC%%/external/espeak -I%%WRKSRC%%/external/flac -I%%WRKSRC%%/external/mp3 -I%%WRKSRC%%/external/gsl -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/unicode LINK ?= $(CXX) EXECUTABLE = praat -LIBS = `pkg-config --libs gtk+-2.0` -L%%LOCALBASE%%/lib -lm -lasound -lpthread -ltinfow +LIBS = `pkg-config --libs gtk+-2.0` -L%%LOCALBASE%%/lib -lm -lpthread -ltinfow AR = ar RANLIB = ls ICON = MAIN_ICON = +PA_BACKEND = pa_unix_oss.o Added: head/audio/praat/files/patch-external_portaudio_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/praat/files/patch-external_portaudio_Makefile Thu Apr 14 21:35:33 2016 (r413318) @@ -0,0 +1,13 @@ +--- external/portaudio/Makefile.orig 2015-05-20 01:47:31 UTC ++++ external/portaudio/Makefile +@@ -3,8 +3,9 @@ + + include ../../makefile.defs + ++PA_BACKEND ?= pa_linux_alsa.o + OBJECTS = \ +- pa_unix_hostapis.o pa_unix_util.o pa_linux_alsa.o \ ++ pa_unix_hostapis.o pa_unix_util.o $(PA_BACKEND) \ + pa_win_hostapis.o pa_win_util.o pa_win_wmme.o pa_win_waveformat.o \ + pa_front.o pa_debugprint.o pa_cpuload.o \ + pa_allocation.o pa_process.o pa_converters.o pa_dither.o \ Added: head/audio/praat/files/patch-external_portaudio_pa__unix__hostapis.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/praat/files/patch-external_portaudio_pa__unix__hostapis.c Thu Apr 14 21:35:33 2016 (r413318) @@ -0,0 +1,11 @@ +--- external/portaudio/pa_unix_hostapis.c.orig 2015-05-20 01:47:31 UTC ++++ external/portaudio/pa_unix_hostapis.c +@@ -60,6 +60,8 @@ PaUtilHostApiInitializer *paHostApiIniti + { + #if defined (linux) && defined (ALSA) + PaAlsa_Initialize, // ppgb ++ #else ++ PaOSS_Initialize, + #endif + 0 /* NULL terminated array */ + };