svn commit: r410689 - in head/audio: sdl2_mixer sdl2_mixer/files sdl_mixer

Jan Beich jbeich at freebsd.org
Thu Mar 10 00:45:14 UTC 2016


Antoine Brodin <antoine at FreeBSD.org> writes:

> On Wed, Mar 9, 2016 at 6:18 AM, Jan Beich <jbeich at freebsd.org> wrote:
>
>> Author: jbeich
>> Date: Wed Mar  9 05:18:50 2016
>> New Revision: 410689
>> URL: https://svnweb.freebsd.org/changeset/ports/410689
>>
>> Log:
>>   audio/sdl{,2}_mixer: add TREMOR option
>>
>>   TREMOR is enabled by default on platforms without hardware floating point.
>>
>>   PR:           202689
>>   Approved by:  maintainer timeout (6 months)
> ...
>> @@ -46,6 +53,9 @@ SMPEG_CONFIGURE_OFF=          --disable-music-mp
>>  VORBIS_LIB_DEPENDS=            libvorbis.so:${PORTSDIR}/audio/libvorbis
>>  VORBIS_CONFIGURE_ENABLE=       music-ogg
>>
>> +TREMOR_LIB_DEPENDS=            libvorbisidec.so:${PORTSDIR}/audio/libtremor
>> +TREMOR_CONFIGURE_ENABLE=       music-ogg music-ogg-tremor
>
> This both --enable-music-ogg and --disable-music-ogg which looks wrong

Thanks for noticing early. Fixed in r410736. I've decided to stick to
option helpers rather than expanding into:

  VORBIS_CONFIGURE_ON=		--enable-music-ogg
  TREMOR_CONFIGURE_ON=		--enable-music-ogg --enable-music-ogg-tremor

  .include <bsd.port.options.mk>

  .if ! ${PORT_OPTIONS:MVORBIS} && ! ${PORT_OPTIONS:MTREMOR}
  CONFIGURE_ARGS+=		--disable-music-ogg
  .endif

For reference, here's what configure.in contains:

  AC_ARG_ENABLE([music-ogg],,[], [enable_music_ogg=yes])
  AC_ARG_ENABLE(music-ogg-tremor,, [], enable_music_ogg_tremor=no)
  if test x$enable_music_ogg = xyes; then
      if test x$enable_music_ogg_tremor = xyes; then
          AC_CHECK_HEADER([tremor/ivorbisfile.h], [have_tremor_hdr=yes])
          AC_CHECK_LIB([vorbisidec], [ov_open_callbacks], [have_tremor_lib=yes])
  [...]
      else
          AC_CHECK_HEADER([vorbis/vorbisfile.h], [have_ogg_hdr=yes])
          AC_CHECK_LIB([vorbisfile], [ov_open_callbacks], [have_ogg_lib=yes])
  [...]

compared to MOD options that don't depend on each other

  AC_ARG_ENABLE([music-mod],, [], [enable_music_mod=yes])
  if test x$enable_music_mod = xyes; then
      AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config, no, [$PATH])
  [...]
  AC_ARG_ENABLE([music-mod-modplug],, [], [enable_music_mod_modplug=no])
  if test x$enable_music_mod_modplug = xyes; then
          PKG_CHECK_MODULES([MODPLUG], [libmodplug >= 0.8.7])
  [...]

--
AC_ARG_ENABLE (FEATURE, HELP-STRING, [ACTION-IF-GIVEN], [ACTION-IF-NOT-GIVEN])
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20160310/6bc0a3bc/attachment.sig>


More information about the svn-ports-head mailing list