summaryrefslogtreecommitdiff
path: root/package/llvm/Makefile
blob: 2375e092c7d82893ebe0b4e883e4ce76f5083cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		llvm
PKG_VERSION:=		3.4
PKG_RELEASE:=		1
PKG_MD5SUM:=		46ed668a1ce38985120dbf6344cf6116
PKG_DESCR:=		collection of modular and reusable compiler and toolchain technologies
PKG_SECTION:=		lang
PKG_URL:=		http://llvm.org/
PKG_SITES:=		http://llvm.org/releases/3.4/

PKG_LIBC_DEPENDS:=	eglibc glibc musl
PKG_HOST_DEPENDS:=	!darwin
PKG_ARCH_DEPENDS:=	mips x86 x86_64 arm

PKG_CFLINE_LLVM:=	depends on ADK_BROKEN
DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.src.tar.gz

include $(TOPDIR)/mk/package.mk

TARGET_CFLAGS:=         $(filter-out -fhonour-copts,$(TARGET_CFLAGS))
# disable honour cflags stuff
XAKE_FLAGS+=            GCC_HONOUR_COPTS=s

$(eval $(call PKG_template,LLVM,llvm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual
BUILD_STYLE:=		manual
INSTALL_STYLE:=		manual
XAKE_FLAGS+=		VERBOSE=1

do-configure:
	mkdir -p $(WRKBUILD)/BuildTools
	(cd $(WRKBUILD)/BuildTools; env ac_cv_build_exeext="" ../configure ${CONFIGURE_TRIPLE} --prefix=/usr --disable-docs)

do-build:
	env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools

do-install:
	env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(STAGING_TARGET_DIR) install 
	env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(WRKINST) install 
	cp ${WRKBUILD}/BuildTools/BuildTools/Release+Asserts/bin/llvm-config \
		$(STAGING_TARGET_DIR)/usr/bin

include ${TOPDIR}/mk/pkg-bottom.mk