From dd33bfbad11bd43850498580f0cf68721daa3415 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Jan 23 2017 18:04:23 +0000 Subject: vars/{build,mingw_w64}.vars: adds mingw-w64 v5.0.1. vars/clang_host.vars: fix typo in subr name. --- diff --git a/vars/build.vars b/vars/build.vars index 6df53ce..100ba78 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -424,8 +424,8 @@ LEAF_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}"; LEAF_PACKAGES_PACKAGES=" 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"; +man_db mc mksh mingw_w64 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}; @@ -589,6 +589,9 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_MC_URL:=http://ftp.midnight-commander.org/mc-${PKG_MC_VERSION}.tar.xz}; : ${PKG_MC_CFLAGS_CONFIGURE_EXTRA:="-I${PREFIX_NATIVE}/include -I${PREFIX_NATIVE}/include/ncursesw"}; : ${PKG_MC_CONFIGURE_ARGS_EXTRA:="--with-screen=ncurses --x-includes=${PREFIX_NATIVE}/include/X11 --x-libraries=${PREFIX_NATIVE}/lib"}; +: ${PKG_MINGW_W64_SHA256SUM:=9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2}; +: ${PKG_MINGW_W64_VERSION:=5.0.1}; +: ${PKG_MINGW_W64_URL:=https://sourceforge.mirrorservice.org/m/mi/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PKG_MINGW_W64_VERSION}.tar.bz2}; : ${PKG_MKSH_SHA256SUM:=8bce3837c386684aa7780f085f1a4dbd5e3e26fb5c528ee0d41ae29af7f39013}; : ${PKG_MKSH_VERSION:=R54}; : ${PKG_MKSH_URL:=http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-${PKG_MKSH_VERSION}.tgz}; diff --git a/vars/clang_host.vars b/vars/clang_host.vars index 54f89c3..861dab0 100644 --- a/vars/clang_host.vars +++ b/vars/clang_host.vars @@ -2,7 +2,7 @@ # . ./build.vars and set -o errexit -o noglob are assumed. # -pkg_clang_host_pre_configure() { +pkg_clang_host_configure_pre() { secure_rm ${WORKDIR}/Makefile; }; diff --git a/vars/mingw_w64.vars b/vars/mingw_w64.vars new file mode 100644 index 0000000..69b4286 --- /dev/null +++ b/vars/mingw_w64.vars @@ -0,0 +1,43 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +pkg_mingw_w64_configure() { + if [ "${ARCH}" = nt32 ]; then + _configure_args="--host=i686-nt32-midipix"; + else + _configure_args="--host=x86_64-nt64-midipix"; + fi; + ../${PKG_SUBDIR}/configure \ + --disable-bootstrap \ + --disable-libmudflap \ + --disable-multilib \ + --disable-nls \ + --disable-obsolete \ + --disable-sjlj-exceptions \ + --disable-symvers \ + --enable-canonical-system-headers \ + --enable-__cxa_atexit \ + --enable-debug \ + --enable-gnu-indirect-function \ + --enable-gnu-unique-object \ + --enable-initfini-array \ + --enable-languages=c,c++,objc,lto \ + --enable-libstdcxx-debug \ + --enable-lto \ + --enable-multiarch \ + --enable-secureplt \ + --enable-shared \ + --enable-threads=posix \ + --prefix=${PREFIX} \ + --target=${TARGET} \ + --with-elf=${PKG_PREFIX} \ + --with-fpmath=sse \ + --with-gmp=${PKG_PREFIX} \ + --with-mpc=${PKG_PREFIX} \ + --with-mpfr=${PKG_PREFIX} \ + --with-sysroot=${PKG_PREFIX} \ + ${_configure_args}; +}; + +# vim:filetype=sh