summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-19 19:04:09 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-19 19:33:02 +0000
commit58542697c14bae5c8d81bb2c1cc60dd015cdc0c6 (patch)
tree98fd9e32a12c7af8e277cdb217abd066929d5ed6 /vars
parent10f4bdb5d0146d5f51bd4e0d568f3861f45e99a0 (diff)
downloadmidipix_build-58542697c14bae5c8d81bb2c1cc60dd015cdc0c6.tar.bz2
midipix_build-58542697c14bae5c8d81bb2c1cc60dd015cdc0c6.tar.xz
{clang,llvm}_host: adds clang v3.8.1 and llvm v3.8.1 (via Redfoxmoon.)
Diffstat (limited to 'vars')
-rw-r--r--vars/build.vars57
-rw-r--r--vars/clang_host.vars28
-rw-r--r--vars/cmake.vars2
-rw-r--r--vars/llvm_host.vars25
-rw-r--r--vars/python3.vars2
5 files changed, 89 insertions, 25 deletions
diff --git a/vars/build.vars b/vars/build.vars
index 8f7f524d..1fd92d8b 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -84,11 +84,11 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}";
: ${PKG_SLIBTOOL_HOST_URL:=${GITROOT}/slibtool};
: ${PKG_SLIBTOOL_HOST_URL_TYPE:=git};
: ${PKG_SLIBTOOL_HOST_CONFIGURE_ARGS:=--host= --prefix=};
-: ${PKG_SLIBTOOL_HOST_MAKEFLAGS_INSTALL=DESTDIR=${PREFIX}};
+: ${PKG_SLIBTOOL_HOST_MAKEFLAGS_INSTALL:=DESTDIR=${PREFIX}};
: ${PKG_PERK_HOST_URL:=${GITROOT}/perk};
: ${PKG_PERK_HOST_URL_TYPE:=git};
-: ${PKG_PERK_HOST_CONFIGURE_ARGS="--prefix=/usr"};
-: ${PKG_PERK_HOST_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX}"};
+: ${PKG_PERK_HOST_CONFIGURE_ARGS:="--prefix=/usr"};
+: ${PKG_PERK_HOST_MAKEFLAGS_INSTALL:="DESTDIR=${PREFIX}"};
: ${PKG_BINUTILS_HOST_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa};
: ${PKG_BINUTILS_HOST_VERSION:=2.24.51};
: ${PKG_BINUTILS_HOST_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_HOST_VERSION}.tar.bz2};
@@ -116,10 +116,10 @@ NATIVE_TOOLCHAIN_PACKAGES="slibtool perk pkgconf gmp mpfr mpc libelf binutils mu
NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}";
: ${PKG_SLIBTOOL_URL:=git://midipix.org/slibtool};
: ${PKG_SLIBTOOL_URL_TYPE:=git};
-: ${PKG_SLIBTOOL_CONFIGURE_ARGS="--host=${TARGET} --prefix= --target=${TARGET}"};
+: ${PKG_SLIBTOOL_CONFIGURE_ARGS:="--host=${TARGET} --prefix= --target=${TARGET}"};
: ${PKG_PERK_URL:=${GITROOT}/perk};
: ${PKG_PERK_URL_TYPE:=git};
-: ${PKG_PERK_CONFIGURE_ARGS="--prefix=/usr --target=${TARGET}"};
+: ${PKG_PERK_CONFIGURE_ARGS:="--prefix=/usr --target=${TARGET}"};
: ${PKG_PKGCONF_SHA256SUM:=7ec8b516e655e247f4ba976837cee808134785819ab8f538f652fe919cc6c09f};
: ${PKG_PKGCONF_VERSION:=0.9.12};
: ${PKG_PKGCONF_URL:=https://github.com/pkgconf/pkgconf/releases/download/pkgconf-${PKG_PKGCONF_VERSION}/pkgconf-${PKG_PKGCONF_VERSION}.tar.bz2};
@@ -186,7 +186,7 @@ RUNTIME_URL_TYPE="git";
: ${PKG_PSXSCL_INSTALL_TARGET_EXTRA:=install-lib};
: ${PKG_PSXSCL_PREFIX_EXTRA:=${PREFIX_MINIPIX}};
: ${PKG_PSXSCL_STRACE_URL:=${GITROOT_HEAD}/psxscl};
-: ${PKG_PSXSCL_STRACE_CFLAGS_CONFIGURE_EXTRA="-DPSX_INTERNAL_STRACE -O0"};
+: ${PKG_PSXSCL_STRACE_CFLAGS_CONFIGURE_EXTRA:="-DPSX_INTERNAL_STRACE -O0"};
: ${PKG_PSXSCL_STRACE_INSTALL_FILES:="/=lib/psxscl_strace lib/libpsxscl.so=lib/psxscl_strace/"};
: ${PKG_PSXSCL_STRACE_NO_MAKE_INSTALL:=1};
: ${PKG_NTCTTY_URL:=${GITROOT_HEAD}/ntctty};
@@ -205,10 +205,10 @@ LIB_PACKAGES_CONFIGURE_ARGS="-C --disable-nls --host=${TARGET} --prefix= --targe
LIB_PACKAGES_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
LIB_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}";
LIB_PACKAGES_PACKAGES="
-bzip2 curl expat libz libffi gdbm pcre glib gzip libarchive libpipeline libressl libevent libfetch
-libgpg_error libassuan libfirm libgcrypt libksba lua ncurses ncursestw ncursesw npth xz inputproto
-kbproto xcb_proto xproto libXau libpthread_stubs xcb xextproto xtrans libX11 libXext libICE
-libSM libXt libXmu renderproto Xrender libXpm libXaw libxkbfile";
+bzip2 curl expat libz libffi gdbm pcre glib gzip libarchive libpipeline libressl libevent
+libfetch libgpg_error libassuan libfirm libgcrypt libksba lua ncurses ncursestw ncursesw
+npth xz inputproto kbproto xcb_proto xproto libXau libpthread_stubs xcb xextproto xtrans libX11
+libXext libICE libSM libXt libXmu renderproto Xrender libXpm libXaw libxkbfile cmake llvm_host";
LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_BZIP2_SHA256SUM:=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd};
: ${PKG_BZIP2_VERSION:=1.0.6};
@@ -305,7 +305,7 @@ LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_LUA_SHA256SUM:=5113c06884f7de453ce57702abaac1d618307f33f6789fa870e87a59d772aca2};
: ${PKG_LUA_VERSION:=5.3.3};
: ${PKG_LUA_URL:=https://www.lua.org/ftp/lua-${PKG_LUA_VERSION}.tar.gz};
-: ${PKG_LUA_BUILD_DIR=lua-5.3.3};
+: ${PKG_LUA_BUILD_DIR:=lua-5.3.3};
: ${PKG_LUA_MAKEFLAGS_BUILD_EXTRA:="CC=${TARGET}-gcc midipix"};
: ${PKG_LUA_MAKEFLAGS_INSTALL_EXTRA:=INSTALL_TOP=${PREFIX_NATIVE}};
: ${PKG_NCURSES_SHA256SUM:=f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260};
@@ -395,6 +395,17 @@ LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_LIBXKBFILE_VERSION:=1.0.9};
: ${PKG_LIBXKBFILE_URL:=https://www.x.org/releases/individual/lib/libxkbfile-${PKG_LIBXKBFILE_VERSION}.tar.bz2};
+: ${PKG_CMAKE_SHA256SUM:=7d73ee4fae572eb2d7cd3feb48971aea903bb30a20ea5ae8b4da826d8ccad5fe};
+: ${PKG_CMAKE_VERSION:=3.6.3};
+: ${PKG_CMAKE_URL:=https://cmake.org/files/v${PKG_CMAKE_VERSION%.*}/cmake-${PKG_CMAKE_VERSION}.tar.gz};
+: ${PKG_CMAKE_CONFIGURE_ARGS:="--parallel=${BUILD_CPUS} --prefix="};
+: ${PKG_CMAKE_MAKEFLAGS_INSTALL:=};
+: ${PKG_LLVM_HOST_SHA256SUM:=6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9};
+: ${PKG_LLVM_HOST_VERSION:=3.8.1};
+: ${PKG_LLVM_HOST_URL:=http://releases.llvm.org/${PKG_LLVM_HOST_VERSION}/llvm-${PKG_LLVM_HOST_VERSION}.src.tar.xz};
+: ${PKG_LLVM_HOST_BUILD_TYPE:=host};
+: ${PKG_LLVM_HOST_MAKEFLAGS_INSTALL:=DESTDIR=${PREFIX}};
+
#
# Build target leaf_packages
#
@@ -403,10 +414,10 @@ LEAF_PACKAGES_CONFIGURE_ARGS="-C --disable-nls --host=${TARGET} --prefix= --targ
LEAF_PACKAGES_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
LEAF_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}";
LEAF_PACKAGES_PACKAGES="
-apk_tools bash bc chicken cmake coreutils cparser cron dash datamash diffutils dos2unix ed figlet file findutils
-gawk git gnupg grep hexcurse htop inetutils infounzip infozip irssi john less lynx make man_db mc mksh nano netcat
-openssh p7zip pacman patch perl procps_ng python3 rsync rxvt_unicode sed tar tcsh the_silver_searcher tmux
-util_linux vim weechat wget which whois xeyes xwd zsh";
+apk_tools bash bc chicken clang_host coreutils cparser cron dash datamash diffutils dos2unix ed figlet
+file findutils gawk git gnupg grep hexcurse htop inetutils infounzip infozip irssi john less lynx make
+man_db mc mksh nano netcat openssh p7zip pacman patch perl procps_ng python3 rsync rxvt_unicode sed tar
+tcsh the_silver_searcher tmux util_linux vim weechat wget which whois xeyes xwd zsh";
LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_APK_TOOLS_SHA256SUM:=def2b2c23cd12fd2a9c19be49653b0d1bf9d81a26dac5a0ee79a1351d674f93b};
: ${PKG_APK_TOOLS_VERSION:=2.6.8};
@@ -431,11 +442,11 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_CHICKEN_MAKEFLAGS_BUILD_EXTRA_RELEASE:=DEBUGBUILD=0};
: ${PKG_CHICKEN_MAKEFLAGS_INSTALL:="PLATFORM=midipix-${ARCH} PREFIX=${PREFIX_NATIVE} TARGET_PREFIX=${PREFIX_NATIVE} C_COMPILER=${TARGET}-gcc HOSTSYSTEM=${TARGET} CROSS_CHICKEN=1"};
: ${PKG_CHICKEN_NO_CLEAN:=1};
-: ${PKG_CMAKE_SHA256SUM:=7d73ee4fae572eb2d7cd3feb48971aea903bb30a20ea5ae8b4da826d8ccad5fe};
-: ${PKG_CMAKE_VERSION:=3.6.3};
-: ${PKG_CMAKE_URL:=https://cmake.org/files/v${PKG_CMAKE_VERSION%.*}/cmake-${PKG_CMAKE_VERSION}.tar.gz};
-: ${PKG_CMAKE_CONFIGURE_ARGS:="--parallel=${BUILD_CPUS} --prefix="};
-: ${PKG_CMAKE_MAKEFLAGS_INSTALL:=};
+: ${PKG_CLANG_HOST_SHA256SUM:=4cd3836dfb4b88b597e075341cae86d61c63ce3963e45c7fe6a8bf59bb382cdf};
+: ${PKG_CLANG_HOST_VERSION:=3.8.1};
+: ${PKG_CLANG_HOST_URL:=http://releases.llvm.org/${PKG_CLANG_HOST_VERSION}/cfe-${PKG_CLANG_HOST_VERSION}.src.tar.xz};
+: ${PKG_CLANG_HOST_BUILD_TYPE:=host};
+: ${PKG_CLANG_HOST_MAKEFLAGS_INSTALL:=DESTDIR=${PREFIX}};
: ${PKG_COREUTILS_SHA256SUM:=155e94d748f8e2bc327c66e0cbebdb8d6ab265d2f37c3c928f7bf6c3beba9a8e};
: ${PKG_COREUTILS_VERSION:=8.26};
: ${PKG_COREUTILS_URL:=https://ftp.gnu.org/gnu/coreutils/coreutils-${PKG_COREUTILS_VERSION}.tar.xz};
@@ -473,7 +484,7 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_ED_SHA256SUM:=c7a98062d0597b41295f03275a2ea07342b18b86653e3b9a51746b9983db8d48};
: ${PKG_ED_VERSION:=1.13};
: ${PKG_ED_URL:=http://ftp5.gwdg.de/pub/linux/slackware/slackware64-current/source/a/ed/ed-${PKG_ED_VERSION}.tar.xz};
-: ${PKG_ED_CONFIGURE_ARGS="--prefix= CC=${TARGET}-gcc"};
+: ${PKG_ED_CONFIGURE_ARGS:="--prefix= CC=${TARGET}-gcc"};
: ${PKG_FIGLET_SHA256SUM:=bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d};
: ${PKG_FIGLET_VERSION:=2.2.5};
: ${PKG_FIGLET_URL:=ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${PKG_FIGLET_VERSION}.tar.gz};
@@ -514,7 +525,7 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_HTOP_URL:=http://hisham.hm/htop/releases/${PKG_HTOP_VERSION}/htop-${PKG_HTOP_VERSION}.tar.gz};
: ${PKG_HTOP_CONFIGURE_ARGS_EXTRA:=--program-prefix=};
: ${PKG_INETUTILS_SHA256SUM:=849d96f136effdef69548a940e3e0ec0624fc0c81265296987986a0dd36ded37};
-: ${PKG_INETUTILS_VERSION=1.9.4};
+: ${PKG_INETUTILS_VERSION:=1.9.4};
: ${PKG_INETUTILS_URL:=https://ftp.gnu.org/gnu/inetutils/inetutils-${PKG_INETUTILS_VERSION}.tar.xz};
: ${PKG_INETUTILS_CONFIGURE_ARGS_EXTRA:="--disable-ftpd --disable-inetd --disable-rexecd --disable-rlogind --disable-rshd --disable-syslogd --disable-talkd --disable-telnetd --disable-tftpd --disable-uucpd --disable-ftp --disable-dnsdomainname --disable-hostname --disable-ping --disable-ping6 --disable-rcp --disable-rexec --disable-rlogin --disable-rsh --disable-logger --disable-talk --enable-telnet --disable-tftp --disable-whois --disable-ifconfig --disable-traceroute"};
: ${PKG_INFOUNZIP_SHA256SUM:=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37};
@@ -534,7 +545,7 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_INFOZIP_NO_MAKE_INSTALL:=1};
: ${PKG_INFOZIP_SUBDIR:=${PKG_INFOZIP_BUILD_DIR}};
: ${PKG_IRSSI_SHA256SUM:=f5e20f76aa8237303c463e08adb3a3e3a400a24ba95acf73e9b068d634173f66};
-: ${PKG_IRSSI_VERSION=0.8.20};
+: ${PKG_IRSSI_VERSION:=0.8.20};
: ${PKG_IRSSI_URL:=https://github.com/irssi/irssi/releases/download/${PKG_IRSSI_VERSION}/irssi-${PKG_IRSSI_VERSION}.tar.gz};
: ${PKG_IRSSI_CONFIGURE_ARGS_EXTRA:=--with-ncurses=${PREFIX_NATIVE}};
: ${PKG_JOHN_SHA256SUM:=952cf68369fb5b27f2d112ce7ca1eb16b975c85cbce8c658abb8bc5a20e1b266};
diff --git a/vars/clang_host.vars b/vars/clang_host.vars
new file mode 100644
index 00000000..54f89c37
--- /dev/null
+++ b/vars/clang_host.vars
@@ -0,0 +1,28 @@
+#
+# . ./build.vars and set -o errexit -o noglob are assumed.
+#
+
+pkg_clang_host_pre_configure() {
+ secure_rm ${WORKDIR}/Makefile;
+};
+
+pkg_clang_host_configure() {
+ secure_rm ../cfe-${PKG_VERSION}-host;
+ insecure_mkdir ../cfe-${PKG_VERSION}-host;
+ cd ../cfe-${PKG_VERSION}-host;
+ log_msg info "Bootstrapping clang_host...";
+ (${PREFIX}/bin/cmake ../cfe-${PKG_VERSION}.src \
+ -DCLANG_BUILD_EXAMPLES:BOOL=OFF \
+ -DCLANG_INCLUDE_DOCS:BOOL=OFF \
+ -DCLANG_INCLUDE_TESTS:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="" \
+ -DCMAKE_VERBOSE_MAKEFILE=NO \
+ -DLIBCLANG_BUILD_STATIC:BOOL=ON \
+ -DLLVM_PREFIX="${PKG_PREFIX}" \
+ -G "Unix Makefiles" \
+ -Wno-dev);
+ log_msg info "Finished bootstrapping clang_host.";
+};
+
+# vim:filetype=sh
diff --git a/vars/cmake.vars b/vars/cmake.vars
index 981ffb9d..ee60c82f 100644
--- a/vars/cmake.vars
+++ b/vars/cmake.vars
@@ -9,7 +9,7 @@ pkg_cmake_configure() {
insecure_mkdir ../cmake-${PKG_VERSION}-host;
cd ../cmake-${PKG_VERSION}-host;
log_msg info "Bootstrapping cmake...";
- (unset AR CC RANLIB;
+ (unset AR CC CXX RANLIB;
../cmake-${PKG_VERSION}/configure ${PKG_CONFIGURE_ARGS};
make ${DEFAULT_MAKEFLAGS_BUILD} DESTDIR=${PREFIX} install);
log_msg info "Finished bootstrapping cmake.";
diff --git a/vars/llvm_host.vars b/vars/llvm_host.vars
new file mode 100644
index 00000000..57b581fa
--- /dev/null
+++ b/vars/llvm_host.vars
@@ -0,0 +1,25 @@
+#
+# . ./build.vars and set -o errexit -o noglob are assumed.
+#
+
+pkg_llvm_host_configure() {
+ secure_rm ../llvm-${PKG_VERSION}-host;
+ insecure_mkdir ../llvm-${PKG_VERSION}-host;
+ cd ../llvm-${PKG_VERSION}-host;
+ log_msg info "Bootstrapping llvm_host...";
+ (${PREFIX}/bin/cmake ../llvm-${PKG_VERSION}.src \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="" \
+ -DCMAKE_VERBOSE_MAKEFILE=NO \
+ -DLLVM_BUILD_DOCS=NO \
+ -DLLVM_BUILD_EXAMPLES=NO \
+ -DLLVM_BUILD_TESTS=NO \
+ -DLLVM_ENABLE_SPHINX=NO \
+ -DLLVM_TARGETS_TO_BUILD=X86 \
+ -DSPHINX_WARNINGS_AS_ERRORS=NO \
+ -G "Unix Makefiles" \
+ -Wno-dev);
+ log_msg info "Finished bootstrapping llvm_host.";
+};
+
+# vim:filetype=sh
diff --git a/vars/python3.vars b/vars/python3.vars
index 9cdc016f..1c0d8d71 100644
--- a/vars/python3.vars
+++ b/vars/python3.vars
@@ -4,7 +4,7 @@
pkg_python3_configure_pre() {
(cd ../${PKG_SUBDIR} && autoconf);
- (unset AR BLDSHARED CC CFLAGS CPPFLAGS LDFLAGS RANLIB;
+ (unset AR BLDSHARED CC CFLAGS CPPFLAGS CXX LDFLAGS RANLIB;
mv -- config.cache ../${PKG_SUBDIR}/config.cache;
../${PKG_SUBDIR}/configure;
make _FIP=Programs/host_freeze_importlib Programs/host_freeze_importlib \