pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
llvm-git: Revamp package for new model
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Jul 2 15:59:00 2017 +0200
Changeset: 5b3b05c1c45ce42dd823e199441192ddb6b4268f
Modified Files:
llvm-git/Makefile
Added Files:
llvm-git/Makefile.common
Log Message:
llvm-git: Revamp package for new model
Catch up after llvm-netbsd changes, make this package reusable.
Stick to git rev.d948559e483b8e96fb2d29b8422d8a1e191325a4.
This is preparation for upstreaming.
Sponsored by <The NetBSD Foundation>
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5b3b05c1c45ce42dd823e199441192ddb6b4268f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
llvm-git/Makefile | 41 ++---------------------------------------
llvm-git/Makefile.common | 47 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 39 deletions(-)
diffs:
diff --git a/llvm-git/Makefile b/llvm-git/Makefile
index b0c7c0e3e3..90bab9f082 100644
--- a/llvm-git/Makefile
+++ b/llvm-git/Makefile
@@ -1,23 +1,8 @@
# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
-#
-# when updating this, please also update:
-# devel/include-what-you-use
-# devel/lldb
-# devel/polly
-# lang/clang
-# lang/clang-static-analyzer
-# lang/libLLVM
-# lang/libunwind
-#
-# Always update all */buildlink3.mk to require the latest stable release
-# version in BUILDLINK_API_DEPENDS, as there is no backwards compatibility
-#
-PKGNAME= llvm-5.0.0
-CATEGORIES= lang devel
+.include "Makefile.common"
-GIT_REPOSITORIES= llvm
-GIT_REPO.llvm= git://github.com/llvm-mirror/llvm.git
+PKGNAME= llvm-${LLVM_VERSION}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://llvm.org/
@@ -29,7 +14,6 @@ USE_CMAKE= yes
GCC_REQD+= 4.8
PYTHON_FOR_BUILD_ONLY= yes
-WRKSRC= ${WRKDIR}/${PKGBASE}
CONFIGURE_DIRS= ${WRKDIR}/build
CMAKE_ARG_PATH= ${WRKSRC}
@@ -43,27 +27,6 @@ CMAKE_ARGS+= -DLLVM_INSTALL_UTILS=ON
CMAKE_ARGS.Darwin+= -DCMAKE_LIBTOOL=/usr/bin/libtool
-CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm
-
-# XXX perl is not added as a tool as it does not seem to be required
-REPLACE_PERL+= utils/*.pl
-REPLACE_PERL+= utils/codegen-diff
-REPLACE_PERL+= utils/llvm-native-gxx
-
-REPLACE_PYTHON+= *.py
-REPLACE_PYTHON+= */*.py
-REPLACE_PYTHON+= */*/*.py
-REPLACE_PYTHON+= */*/*/*.py
-REPLACE_PYTHON+= */*/*/*/*.py
-REPLACE_PYTHON+= utils/Misc/zkill
-REPLACE_PYTHON+= utils/bisect
-REPLACE_PYTHON+= utils/clang-parse-diagnostics-file
-REPLACE_PYTHON+= utils/git/find-rev
-REPLACE_PYTHON+= utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest
-REPLACE_PYTHON+= utils/llvm-build/llvm-build
-REPLACE_PYTHON+= utils/llvm-compilers-check
-REPLACE_PYTHON+= utils/llvm-lit/llvm-lit.in
-
TEST_TARGET= check
TEST_ENV+= LD_LIBRARY_PATH=${WRKDIR}/build/lib
diff --git a/llvm-git/Makefile.common b/llvm-git/Makefile.common
new file mode 100644
index 0000000000..10cd975483
--- /dev/null
+++ b/llvm-git/Makefile.common
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
+#
+# when updating this, please also update:
+# devel/include-what-you-use
+# devel/lldb
+# devel/polly
+# lang/clang
+# lang/clang-static-analyzer
+# lang/libLLVM
+# lang/libunwind
+#
+# Always update all */buildlink3.mk to require the latest stable release
+# version in BUILDLINK_API_DEPENDS, as there is no backwards compatibility
+#
+
+LLVM_VERSION= 5.0.0
+
+CATEGORIES= lang devel
+
+GIT_REPOSITORIES= llvm
+GIT_REPO.llvm= git://github.com/llvm-mirror/llvm.git
+GIT_REVISION.llvm= d948559e483b8e96fb2d29b8422d8a1e191325a4
+
+WRKSRC= ${WRKDIR}/llvm
+
+CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm
+
+# XXX perl is not added as a tool as it does not seem to be required
+REPLACE_PERL+= utils/*.pl
+REPLACE_PERL+= utils/codegen-diff
+REPLACE_PERL+= utils/llvm-native-gxx
+
+REPLACE_PYTHON+= *.py
+REPLACE_PYTHON+= */*.py
+REPLACE_PYTHON+= */*/*.py
+REPLACE_PYTHON+= */*/*/*.py
+REPLACE_PYTHON+= */*/*/*/*.py
+REPLACE_PYTHON+= utils/Misc/zkill
+REPLACE_PYTHON+= utils/bisect
+REPLACE_PYTHON+= utils/clang-parse-diagnostics-file
+REPLACE_PYTHON+= utils/git/find-rev
+REPLACE_PYTHON+= utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest
+REPLACE_PYTHON+= utils/llvm-build/llvm-build
+REPLACE_PYTHON+= utils/llvm-compilers-check
+REPLACE_PYTHON+= utils/llvm-lit/llvm-lit.in
+
+.include "../../wip/mk/git-package.mk"
Home |
Main Index |
Thread Index |
Old Index