tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SunOS with no audio installed



2009/11/21 Filip Hajny <filip%joyent.com@localhost>:
> On 21.11.2009, at 11:45, OBATA Akio wrote:
>
>> By your suggested patch, PLIST.sunaudio != yes on other platforms.
>> It should be
>>
>> +PLIST_VARS+= Â Â Â Â Â sunaudio
>> +.if ${OPSYS} != "SunOS" || exists(/usr/include/sys/audioio.h)
>> +PLIST.sunaudio= Â Â Â Â Â Â Â Âyes
>> +.endif
>>
>
> Yes, in the case of libsndfile, where the sndfile_play binary may use other
> libraries on non-Sun systems. In other cases, e.g. Python, sunaudiodev.so is
> listed for SunOS in general, but some Solaris systems may be missing the
> audio support needed.
>
>> You may use "features" for the purpose.
>> ...
>
> Yes, this sounds like a much better approach, thanks. I'll submit a patch
> for approval before I commit this.
>
>> BTW, I can't find why libsndfile succeed to build without sys/audioio.h,
>> it seems that
>> sndfile_play is always built (and if no sys/audioio.h on Solaris, failed
>> to build).
>
> As explained above, sndfile_play is not Solaris-specific, and only includes
> audioio.h on Solaris platforms.

Maybe this would be better as a more generic 'audio' or 'audiodevice'
feature, defaulted to on for non Solaris?


Home | Main Index | Thread Index | Old Index