aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm32
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-10-21 19:42:02 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-10-21 19:42:02 +0000
commitc34923acef63db3b1d16cac5cfcf79f91d655875 (patch)
tree49dae25fcd6b7a76064286a77dfeadb5278d4968 /devel/llvm32
parentc7a798ee5084e346e3150d67d8a0b1ff9802f9c2 (diff)
downloadports-c34923acef63db3b1d16cac5cfcf79f91d655875.tar.gz
ports-c34923acef63db3b1d16cac5cfcf79f91d655875.zip
Correct conflicting ldconfig config files by setting UNIQUENAME.
Strip installed libraries with ${STRIP_CMD}. Some whitespace tidying.
Notes
Notes: svn path=/head/; revision=331178
Diffstat (limited to 'devel/llvm32')
-rw-r--r--devel/llvm32/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/llvm32/Makefile b/devel/llvm32/Makefile
index 2102ca862833..46c681f76c52 100644
--- a/devel/llvm32/Makefile
+++ b/devel/llvm32/Makefile
@@ -2,6 +2,7 @@
PORTNAME= llvm
PORTVERSION= 3.2
+PORTREVISION= 1
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
@@ -16,6 +17,7 @@ LLVM_SUFFIX= ${PORTVERSION:S/.//g}
LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX}
DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX}
+UNIQUENAME= ${PORTNAME}${LLVM_SUFFIX}
USES= gmake perl5
GNU_CONFIGURE= yes
@@ -73,6 +75,12 @@ COMMANDS= bugpoint \
opt
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
+STRIP_LIBS= BugpointPasses.so \
+ LLVMHello.so \
+ libLLVM-${PORTVERSION}.so.0 \
+ libLTO.so \
+ libprofile_rt.so
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MASSERTS}
@@ -168,6 +176,7 @@ post-install:
${MV} ${STAGEDIR}${LLVM_PREFIX}/lib/${LIBNAME} \
${STAGEDIR}${LLVM_PREFIX}/lib/${LIBNAME}.0
${LN} -sf ${LIBNAME}.0 ${STAGEDIR}${LLVM_PREFIX}/lib/${LIBNAME}
+ ${STRIP_CMD} ${STRIP_LIBS:S|^|${STAGEDIR}${LLVM_PREFIX}/lib/|}
${INSTALL_SCRIPT} ${WRKDIR}/llvm-wrapper.sh \
${STAGEDIR}${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX}
.for command in ${COMMANDS:C/^/XXXX/1:NXXXX*}