pkgsrc/lang/clang/Makefile
adam d12c5a0d81 LLVM 2.9 includes several major new capabilities:
* Type Based Alias Analysis (TBAA) is now implemented and turned on by default
  in Clang. This allows substantially better load/store optimization in some
  cases. TBAA can be disabled by passing -fno-strict-aliasing.
* This release has seen a continued focus on quality of debug information. LLVM
  now generates much higher fidelity debug information, particularly when
  debugging optimized code.
* Inline assembly now supports multiple alternative constraints.
* A new backend for the NVIDIA PTX virtual ISA (used to target its GPUs) is
  under rapid development. It is not generally useful in 2.9, but is making
  rapid progress.
2011-04-07 09:26:33 +00:00

50 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2011/04/07 09:26:33 adam Exp $
DISTNAME= clang-2.9
CATEGORIES= lang
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
DISTFILES= llvm-${PKGVERSION_NOREV}.tgz clang-${PKGVERSION_NOREV}.tgz
MAINTAINER= adam.hoka@gmail.com
HOMEPAGE= http://llvm.org/
COMMENT= Low Level Virtual Machine compiler infrastructure
LICENSE= modified-bsd
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV}
USE_LANGUAGES= c c++
USE_TOOLS+= chown perl:build gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-assertions
CONFIGURE_ARGS+= --disable-bindings # disable OCaml
CONFIGURE_ARGS+= --disable-timestamps
CONFIGURE_ARGS+= --enable-optimized
MAKE_DIRS+= etc/llvm
INSTALLATION_DIRS= bin lib libexec
CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm
TEST_TARGET= check unittests
.include "../../mk/bsd.prefs.mk"
.if ${_OPSYS_SHLIB_TYPE} == "dylib"
PLIST_SUBST+= SOEXT="dylib"
.else
PLIST_SUBST+= SOEXT="so"
.endif
SUBST_CLASSES+= perl
SUBST_MESSAGE.perl= Fixing llvm-configure PERL path
SUBST_STAGE.perl= post-patch
SUBST_FILES.perl= tools/llvm-config/llvm-config.in.in
SUBST_SED.perl= -e 's,@PERL@,${PERL5},'
post-extract:
mv ${WRKDIR}/clang-${PKGVERSION_NOREV} ${WRKSRC}/tools/clang
.include "../../mk/bsd.pkg.mk"