Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2013 20:45:26 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177285: [patch] fix audio/audacity build with samplerate=off
Message-ID:  <201303222045.r2MKjQMp092841@red.freebsd.org>
Resent-Message-ID: <201303222050.r2MKo05Z047516@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177285
>Category:       ports
>Synopsis:       [patch] fix audio/audacity build with samplerate=off
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
when samplerate option is off, audacity builds an internal library which needs cmake which is not listed in the depends.

=== configuring in lib-src/libsoxr (/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/libsoxr)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  '--with-lib-preference=local system' '--with-portaudio' '--enable-unicode' '--without-ffmpeg' '--without-libflac' '--without-libid3tag' '--without-jack' '--disable-ladspa' '--without-libmad' '--enable-nyquist' '--without-portmixer' '--without-libsamplerate' '--without-sbsms' '--with-sse' '--without-libtwolame' '--without-taglib' '--without-libvamp' '--without-libvorbis' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.1' 'build_alias=amd64-portbld-freebsd9.1' 'CC=cc' 'CFLAGS=-O2 -pipe -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portsmf -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portaudio-v19/include -I/usr/local/include   -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib -pthread' 'CPPFLAGS=-I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portsmf -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/
 portaudio-v19/include -I/usr/local/include  ' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portsmf -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portaudio-v19/include -I/usr/local/include -fno-strict-aliasing -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portsmf -I/work/a/ports/audio/audacity/work/audacity-src-2.0.3/lib-src/portaudio-v19/include -I/usr/local/include  ' '--with-wx-config=/usr/local/bin/wxgtk2u-2.8-config' '--with-pa-include=../portaudio-v19/include' --cache-file=/dev/null --srcdir=.
./configure: cmake: not found
configure: error: ./configure failed for lib-src/libsoxr
===>  Script "configure" failed unexpectedly.

simple patch adds conditional cmake depend when samplerate=off. a build_depend is used instead of uses=cmake because the main project still uses gmake, just the one subproject needs cmake.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: audio/audacity/Makefile
===================================================================
--- audio/audacity/Makefile	(revision 314882)
+++ audio/audacity/Makefile	(working copy)
@@ -124,6 +123,7 @@
 LIB_DEPENDS+=		samplerate:${PORTSDIR}/audio/libsamplerate
 CONFIGURE_ARGS+=	--with-libsamplerate
 .else
+BUILD_DEPENDS+=		cmake:${PORTSDIR}/devel/cmake
 CONFIGURE_ARGS+=	--without-libsamplerate
 .endif
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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