Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2019 05:43:42 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r495563 - in head/multimedia/vapoursynth-l-smash-works: . files
Message-ID:  <201903130543.x2D5hgm1069291@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903130543.x2D5hgm1069291>