Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 5)
@@ -0,0 +1,123 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url = $(DOWNLOAD_SERVER)/sources/packages/d/llvm
+
+versions = 13.0.0 15.0.4
+pkgname = llvm
+suffix = tar.xz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+patches = $(CURDIR)/patches/llvm-13.0.0-clang-gnu-triple.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-clang-set-revision.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-clangd-riscv64.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-compiler-rt-p5600.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-compiler-rt-ppc64.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-compiler-rt-synonyms.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-lldb-riscv64.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-lldb-set-revision.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-llvm-64bit-atomic.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-llvm-pass-variables.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-llvm-ppc64.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-llvm-versioning.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-polly-hack.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-python3.patch
+patches += $(CURDIR)/patches/llvm-13.0.0-scan-build-py-x32.patch
+
+patches += $(CURDIR)/patches/llvm-15.0.4-clang-gnu-triple.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-clang-set-revision.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-clangd-riscv64.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-compiler-rt-mips.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-compiler-rt-p5600.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-compiler-rt-ppc64.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-compiler-rt-synonyms.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-lldb-lua-version.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-lldb-riscv64.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-lldb-set-revision.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-llvm-64bit-atomic.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-llvm-install-symlink.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-llvm-ppc64.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-llvm-versioning.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-openmp-perl.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-polly-hack.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-python3.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-scan-build-py-x32.patch
+patches += $(CURDIR)/patches/llvm-15.0.4-pstl-x32.patch
+
+.NOTPARALLEL: $(patches)
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======" ; \
+ for tarball in $(tarballs) ; do \
+ echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+ done ; wait
+
+$(sha1s): $(tarballs)
+ @for sha in $@ ; do \
+ echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+ echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+ touch $$sha ; \
+ echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+ sha1sum --check $$sha ; ret="$$?" ; \
+ if [ "$$ret" == "1" ]; then \
+ echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+ exit 1 ; \
+ fi ; \
+ done
+
+$(patches): $(sha1s)
+ @echo -e "\n======= Create Patches =======\n" ; \
+ ( cd create-13.0.0-clang-gnu-triple-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-clang-set-revision-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-clangd-riscv64-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-compiler-rt-p5600-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-compiler-rt-ppc64-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-compiler-rt-synonyms-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-lldb-riscv64-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-lldb-set-revision-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-llvm-64bit-atomic-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-llvm-pass-variables-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-llvm-ppc64-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-llvm-versioning-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-polly-hack-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-python3-patch ; ./create.patch.sh ) ; \
+ ( cd create-13.0.0-scan-build-py-x32-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-clang-gnu-triple-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-clang-set-revision-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-clangd-riscv64-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-compiler-rt-mips-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-compiler-rt-p5600-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-compiler-rt-ppc64-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-compiler-rt-synonyms-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-lldb-lua-version-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-lldb-riscv64-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-lldb-set-revision-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-llvm-64bit-atomic-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-llvm-install-symlink-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-llvm-ppc64-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-llvm-versioning-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-openmp-perl-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-polly-hack-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-python3-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-scan-build-py-x32-patch ; ./create.patch.sh ) ; \
+ ( cd create-15.0.4-pstl-x32-patch ; ./create.patch.sh ) ; \
+ echo -e "\n"
+
+download_clean:
+ @rm -f $(tarballs) $(sha1s) $(patches)