summaryrefslogtreecommitdiff
path: root/package/llvm
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-29 18:02:58 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-29 18:02:58 +0200
commit633471975517358cf2f6663d7aad81e35358df56 (patch)
treeab2b5db368ba2aaa11b14987eaff715ba3f438d4 /package/llvm
parentfb5986b361eae7893a57e92ec0a4f820b89bc527 (diff)
add llvm package (early version)
Diffstat (limited to 'package/llvm')
-rw-r--r--package/llvm/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/llvm/Makefile b/package/llvm/Makefile
new file mode 100644
index 000000000..5aa58d81d
--- /dev/null
+++ b/package/llvm/Makefile
@@ -0,0 +1,43 @@
+# 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:= 2.9
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 793138412d2af2c7c7f54615f8943771
+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/2.9/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+#WRKBUILD= ${WRKSRC}/BuildTools
+
+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
+
+do-configure:
+ mkdir -p $(WRKBUILD)/BuildTools
+ (cd $(WRKBUILD)/BuildTools; env ac_cv_build_exeext="" ../configure ${CONFIGURE_TRIPLE} --prefix=/usr)
+
+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
+
+llvm-install:
+ $(INSTALL_DIR) $(IDIR_LLVM)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk