svn commit: r495563 - in head/multimedia/vapoursynth-l-smash-works: . files
Mark Linimon
linimon at FreeBSD.org
Wed Mar 13 05:43:43 UTC 2019
Author: linimon
Date: Wed Mar 13 05:43:41 2019
New Revision: 495563
URL: https://svnweb.freebsd.org/changeset/ports/495563
Log:
Fix build on non-x86 architectures:
cc1: error: unrecognized command line option "-msse2"
Approved by: portmgr (tier-2 blanket)
Added:
head/multimedia/vapoursynth-l-smash-works/files/
head/multimedia/vapoursynth-l-smash-works/files/extra-patch-GNUmakefile (contents, props changed)
Modified:
head/multimedia/vapoursynth-l-smash-works/Makefile
Modified: head/multimedia/vapoursynth-l-smash-works/Makefile
==============================================================================
--- head/multimedia/vapoursynth-l-smash-works/Makefile Wed Mar 13 05:41:37 2019 (r495562)
+++ head/multimedia/vapoursynth-l-smash-works/Makefile Wed Mar 13 05:43:41 2019 (r495563)
@@ -58,4 +58,11 @@ post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# disable sse on non-x86 archs
+.if ${ARCH} != amd64 && ${ARCH} != i386
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-GNUmakefile
+.endif
+
+.include <bsd.port.post.mk>
Added: head/multimedia/vapoursynth-l-smash-works/files/extra-patch-GNUmakefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/vapoursynth-l-smash-works/files/extra-patch-GNUmakefile Wed Mar 13 05:43:41 2019 (r495563)
@@ -0,0 +1,10 @@
+--- GNUmakefile.orig 2018-03-31 09:55:14 UTC
++++ GNUmakefile
+@@ -53,7 +53,7 @@ endif
+
+ .depend: config.mak
+ @$(RM) .depend
+- @$(foreach SRC, $(SRC_ALL:%=$(SRCDIR)/%), $(CC) $(SRC) $(CFLAGS) -msse2 -g0 -MT $(SRC:$(SRCDIR)/%.c=%.o) -MM >> .depend;)
++ @$(foreach SRC, $(SRC_ALL:%=$(SRCDIR)/%), $(CC) $(SRC) $(CFLAGS) -g0 -MT $(SRC:$(SRCDIR)/%.c=%.o) -MM >> .depend;)
+
+ config.mak:
More information about the svn-ports-all
mailing list