pkgsrc-wip/mpg123/options.mk
Blair Sadewitz 58985cab1b Add sun module, change TODO to start reflecting reality, update distinfos
(I'll kill this redundancy soon), add some patches from pkgsrc.

This really needs testing on other architectures/platforms so we can
decide which patches from audio/mpg123 are actually needed.

Also, I *think* I used the right arguments for madvise(), but I'm
not 100% sure ...

This is definitely faster and more robust than 0.59r; for instance,
It can decode two simultaneous 128kbps stereo streams on a 486DX/133.

I could always use help extending the sun audio module for NetBSD,
too--though it seems to work well enough for starters.
2007-12-28 02:54:36 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: options.mk,v 1.7 2007/12/28 02:54:36 bsadewitz Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.mpg123
PKG_SUPPORTED_OPTIONS= mpg123-no-fifo
.include "../../mk/bsd.fast.prefs.mk"
MPG123_OPTIONS.fpu= generic_fixed generic_fpu generic_nofpu
PKG_OPTIONS_GROUP.i386= x86_dither
PKG_OPTIONS_GROUP.powerpc= altivec
PKG_OPTIONS_OPTIONAL_GROUPS= ${MACHINE_ARCH}
PKG_SUGGESTED_OPTIONS.${MACHINE_ARCH}?= generic_fpu
PKG_SUGGESTED_OPTIONS.arm= generic_fixed
PKG_SUGGESTED_OPTIONS.arm32= generic_fixed
PKG_SUGGESTED_OPTIONS.i386= x86_dither
PKG_SUGGESTED_OPTIONS.powerpc= altivec
.if defined(PKG_OPTIONS_GROUP.${MACHINE_ARCH})
PKG_OPTIONS_GROUP.fpu= ${MPG123_OPTIONS.fpu}
PKG_OPTIONS_OPTIONAL_GROUPS+= fpu
.else
PKG_OPTIONS_SET.fpu= ${MPG123_OPTIONS.fpu}
PKG_OPTIONS_NONEMPTY_SETS+= ${MPG123_OPTIONS.fpu}
.endif
PKG_SUGGESTED_OPTIONS= ${PKG_SUGGESTED_OPTIONS.${MACHINE_ARCH}}
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgeneric_*)
CONFIGURE_ARGS+= --with-cpu=${PKG_OPTIONS:Mgeneric_*)
.elif defined(PKG_OPTIONS_GROUP.${MACHINE_ARCH})
CONFIGURE_ARGS+= --with-cpu=${PKG_OPTIONS_GROUP.${MACHINE_ARCH}:@.o.@${PKG_OPTIONS:M${.o.}}@}
.endif
.if !empty(PKG_OPTIONS:Mmpg123-no-fifo)
CONFIGURE_ARGS+= --enable-fifo=no
.else
CONFIGURE_ARGS+= --enable-fifo=yes
.endif