aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-07 21:44:32 +0800
committered <ed@FreeBSD.org>2015-08-07 21:44:32 +0800
commita2ec0da4fc48235d2048190576eeb973943e4f7a (patch)
tree2af89689863d0df172e0754ff9f1059eca9d0ff7 /lang
parentd85d8e31153a9eb6f2ac5e4df077d13835998cb9 (diff)
downloadfreebsd-ports-gnome-a2ec0da4fc48235d2048190576eeb973943e4f7a.tar.gz
freebsd-ports-gnome-a2ec0da4fc48235d2048190576eeb973943e4f7a.tar.zst
freebsd-ports-gnome-a2ec0da4fc48235d2048190576eeb973943e4f7a.zip
Let lang/cloudabi-clang follow a stable release.
LLVM 3.7 will be the first release to offer CloudABI support out of the box. Instead of depending on devel/llvm-devel, switch over to using devel/llvm37.
Diffstat (limited to 'lang')
-rw-r--r--lang/cloudabi-clang/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/cloudabi-clang/Makefile b/lang/cloudabi-clang/Makefile
index 3ee5858acb0a..0c8acf466f65 100644
--- a/lang/cloudabi-clang/Makefile
+++ b/lang/cloudabi-clang/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= cloudabi-clang
-PORTVERSION= 1.0
+PORTVERSION= 3.7
CATEGORIES= lang
MASTER_SITES= # None
DISTFILES= # None
@@ -12,22 +12,24 @@ COMMENT= Clang for CloudABI
LICENSE= MIT
-RUN_DEPENDS= clang-devel:${PORTSDIR}/devel/llvm-devel \
+RUN_DEPENDS= clang${LLVM_SUFFIX}:${PORTSDIR}/devel/llvm${LLVM_SUFFIX} \
x86_64-unknown-cloudabi-ld:${PORTSDIR}/devel/cloudabi-binutils
+LLVM_SUFFIX= ${DISTVERSION:S/.//}
+
NO_BUILD= yes
PLIST_FILES= bin/x86_64-unknown-cloudabi-cc \
bin/x86_64-unknown-cloudabi-c++ \
- llvm-devel/x86_64-unknown-cloudabi
+ llvm${LLVM_SUFFIX}/x86_64-unknown-cloudabi
do-install:
- @${LN} -s ../llvm-devel/bin/clang \
+ @${LN} -s ../llvm${LLVM_SUFFIX}/bin/clang \
${STAGEDIR}${PREFIX}/bin/x86_64-unknown-cloudabi-cc
- @${LN} -s ../llvm-devel/bin/clang++ \
+ @${LN} -s ../llvm${LLVM_SUFFIX}/bin/clang++ \
${STAGEDIR}${PREFIX}/bin/x86_64-unknown-cloudabi-c++
- @${MKDIR} ${STAGEDIR}${PREFIX}/llvm-devel
+ @${MKDIR} ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}
@${LN} -s ../x86_64-unknown-cloudabi \
- ${STAGEDIR}${PREFIX}/llvm-devel/x86_64-unknown-cloudabi
+ ${STAGEDIR}${PREFIX}/llvm${LLVM_SUFFIX}/x86_64-unknown-cloudabi
.include <bsd.port.mk>