summaryrefslogtreecommitdiff
path: root/audio/sox/options.mk
diff options
context:
space:
mode:
authorwiz <wiz>2007-08-06 05:28:36 +0000
committerwiz <wiz>2007-08-06 05:28:36 +0000
commite17b677ef829e6a0ad0e9feda2f61490ca7fdc5f (patch)
tree03d9648d22638292fdbc7d5ca6cbada98c3e8d85 /audio/sox/options.mk
parent4166647772a1eac4eb6f8838762ce2c0a445ee6f (diff)
downloadpkgsrc-e17b677ef829e6a0ad0e9feda2f61490ca7fdc5f.tar.gz
Add an option to turn on OSS support (instead of turning it off
unconditionally), for DragonFly. Based on a patch provided by Steve O'Hara-Smith on pkgsrc-users. While here, split off options handling into an options.mk file.
Diffstat (limited to 'audio/sox/options.mk')
-rw-r--r--audio/sox/options.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/sox/options.mk b/audio/sox/options.mk
new file mode 100644
index 00000000000..a9d9fa4419c
--- /dev/null
+++ b/audio/sox/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2007/08/06 05:28:37 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.sox
+PKG_SUPPORTED_OPTIONS= lame oss
+# lame has LICENSE= issues and thus should not be SUGGESTED.
+PKG_SUGGESTED_OPTIONS=
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlame)
+# This is an option due to LICENSE= issues.
+.include "../../audio/lame/buildlink3.mk"
+.endif
+
+.if empty(PKG_OPTIONS:Moss)
+CONFIGURE_ARGS+= --without-oss
+.endif