openbsd-ports/devel/llvm/Makefile
sthen 88ea72915d Change SEPARATE_BUILD=(concurrent|simple) to Yes; bsd.port.mk doesn't
make a distinction between these.  ok aja@ dcoppa@
2012-03-29 13:38:12 +00:00

83 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.38 2012/03/29 13:38:30 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}
NOT_FOR_ARCHS = sparc # uses too much memory
# 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 = Yes
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>