ports/devel/llvm32/files/llvm-wrapper.sh.in
Brooks Davis 2c6611d8cf Add llvm32 and clang32 ports modeled on the llvm33 and clang33 ports.
These ports install binaries with "32" suffixes and most data lives in
${PREFIX}/llvm32 so there are no conflicts.

NOTE: devel/llvm and lang/clang will shortly be removed in favor of
these ports.
2013-10-18 22:06:39 +00:00

10 lines
252 B
Bash

#!/bin/sh
# $FreeBSD$
LLVM_PREFIX="%%LLVM_PREFIX%%"
LLVM_SUFFIX="%%LLVM_SUFFIX%%"
tool=$(basename $0)
tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
"${tool}" "${@}"