summaryrefslogtreecommitdiff
path: root/audio/libmpg123/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libmpg123/options.mk')
-rw-r--r--audio/libmpg123/options.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/libmpg123/options.mk b/audio/libmpg123/options.mk
new file mode 100644
index 00000000000..090cfe8ab39
--- /dev/null
+++ b/audio/libmpg123/options.mk
@@ -0,0 +1,38 @@
+# $NetBSD: options.mk,v 1.1.1.1 2008/09/07 00:56:15 bjs Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libmp123
+PKG_SUPPORTED_OPTIONS= inet6 debug
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "i386"
+PKG_SUPPORTED_OPTIONS+= simd
+.elif !empty(MACHINE_ARCH:Marm*)
+PKG_SUPPORTED_OPTIONS+= mpg123-arm-fixed64
+.endif
+
+PKG_SUGGESTED_OPTIONS= ${PKG_SUPPORTED_OPTIONS}
+
+.include "../../mk/bsd.options.mk"
+
+SIMD_CONFIGURE_ARGS.powerpc= altvec
+SIMD_CONFIGURE_ARGS.i386= x86_dither
+
+.if empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --with-ipv6=no
+.endif
+
+.if !empty(PKG_OPTIONS:Msimd)
+CONFIGURE_ARGS+= --with-cpu=${SIMD_CONFIGURE_ARGS.${MACHINE_ARCH}}
+.elif !empty(PKG_OPTIONS:Mmpg123-arm-fixed64)
+CONFIGURE_ARGS+= --with-cpu=generic_nofpu
+.else
+CONFIGURE_ARGS+= --with-cpu=generic_fpu
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug=yes
+.else
+CONFIGURE_ARGS+= --enable-debug=no
+.endif