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
This commit is contained in:
Daniel Engberg 2023-08-06 13:50:47 +02:00
parent 563bfffc17
commit 9c77743224

View file

@ -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