diff options
Diffstat (limited to 'audio/mpg123')
-rw-r--r-- | audio/mpg123/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile index 096faf892b96..2309abf5fa6d 100644 --- a/audio/mpg123/Makefile +++ b/audio/mpg123/Makefile @@ -25,8 +25,7 @@ pre-configure: .if $(MACHINE_ARCH) == "i386" .if !defined(OPT_ARCH) || (($(OPT_ARCH) != "i486") && ($(OPT_ARCH) != "i586")) @echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" - @echo "Please considering setting OPT_ARCH to match your hardware to build mpg123" - @echo "optimised for your hardware (e.g: make OPT_ARCH=i486)" + @echo "Note: you can set OPT_ARCH to optimize for your hardware. (Eg:- make OPT_ARCH=i486)" .if $(PORTOBJFORMAT) == "elf" @echo "Valid values are: i486, i586" .else @@ -36,4 +35,17 @@ pre-configure: .endif .endif +.if $(PORTOBJFORMAT) == "elf" +OPT_ARCH?= i586 +.else +OPT_ARCH?= i486 +.endif + +# Uncomment this line below to optimise for i486 family CPUs on ELF boxes +# OPT_ARCH= i486 + +.if defined(OPT_ARCH) +MAKE_ARGS+= OPT_ARCH=$(OPT_ARCH) +.endif + .include <bsd.port.post.mk> |