From nobody@FreeBSD.org  Tue Oct  8 18:49:30 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id E5107B50
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Oct 2013 18:49:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id D2EB727EB
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Oct 2013 18:49:30 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r98InUB8086666
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 8 Oct 2013 18:49:30 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r98InUc2086656;
	Tue, 8 Oct 2013 18:49:30 GMT
	(envelope-from nobody)
Message-Id: <201310081849.r98InUc2086656@oldred.freebsd.org>
Date: Tue, 8 Oct 2013 18:49:30 GMT
From: Pawel Pekala <pawel@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: audio/sox missing dependency on audio/pulseaudio
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: dnelson@allantgroup.com

>Number:         182838
>Category:       ports
>Synopsis:       audio/sox missing dependency on audio/pulseaudio
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pawel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 08 18:50:00 UTC 2013
>Closed-Date:    Sat Dec 14 10:57:24 UTC 2013
>Last-Modified:  Sat Dec 14 11:00:00 UTC 2013
>Originator:     Pawel Pekala
>Release:        10.0-CURRENT
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 10.0-ALPHA5 FreeBSD 10.0-ALPHA5 #0 r256150M: Tue Oct  8 17:10:26 CEST 2013     corn@blaviken.slowicza.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
configure script looks for pulseaudio on the system:

checking pulse/simple.h usability... yes
checking pulse/simple.h presence... yes
checking for pulse/simple.h... yes
checking for pa_simple_new in -lpulse... yes

and sox links to it:

[corn:ports/audio/sox]> ldd /usr/local/bin/sox | grep pulse
        libpulse-simple.so.0 => /usr/local/lib/libpulse-simple.so.0 (0x803410000)
        libpulse.so.0 => /usr/local/lib/libpulse.so.0 (0x803614000)
        libpulsecommon-0.9.23.so => /usr/local/lib/libpulsecommon-0.9.23.so (0x803857000)


this is not recorded in package's deps:

[corn:ports/audio/sox]> pkg info -d sox | grep pulse
[corn:ports/audio/sox]> 

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Oct 8 18:50:08 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182838 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: dnelson@allantgroup.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/182838: audio/sox missing dependency on audio/pulseaudio
Date: Tue, 8 Oct 2013 18:50:07 UT

 Maintainer of audio/sox,
 
 Please note that PR ports/182838 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182838
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->pawel 
Responsible-Changed-By: pawel 
Responsible-Changed-When: Tue Oct 8 19:35:58 UTC 2013 
Responsible-Changed-Why:  
Mine. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182838 

