[123663] trunk/dports/lang/ispc
takeshi at macports.org
takeshi at macports.org
Tue Aug 12 00:03:50 PDT 2014
Revision: 123663
https://trac.macports.org/changeset/123663
Author: takeshi at macports.org
Date: 2014-08-12 00:03:50 -0700 (Tue, 12 Aug 2014)
Log Message:
-----------
ispc: added a patch to Makefile
Modified Paths:
--------------
trunk/dports/lang/ispc/Portfile
Added Paths:
-----------
trunk/dports/lang/ispc/files/
trunk/dports/lang/ispc/files/patch-Makefile.diff
Modified: trunk/dports/lang/ispc/Portfile
===================================================================
--- trunk/dports/lang/ispc/Portfile 2014-08-12 06:59:01 UTC (rev 123662)
+++ trunk/dports/lang/ispc/Portfile 2014-08-12 07:03:50 UTC (rev 123663)
@@ -5,6 +5,7 @@
PortGroup github 1.0
github.setup ispc ispc 1.7.0 v
+revision 1
categories lang parallel
platforms darwin
supported_archs x86_64
@@ -28,12 +29,8 @@
use_configure no
configure.compiler macports-clang-${llvm_version}
+patchfiles patch-Makefile.diff
post-patch {
- reinplace {s|clang++|${configure.cxx}|} ${worksrcpath}/Makefile
- foreach f {run_tests.py examples/common.mk \
- examples/aobench_instrumented/Makefile examples/simple/Makefile} {
- reinplace "s|g++|${configure.cxx}|" ${worksrcpath}/${f}
- }
if {[variant_isset doc]} {
reinplace {s|rst2html.py|rst2html-2.7.py|} ${worksrcpath}/docs/build.sh
}
Added: trunk/dports/lang/ispc/files/patch-Makefile.diff
===================================================================
--- trunk/dports/lang/ispc/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/lang/ispc/files/patch-Makefile.diff 2014-08-12 07:03:50 UTC (rev 123663)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-08-12 15:55:02.000000000 +0900
++++ Makefile 2014-08-12 15:56:10.000000000 +0900
+@@ -86,7 +86,7 @@
+ ARCH_TYPE = $(shell arch)
+
+ LLVM_CXXFLAGS=$(shell $(LLVM_CONFIG) --cppflags)
+-LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e s/\\./_/ -e s/svn// -e s/\.0//)
++LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e s/\\./_/ -e s/svn// -e s/\\.[0-9]*//)
+ LLVM_VERSION_DEF=-D$(LLVM_VERSION)
+
+ LLVM_COMPONENTS = engine ipo bitreader bitwriter instrumentation linker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140812/1d11ab3b/attachment.html>
More information about the macports-changes
mailing list