Versionize for parallel installation with newer llvm
[git/cygwin-packages/llvm3.5.git] / llvm3.5.cygport
CommitLineData
3b9f5fc1
YS
1NAME="llvm3.5"
2VERSION=3.5.2
3RELEASE=2
4CATEGORY="Libs"
5SUMMARY="LLVM bytecode interpreter and toolchain"
6DESCRIPTION="The LLVM Core libraries provide a modern source- and target-
7independent optimizer, along with code generation support for many popular CPUs
8(as well as some less common ones!) These libraries are built around a well
9specified code representation known as the LLVM intermediate representation."
10HOMEPAGE="http://www.llvm.org/"
11SRC_URI="http://www.llvm.org/releases/${VERSION}/llvm-${VERSION}.src.tar.xz"
12SRC_DIR="llvm-${VERSION}.src"
13PATCH_URI="
14 3.5.2-llvm-config.patch
15 3.4.2-cygwin-implib.patch
16 3.5.1-cmodel-medium.patch
17"
18
19PKG_NAMES="libllvm3.5 libllvm3.5-devel"
20libllvm3_5_SUMMARY="LLVM library (runtime)"
21libllvm3_5_CONTENTS="
22 usr/bin/cygLLVM-3.5.dll
23 usr/share/doc/${NAME}/
24"
25libllvm3_5_devel_SUMMARY="LLVM library (development)"
26libllvm3_5_devel_CONTENTS="
27 usr/bin/llvm-config-3.5.exe
28 usr/bin/llvm-tblgen-3.5.exe
29 usr/include/llvm-${VERSION}/
30 usr/lib/libLLVM-3.5*.dll.a
31"
32
33src_compile() {
34 # leave optimization to build system, fails to dlopen with -O2
35 CFLAGS=${CFLAGS/-O[0-9]/}
36 CXXFLAGS=${CXXFLAGS/-O[0-9]/}
37
38 cd ${B}
39 # build system does NOT honour --includedir
40 cygconf --disable-assertions --enable-optimized --enable-debug-runtime \
41 --enable-debug-symbols --enable-targets=x86,cpp \
42 --enable-libffi --enable-shared --disable-embed-stdcxx \
43 --disable-polly --disable-libcpp --enable-bindings=none
44
45 cygmake libs-only REQUIRES_RTTI=1
46}
47
48src_install() {
49 cd ${B}
50 cygmake install-libs DESTDIR=${D} ENABLE_DOCS=0
51
52 case ${VERSION} in
53 *.*.*) rm -f ${D}/usr/bin/cygLLVM-${VERSION}.dll
54 dosym libLLVM-${VERSION%.*}.dll.a /usr/lib/libLLVM-${VERSION}.dll.a
55 esac
56
57 # avoid conflicts with latest llvm packages
58 rm -f ${D}/usr/bin/{FileCheck,count,not}.exe
59 mv ${D}/usr/bin/llvm-config{,-3.5}.exe
60 mv ${D}/usr/bin/llvm-tblgen{,-3.5}.exe
61 rm -f ${D}/usr/lib/libLLVM[^-]*.a
62 rm -fr ${D}/usr/share/llvm/cmake/
63}
This page took 0.02323 seconds and 5 git commands to generate.