git: 390e09a82cda - main - audio/libmad: Add ACCURACY and SPEED options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Jul 2022 21:54:13 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=390e09a82cda665f8742df005574f673fd130545 commit 390e09a82cda665f8742df005574f673fd130545 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-07-11 21:52:53 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-07-11 21:52:53 +0000 audio/libmad: Add ACCURACY and SPEED options The SPEED option is missing in 0.16.0 update (519c89efe3a9ddc8f3a57d1bb4940ff355086576). Add it back via OPTIONS_SINGLE_OPTIMIZE. --- audio/libmad/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/audio/libmad/Makefile b/audio/libmad/Makefile index 8f2bb77e16b1..aad9ba4a965b 100644 --- a/audio/libmad/Makefile +++ b/audio/libmad/Makefile @@ -16,6 +16,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING USES= cmake cpe pathfix +CMAKE_OFF= MADD_ASM MADD16_ASM +CMAKE_ON= ASO BUILD_SHARED_LIBS USE_LDCONFIG= yes PLIST_SUB= PORTVERSION=${PORTVERSION} @@ -25,4 +27,13 @@ CPE_VENDOR= underbit USE_GITHUB= yes GH_ACCOUNT= tenacityteam +OPTIONS_SINGLE= OPTIMIZE +OPTIONS_SINGLE_OPTIMIZE=ACCURACY SPEED +OPTIONS_DEFAULT=SPEED +ACCURACY_DESC= Optimize for accuracy over speed +SPEED_DESC= Optimize for speed over accuracy + +ACCURACY_CMAKE_ON= -DOPTIMIZE=ACCURACY +SPEED_CMAKE_ON= -DOPTIMIZE=SPEED + .include <bsd.port.mk>