f0bb115a15
elsewhere in the file. Reported by Amit Kulkarni.
82 lines
2.2 KiB
Makefile
82 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.36 2011/12/15 08:39:51 sthen Exp $
|
|
|
|
SHARED_LIBS += libclang 0.0 # 3.0
|
|
|
|
COMMENT = modular, fast C/C++/ObjC compiler, static analyzer and tools
|
|
|
|
LLVM_V = 3.0
|
|
REVISION = 0
|
|
DISTNAME = llvm-${LLVM_V}
|
|
|
|
CATEGORIES = devel
|
|
|
|
# packager notes in http://llvm.org/docs/Packaging.html
|
|
HOMEPAGE = http://www.llvm.org/
|
|
|
|
VMEM_WARNING = Yes
|
|
ONLY_FOR_ARCHS = ${GCC4_ARCHS}
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = c m pthread stdc++
|
|
|
|
MASTER_SITES = http://llvm.org/releases/${LLVM_V}/
|
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} clang-${LLVM_V}${EXTRACT_SUFX}
|
|
WRKDIST = ${WRKDIR}/llvm-${LLVM_V}.src
|
|
|
|
post-extract:
|
|
@mv ${WRKDIR}/clang-${LLVM_V}.src ${WRKDIST}/tools/clang
|
|
|
|
MODULES = devel/cmake \
|
|
lang/python
|
|
|
|
REGRESS_DEPENDS = devel/dejagnu
|
|
|
|
MAKE_FLAGS = OPTIMIZE_OPTION="${CFLAGS}" \
|
|
VERBOSE=Yes \
|
|
INSTALL="install -c"
|
|
|
|
REGRESS_FLAGS = RUNTESTFLAGS=
|
|
|
|
SEPARATE_BUILD = simple
|
|
USE_LIBTOOL = Yes
|
|
MAKE_ENV = REQUIRES_RTTI=1
|
|
|
|
CONFIGURE_STYLE = cmake
|
|
CONFIGURE_ARGS = -DLLVM_ENABLE_FFI:Bool=False \
|
|
-DCMAKE_BUILD_TYPE:String=Release
|
|
|
|
CLANG_INCLUDE_PATH = lib/clang/${LLVM_V}/include
|
|
SUBST_VARS += CLANG_INCLUDE_PATH
|
|
|
|
pre-configure:
|
|
@perl -pi -e s,-lpthread,-pthread,g ${WRKSRC}/configure
|
|
@${SUBST_CMD} ${WRKSRC}/tools/clang/tools/scan-build/scan-build
|
|
-@ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/docs/CommandGuide && for i in *.pod; do \
|
|
pod2man --release=CVS --center="LLVM Command Guide" \
|
|
$$i man/man1/$${i%.pod}.1; \
|
|
done
|
|
pod2man --release=CVS --center="LLVM Command Guide" \
|
|
${WRKSRC}/tools/clang/docs/tools/clang.pod \
|
|
${WRKSRC}/docs/CommandGuide/man/man1/clang.1
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
|
|
${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \
|
|
${WRKSRC}/tools/clang/tools/scan-build/scan-build ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js \
|
|
${WRKSRC}/tools/clang/tools/scan-build/scanview.css \
|
|
${PREFIX}/share/llvm
|
|
${INSTALL_DATA} ${WRKSRC}/docs/CommandGuide/man/man1/* \
|
|
${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|