f4d02cde5d
Fix PLIST handling with options. Add dlopen include. Don't force OSS when not availible. Handle sun output with more care (including PLIST). Take maintainership.
136 lines
2.8 KiB
Makefile
136 lines
2.8 KiB
Makefile
# $NetBSD: options.mk,v 1.5 2008/07/16 14:04:29 ahoka Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cmus
|
|
PKG_SUPPORTED_OPTIONS= flac mad vorbis arts ao mpcdec faad wavpack #alsa
|
|
PKG_SUPPORTED_OPTIONS+= wide-curses
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= mod
|
|
PKG_OPTIONS_GROUP.mod= modplug mikmod
|
|
PKG_SUGGESTED_OPTIONS= flac mad ao vorbis modplug
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
|
|
|
|
###
|
|
### Backends
|
|
###
|
|
|
|
# AO support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mao)
|
|
. include "../../audio/libao/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_AO=y
|
|
PLIST.ao= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_AO=n
|
|
.endif
|
|
|
|
# ARTS support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Marts)
|
|
. include "../../audio/arts/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_ARTS=y
|
|
PLIST.arts= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_ARTS=n
|
|
.endif
|
|
|
|
# ALSA support
|
|
#
|
|
# UNTESTED
|
|
#.if !empty(PKG_OPTIONS:Malsa)
|
|
#ONLY_FOR_PLATFORM= Linux-*-* # Alsa is Linux only
|
|
#CONFIGURE_ARGS+= CONFIG_ALSA=y
|
|
#.endif
|
|
|
|
###
|
|
### Codecs
|
|
###
|
|
|
|
# MAD support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mmad)
|
|
.include "../../audio/libmad/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_MAD=y
|
|
PLIST.mad= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_MAD=n
|
|
.endif
|
|
|
|
# VORBIS support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mvorbis)
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_VORBIS=y
|
|
PLIST.vorbis= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_VORBIS=n
|
|
.endif
|
|
|
|
# FLAC support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mflac)
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_FLAC=y
|
|
PLIST.flac= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_FLAC=n
|
|
.endif
|
|
|
|
# MPCDEC support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mmpcdec)
|
|
.include "../../audio/libmpcdec/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_MPC=y
|
|
PLIST.mpcdec= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_MPC=n
|
|
.endif
|
|
|
|
# VAWPACK support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mwavpack)
|
|
.include "../../audio/wavpack/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_WAVPACK=y
|
|
PLIST.wavpack= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_WAVPACK=n
|
|
.endif
|
|
|
|
# modplay support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mmikmod)
|
|
.include "../../audio/libmikmod/buildlink3.mk"
|
|
.include "../../audio/libaudiofile/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_MODPLUG=n
|
|
CONFIGURE_ARGS+= CONFIG_MIKMOD=y
|
|
PLIST.mikmod= yes
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mmodplug)
|
|
.include "../../audio/libmodplug/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_MODPLUG=y
|
|
CONFIGURE_ARGS+= CONFIG_MIKMOD=n
|
|
PLIST.modplug= yes
|
|
.endif
|
|
|
|
# FAAD support
|
|
#
|
|
.if !empty(PKG_OPTIONS:Mfaad)
|
|
.include "../../audio/faad2/buildlink3.mk"
|
|
.include "../../multimedia/libmp4v2/buildlink3.mk"
|
|
CONFIGURE_ARGS+= CONFIG_AAC=y
|
|
CONFIGURE_ARGS+= CONFIG_MP4=y
|
|
PLIST.faad= yes
|
|
.else
|
|
CONFIGURE_ARGS+= CONFIG_AAC=n
|
|
CONFIGURE_ARGS+= CONFIG_MP4=n
|
|
.endif
|
|
|
|
###
|
|
### Wide curses support; otherwise, default to using narrow curses.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mwide-curses)
|
|
. include "../../devel/ncursesw/buildlink3.mk"
|
|
.else
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
.endif
|