From: =?ISO-8859-2?Q?Pawe=B3_P=EAkala?= <c0rn@o2.pl>
To: bug-followup@FreeBSD.org, pawel@FreeBSD.org, dnelson@allantgroup.com
Cc:  
Subject: Re: ports/182838: audio/sox missing dependency on audio/pulseaudio
Date: Sat, 30 Nov 2013 00:02:46 +0100

 --MP_/UIfnZYVW9Y8zajfSZwDjsch
 Content-Type: text/plain; charset=ISO-8859-2
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 Proposed fix, adds PULSEAUDIO option - default to off.
 
 While I'm here fix few things:
 - Don't reset default options by adding LAME option and not
   setting it as only option
 - Use option helpers
 - Convert to new LIB_DEPENDS standard
 
 --=20
 pozdrawiam / with regards
 Pawe=B3 P=EAkala
 
 --MP_/UIfnZYVW9Y8zajfSZwDjsch
 Content-Type: text/x-patch
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=sox.diff
 
 Index: Makefile
 ===================================================================
 --- Makefile	(wersja 334978)
 +++ Makefile	(kopia robocza)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	sox
  PORTVERSION=	14.4.1
 +PORTREVISION=	1
  CATEGORIES=	audio
  MASTER_SITES=	SF
  
 @@ -20,11 +21,11 @@
  USE_AUTOTOOLS=	aclocal autoconf automake libltdl
  
  OPTIONS_DEFINE=	ALSA AO AMRNB AMRWB FFMPEG FLAC GSM ID3TAG LADSPA LAME \
 -		MAD PNG SNDFILE VORBIS WAVPACK
 +		MAD PNG PULSEAUDIO SNDFILE VORBIS WAVPACK
  OPTIONS_DEFAULT=	AO FFMPEG FLAC GSM ID3TAG MAD PNG SNDFILE VORBIS
  # Default LAME to off for packages so we don't end up RESTRICTED
  .if !defined(PACKAGE_BUILDING)
 -OPTIONS_DEFAULT=	LAME
 +OPTIONS_DEFAULT+=	LAME
  .endif
  
  AMRNB_DESC=	AMR Speech Codec (Narrowband)
 @@ -32,104 +33,64 @@
  GSM_DESC=	Use libgsm from ports (else use bundled lib)
  PNG_DESC=	PNG spectrogram creation
  
 -.include <bsd.port.options.mk>
 -
  CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
  CONFIGURE_ARGS+=	--with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
 -CONFIGURE_ARGS+=	--with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
 +CONFIGURE_ARGS+=	--with-distro="${CONFIGURE_TARGET} ${PKGNAME}" \
 +			--with-gsm
  
 -.if ${PORT_OPTIONS:MALSA}
 -LIB_DEPENDS+=		asound.2:${PORTSDIR}/audio/alsa-lib
 -RUN_DEPENDS+=		${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
 -CONFIGURE_ARGS+=	--with-alsa
 -.else
 -CONFIGURE_ARGS+=	--without-alsa
 -.endif
 +ALSA_CONFIGURE_WITH=	alsa
 +ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
 +ALSA_RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
  
 -.if ${PORT_OPTIONS:MAO}
 -CONFIGURE_ARGS+=	--with-ao
 -LIB_DEPENDS+=		ao.4:${PORTSDIR}/audio/libao
 -.else
 -CONFIGURE_ARGS+=	--without-ao
 -.endif
 +AO_CONFIGURE_WITH=	ao
 +AO_LIB_DEPENDS=		libao.so:${PORTSDIR}/audio/libao
  
 -.if ${PORT_OPTIONS:MAMRNB}
 -CONFIGURE_ARGS+=	--with-amrnb
 -LIB_DEPENDS+=		amrnb.3:${PORTSDIR}/audio/libamrnb
 -.else
 -CONFIGURE_ARGS+=	--without-amrnb
 -.endif
 +AMRNB_CONFIGURE_WITH=	amrnb
 +AMRNB_LIB_DEPENDS=	libamrnb.so:${PORTSDIR}/audio/libamrnb
  
 -.if ${PORT_OPTIONS:MAMRWB}
 -CONFIGURE_ARGS+=	--with-amrwb
 -LIB_DEPENDS+=		amrwb.3:${PORTSDIR}/audio/libamrwb
 -.else
 -CONFIGURE_ARGS+=	--without-amrwb
 -.endif
 +AMRWB_CONFIGURE_WITH=	amrwb
 +AMRWB_LIB_DEPENDS=	libamrwb.so:${PORTSDIR}/audio/libamrwb
  
 -.if ${PORT_OPTIONS:MFFMPEG}
 -CONFIGURE_ARGS+=	--with-ffmpeg
 -LIB_DEPENDS+=		libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
 -.else
 -CONFIGURE_ARGS+=	--without-ffmpeg
 -.endif
 +FFMPEG_CONFIGURE_WITH=	ffmpeg
 +FFMPEG_LIB_DEPENDS=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
  
 -.if ${PORT_OPTIONS:MVORBIS}
 -CONFIGURE_ARGS+=	--with-oggvorbis
 -LIB_DEPENDS+=		vorbis.4:${PORTSDIR}/audio/libvorbis
 -.else
 -CONFIGURE_ARGS+=	--without-oggvorbis
 -.endif
 +VORBIS_CONFIGURE_WITH=	oggvorbis
 +VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTSDIR}/audio/libvorbis
  
 -.if ${PORT_OPTIONS:MSNDFILE}
 -CONFIGURE_ARGS+=	--with-sndfile
 -LIB_DEPENDS+=		sndfile.1:${PORTSDIR}/audio/libsndfile
 -.else
 -CONFIGURE_ARGS+=	--without-sndfile
 -.endif
 +SNDFILE_CONFIGURE_WITH=	sndfile
 +SNDFILE_LIB_DEPENDS=	libsndfile.so:${PORTSDIR}/audio/libsndfile
  
 -.if ${PORT_OPTIONS:MLADSPA}
 -CONFIGURE_ARGS+=	--with-ladspa
 -RUN_DEPENDS+=		${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 -BUILD_DEPENDS+=		${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 -.else
 -CONFIGURE_ARGS+=	--without-ladspa
 -.endif
 +LADSPA_CONFIGURE_WITH=	ladspa
 +LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 +LADSPA_BUILD_DEPENDS=	${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
  
 -.if ${PORT_OPTIONS:MLAME}
 -CONFIGURE_ARGS+=	--with-lame
 -LIB_DEPENDS+=		mp3lame.0:${PORTSDIR}/audio/lame
 -.else
 -CONFIGURE_ARGS+=	--without-lame
 -.endif
 +LAME_CONFIGURE_WITH=	lame
 +LAME_LIB_DEPENDS=	libmp3lame.so:${PORTSDIR}/audio/lame
  
 -.if ${PORT_OPTIONS:MFLAC}
 -CONFIGURE_ARGS+=	--with-flac
 -LIB_DEPENDS+=		FLAC:${PORTSDIR}/audio/flac
 -.else
 -CONFIGURE_ARGS+=	--without-flac
 -.endif
 +FLAC_CONFIGURE_WITH=	flac
 +FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
  
 -.if ${PORT_OPTIONS:MMAD}
 -CONFIGURE_ARGS+=	--with-mad
 -LIB_DEPENDS+=		mad.2:${PORTSDIR}/audio/libmad
 -.else
 -CONFIGURE_ARGS+=	--without-mad
 -.endif
 +MAD_CONFIGURE_WITH=	mad
 +MAD_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad
  
 -.if ${PORT_OPTIONS:MPNG}
 -CONFIGURE_ARGS+=	--with-png
 -LIB_DEPENDS+=		png15:${PORTSDIR}/graphics/png
 -.else
 -CONFIGURE_ARGS+=	--without-png
 -.endif
 +PNG_CONFIGURE_WITH=	png
 +PNG_LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
  
 -.if ${PORT_OPTIONS:MGSM}
 -CONFIGURE_ARGS+=	--with-gsm
 -LIB_DEPENDS+=		gsm.1:${PORTSDIR}/audio/gsm
 -.else
 -CONFIGURE_ARGS+=	--with-gsm
 +PULSEAUDIO_CONFIGURE_WITH=	pulseaudio
 +PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
 +
 +GSM_LIB_DEPENDS=	libgsm.so:${PORTSDIR}/audio/gsm
 +
 +ID3TAG_CONFIGURE_WITH=	id3tag
 +ID3TAG_LIB_DEPENDS=	libid3tag.so:${PORTSDIR}/audio/libid3tag
 +
 +WAVPACK_CONFIGURE_WITH=	wavpack
 +WAVPACK_LIB_DEPENDS=	libwavpack.so:${PORTSDIR}/audio/wavpack
 +
 +.include <bsd.port.options.mk>
 +
 +.if ! ${PORT_OPTIONS:MGSM}
  # We cannot ask for gsm to be enabled without it trying to use external gsm,
  # so force the autoconf checks to fail
  CONFIGURE_ENV+=	ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
 @@ -136,20 +97,6 @@
  		ac_cv_lib_gsm_gsm_create=no
  .endif
  
 -.if ${PORT_OPTIONS:MID3TAG}
 -CONFIGURE_ARGS+=	--with-id3tag
 -LIB_DEPENDS+=		id3tag.0:${PORTSDIR}/audio/libid3tag
 -.else
 -CONFIGURE_ARGS+=	--without-id3tag
 -.endif
 -
 -.if ${PORT_OPTIONS:MWAVPACK}
 -CONFIGURE_ARGS+=	--with-wavpack
 -LIB_DEPENDS+=		wavpack.2:${PORTSDIR}/audio/wavpack
 -.else
 -CONFIGURE_ARGS+=	--without-wavpack
 -.endif
 -
  post-patch:
  	@${REINPLACE_CMD} -e 's/ CODEC_ID/ AV_CODEC_ID/g' \
  		-e 's/ CodecID/ AVCodecID/g' \
 
 --MP_/UIfnZYVW9Y8zajfSZwDjsch--
State-Changed-From-To: feedback->closed 
State-Changed-By: pawel 
State-Changed-When: Sat Dec 14 10:57:23 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182838 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/182838: commit references a PR
Date: Sat, 14 Dec 2013 10:52:49 +0000 (UTC)

 Author: pawel
 Date: Sat Dec 14 10:52:42 2013
 New Revision: 336436
 URL: http://svnweb.freebsd.org/changeset/ports/336436
 
 Log:
   - Add option PULSEADUIO default to off, package links to
     libpulse when availble on system
   - Don't reset options to just LAME when not building
     on package server
   - Convert to new LID_DEPENDS format, use option helpers
   
   PR:		ports/182838
   Submitted by:	me
   Approved by:	maintainer timeout
 
 Modified:
   head/audio/sox/Makefile
 
 Modified: head/audio/sox/Makefile
 ==============================================================================
 --- head/audio/sox/Makefile	Sat Dec 14 10:51:26 2013	(r336435)
 +++ head/audio/sox/Makefile	Sat Dec 14 10:52:42 2013	(r336436)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	sox
  PORTVERSION=	14.4.1
 +PORTREVISION=	1
  CATEGORIES=	audio
  MASTER_SITES=	SF
  
 @@ -20,11 +21,11 @@ USE_LDCONFIG=	yes
  USE_AUTOTOOLS=	aclocal autoconf automake libltdl
  
  OPTIONS_DEFINE=	ALSA AO AMRNB AMRWB FFMPEG FLAC GSM ID3TAG LADSPA LAME \
 -		MAD PNG SNDFILE VORBIS WAVPACK
 +		MAD PNG PULSEAUDIO SNDFILE VORBIS WAVPACK
  OPTIONS_DEFAULT=	AO FFMPEG FLAC GSM ID3TAG MAD PNG SNDFILE VORBIS
  # Default LAME to off for packages so we don't end up RESTRICTED
  .if !defined(PACKAGE_BUILDING)
 -OPTIONS_DEFAULT=	LAME
 +OPTIONS_DEFAULT+=	LAME
  .endif
  
  AMRNB_DESC=	AMR Speech Codec (Narrowband)
 @@ -32,124 +33,70 @@ AMRWB_DESC=	AMR Speech Codec (Wideband)
  GSM_DESC=	Use libgsm from ports (else use bundled lib)
  PNG_DESC=	PNG spectrogram creation
  
 -.include <bsd.port.options.mk>
 -
  CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
  CONFIGURE_ARGS+=	--with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
 -CONFIGURE_ARGS+=	--with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
 +CONFIGURE_ARGS+=	--with-distro="${CONFIGURE_TARGET} ${PKGNAME}" \
 +			--with-gsm
  
 -.if ${PORT_OPTIONS:MALSA}
 -LIB_DEPENDS+=		libasound.so:${PORTSDIR}/audio/alsa-lib
 -RUN_DEPENDS+=		${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
 -CONFIGURE_ARGS+=	--with-alsa
 -.else
 -CONFIGURE_ARGS+=	--without-alsa
 -.endif
 +ALSA_CONFIGURE_WITH=	alsa
 +ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
 +ALSA_RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
  
 -.if ${PORT_OPTIONS:MAO}
 -CONFIGURE_ARGS+=	--with-ao
 -LIB_DEPENDS+=		libao.so:${PORTSDIR}/audio/libao
 -.else
 -CONFIGURE_ARGS+=	--without-ao
 -.endif
 +AO_CONFIGURE_WITH=	ao
 +AO_LIB_DEPENDS=		libao.so:${PORTSDIR}/audio/libao
  
 -.if ${PORT_OPTIONS:MAMRNB}
 -CONFIGURE_ARGS+=	--with-amrnb
 -LIB_DEPENDS+=		libamrnb.so:${PORTSDIR}/audio/libamrnb
 -.else
 -CONFIGURE_ARGS+=	--without-amrnb
 -.endif
 +AMRNB_CONFIGURE_WITH=	amrnb
 +AMRNB_LIB_DEPENDS=	libamrnb.so:${PORTSDIR}/audio/libamrnb
  
 -.if ${PORT_OPTIONS:MAMRWB}
 -CONFIGURE_ARGS+=	--with-amrwb
 -LIB_DEPENDS+=		libamrwb.so:${PORTSDIR}/audio/libamrwb
 -.else
 -CONFIGURE_ARGS+=	--without-amrwb
 -.endif
 +AMRWB_CONFIGURE_WITH=	amrwb
 +AMRWB_LIB_DEPENDS=	libamrwb.so:${PORTSDIR}/audio/libamrwb
  
 -.if ${PORT_OPTIONS:MFFMPEG}
 -CONFIGURE_ARGS+=	--with-ffmpeg
 -LIB_DEPENDS+=		libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
 -.else
 -CONFIGURE_ARGS+=	--without-ffmpeg
 -.endif
 +FFMPEG_CONFIGURE_WITH=	ffmpeg
 +FFMPEG_LIB_DEPENDS=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
  
 -.if ${PORT_OPTIONS:MVORBIS}
 -CONFIGURE_ARGS+=	--with-oggvorbis
 -LIB_DEPENDS+=		libvorbis.so:${PORTSDIR}/audio/libvorbis
 -.else
 -CONFIGURE_ARGS+=	--without-oggvorbis
 -.endif
 +VORBIS_CONFIGURE_WITH=	oggvorbis
 +VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTSDIR}/audio/libvorbis
  
 -.if ${PORT_OPTIONS:MSNDFILE}
 -CONFIGURE_ARGS+=	--with-sndfile
 -LIB_DEPENDS+=		libsndfile.so:${PORTSDIR}/audio/libsndfile
 -.else
 -CONFIGURE_ARGS+=	--without-sndfile
 -.endif
 +SNDFILE_CONFIGURE_WITH=	sndfile
 +SNDFILE_LIB_DEPENDS=	libsndfile.so:${PORTSDIR}/audio/libsndfile
  
 -.if ${PORT_OPTIONS:MLADSPA}
 -CONFIGURE_ARGS+=	--with-ladspa
 -RUN_DEPENDS+=		${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 -BUILD_DEPENDS+=		${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 -.else
 -CONFIGURE_ARGS+=	--without-ladspa
 -.endif
 +LADSPA_CONFIGURE_WITH=	ladspa
 +LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
 +LADSPA_BUILD_DEPENDS=	${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
  
 -.if ${PORT_OPTIONS:MLAME}
 -CONFIGURE_ARGS+=	--with-lame
 -LIB_DEPENDS+=		libmp3lame.so:${PORTSDIR}/audio/lame
 -.else
 -CONFIGURE_ARGS+=	--without-lame
 -.endif
 +LAME_CONFIGURE_WITH=	lame
 +LAME_LIB_DEPENDS=	libmp3lame.so:${PORTSDIR}/audio/lame
  
 -.if ${PORT_OPTIONS:MFLAC}
 -CONFIGURE_ARGS+=	--with-flac
 -LIB_DEPENDS+=		libFLAC.so:${PORTSDIR}/audio/flac
 -.else
 -CONFIGURE_ARGS+=	--without-flac
 -.endif
 +FLAC_CONFIGURE_WITH=	flac
 +FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
  
 -.if ${PORT_OPTIONS:MMAD}
 -CONFIGURE_ARGS+=	--with-mad
 -LIB_DEPENDS+=		libmad.so:${PORTSDIR}/audio/libmad
 -.else
 -CONFIGURE_ARGS+=	--without-mad
 -.endif
 +MAD_CONFIGURE_WITH=	mad
 +MAD_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad
  
 -.if ${PORT_OPTIONS:MPNG}
 -CONFIGURE_ARGS+=	--with-png
 -LIB_DEPENDS+=		libpng15.so:${PORTSDIR}/graphics/png
 -.else
 -CONFIGURE_ARGS+=	--without-png
 -.endif
 +PNG_CONFIGURE_WITH=	png
 +PNG_LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
 +
 +PULSEAUDIO_CONFIGURE_WITH=	pulseaudio
 +PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
 +
 +GSM_LIB_DEPENDS=	libgsm.so:${PORTSDIR}/audio/gsm
 +
 +ID3TAG_CONFIGURE_WITH=	id3tag
 +ID3TAG_LIB_DEPENDS=	libid3tag.so:${PORTSDIR}/audio/libid3tag
 +
 +WAVPACK_CONFIGURE_WITH=	wavpack
 +WAVPACK_LIB_DEPENDS=	libwavpack.so:${PORTSDIR}/audio/wavpack
  
 -.if ${PORT_OPTIONS:MGSM}
 -CONFIGURE_ARGS+=	--with-gsm
 -LIB_DEPENDS+=		libgsm.so:${PORTSDIR}/audio/gsm
 -.else
 -CONFIGURE_ARGS+=	--with-gsm
 +.include <bsd.port.options.mk>
 +
 +.if ! ${PORT_OPTIONS:MGSM}
  # We cannot ask for gsm to be enabled without it trying to use external gsm,
  # so force the autoconf checks to fail
  CONFIGURE_ENV+=	ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
  		ac_cv_lib_gsm_gsm_create=no
  .endif
  
 -.if ${PORT_OPTIONS:MID3TAG}
 -CONFIGURE_ARGS+=	--with-id3tag
 -LIB_DEPENDS+=		libid3tag.so:${PORTSDIR}/audio/libid3tag
 -.else
 -CONFIGURE_ARGS+=	--without-id3tag
 -.endif
 -
 -.if ${PORT_OPTIONS:MWAVPACK}
 -CONFIGURE_ARGS+=	--with-wavpack
 -LIB_DEPENDS+=		libwavpack.so:${PORTSDIR}/audio/wavpack
 -.else
 -CONFIGURE_ARGS+=	--without-wavpack
 -.endif
 -
  post-patch:
  	@${REINPLACE_CMD} -e 's/ CODEC_ID/ AV_CODEC_ID/g' \
  		-e 's/ CodecID/ AVCodecID/g' \
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
