pkgsrc-wip/freeswitch-music/options.mk

42 lines
1.2 KiB
Makefile

# $NetBSD: options.mk,v 1.5 2016/07/09 11:41:57 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freeswitch
PKG_SUPPORTED_OPTIONS= freeswitch-08k freeswitch-16k freeswitch-32k freeswitch-48k
PKG_SUGGESTED_OPTIONS= freeswitch-08k freeswitch-16k freeswitch-32k freeswitch-48k
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mfreeswitch-08k)
DISTFILES+= freeswitch-sounds-music-8000-${VERSION}.tar.gz
INSTALLATION_DIRS+= share/freeswitch/sounds/music/default/8000
SOUND_DIRS+= 8000
.endif
.if !empty(PKG_OPTIONS:Mfreeswitch-16k)
DISTFILES+= freeswitch-sounds-music-16000-${VERSION}.tar.gz
SOUND_DIRS+= 16000
INSTALLATION_DIRS+= share/freeswitch/sounds/music/default/16000
.endif
.if !empty(PKG_OPTIONS:Mfreeswitch-32k)
DISTFILES+= freeswitch-sounds-music-32000-${VERSION}.tar.gz
SOUND_DIRS+= 32000
INSTALLATION_DIRS+= share/freeswitch/sounds/music/default/32000
.endif
.if !empty(PKG_OPTIONS:Mfreeswitch-48k)
DISTFILES+= freeswitch-sounds-music-48000-${VERSION}.tar.gz
SOUND_DIRS+= 48000
INSTALLATION_DIRS+= share/freeswitch/sounds/music/default/48000
.endif
.for opt in ${PKG_SUPPORTED_OPTIONS}
. if !empty(PKG_OPTIONS:M${opt})
PLIST_SUBST+= ${opt}=""
. else
PLIST_SUBST+= ${opt}="@comment "
. endif
.endfor
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}