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:
parent
563bfffc17
commit
9c77743224
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue