pkgsrc/audio/libsndfile/options.mk

44 lines
1.1 KiB
Makefile
Raw Normal View History

2010-10-16 10:23:04 +02:00
# $NetBSD: options.mk,v 1.9 2010/10/16 08:23:04 adam Exp $
2005-05-31 18:13:18 +02:00
PKG_OPTIONS_VAR= PKG_OPTIONS.libsndfile
PKG_SUPPORTED_OPTIONS= octave
PKG_OPTIONS_OPTIONAL_GROUPS= output
PKG_OPTIONS_GROUP.output= oss sun
SNDFILE_OUTPUT.NetBSD= sun
SNDFILE_OUTPUT.OpenBSD= sun
SNDFILE_OUTPUT.SunOS= sun
.include "../../mk/bsd.fast.prefs.mk"
.if !defined(SNDFILE_OUTPUT.${OPSYS})
CHECK_BUILTIN.oss:= yes
. include "../../mk/oss.builtin.mk"
CHECK_BUILTIN.oss:= no
. if defined(IS_BUILTIN.oss) && !empty(IS_BUILTIN.oss:M[yY][eE][sS])
SNDFILE_OUTPUT.${OPSYS}?= oss
. endif
.endif
PKG_SUGGESTED_OPTIONS= ${SNDFILE_OUTPUT.${OPSYS}}
2005-05-31 18:13:18 +02:00
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Moctave)
2010-10-16 10:23:04 +02:00
USE_LANGUAGES= c c++ fortran
USE_TOOLS+= gmake
.include "../../math/octave/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-octave
.endif
2005-05-31 18:13:18 +02:00
.if !empty(PKG_OPTIONS:Moss)
.include "../../mk/oss.buildlink3.mk"
2005-12-18 22:47:23 +01:00
OSS_DEFS= -DDEV_DSP=\"${DEVOSSAUDIO:Q}\" -DUSE_OSS=1
2005-05-31 18:13:18 +02:00
MAKE_ENV+= AM_CFLAGS=${OSS_DEFS:Q}
.elif !empty(PKG_OPTIONS:Msun)
DEVSUNAUDIO?= /dev/audio
SUN_DEFS= -DUSE_SUN -DDEV_SUN=\"${DEVSUNAUDIO:Q}\"
MAKE_ENV+= AM_CFLAGS=${SUN_DEFS:Q}
2005-05-31 18:13:18 +02:00
.endif