git: 9c7774322415 - main - graphics/vapoursynth-fmtconv: Fix build when CPUTYPE isn't defined
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Aug 2023 11:53:49 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=9c7774322415cab8ec0fea0715f536e340b4bbf3 commit 9c7774322415cab8ec0fea0715f536e340b4bbf3 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-08-06 11:50:47 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-08-06 11:53:44 +0000 graphics/vapoursynth-fmtconv: Fix build when CPUTYPE isn't defined Make fails to execute on some systems when CPUTYPE isn't defined, wrap it behind bsd.port.options.mk to fix it Reported by: dvl --- graphics/vapoursynth-fmtconv/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/graphics/vapoursynth-fmtconv/Makefile b/graphics/vapoursynth-fmtconv/Makefile index 0b42c54e5ad0..3c87e618a83c 100644 --- a/graphics/vapoursynth-fmtconv/Makefile +++ b/graphics/vapoursynth-fmtconv/Makefile @@ -27,15 +27,17 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} PORTDOCS= * PLIST_FILES= lib/vapoursynth/lib${PORTNAME}.so -# We need at least AVX2 instructions on amd64 -.if !defined(CPUTYPE) && ${ARCH} == "amd64" -CONFIGURE_ENV+= EXTRA_CXXFLAGS=-march=haswell -.endif - CONFIGURE_ARGS= --libdir="${PREFIX}/lib/vapoursynth" OPTIONS_DEFINE= DOCS +.include <bsd.port.options.mk> + +# We need at least AVX2 instructions on amd64 +.if !defined(CPUTYPE) && ${ARCH} == "amd64" +CONFIGURE_ENV+= EXTRA_CXXFLAGS=-march=haswell +.endif + post-patch: @${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \ ${WRKSRC}/configure.ac