diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-01-19 19:04:09 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-01-19 19:33:02 +0000 |
commit | 58542697c14bae5c8d81bb2c1cc60dd015cdc0c6 (patch) | |
tree | 98fd9e32a12c7af8e277cdb217abd066929d5ed6 /build/pkg.build | |
parent | 10f4bdb5d0146d5f51bd4e0d568f3861f45e99a0 (diff) | |
download | midipix_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 'build/pkg.build')
-rw-r--r-- | build/pkg.build | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/build/pkg.build b/build/pkg.build index ddfea695..97b7adbb 100644 --- a/build/pkg.build +++ b/build/pkg.build @@ -58,7 +58,7 @@ if ! is_build_script_done build_dir; then set_build_script_done build_dir -patch_pre; fi; if ! is_build_script_done patch_pre; then - for __ in \ + for __ in \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local.patch \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch \ ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local.patch \ @@ -108,6 +108,13 @@ if [ -e ${PKG_SUBDIR}/configure -o \ set_build_script_done autoconf -patch; fi; if ! is_build_script_done patch; then + if [ -d ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME} ]; then + set +o noglob; + for __patch_fname in ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}/*.patch; do + patch -b -d ${PKG_SUBDIR} -p1 < ${__patch_fname}; + done; + set -o noglob; + fi; for __patch_fname in \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local.patch \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local@${BUILD_HNAME}.patch \ @@ -132,16 +139,19 @@ cd ${PKG_BUILD_DIR}; if [ "${PKG_BUILD_TYPE}" = "host" ]; then export AR=ar; export CC=gcc; + export CXX=g++; export RANLIB=ranlib; else export AR=${PKG_TARGET}-ar; export CC=${PKG_TARGET}-gcc; + export CXX=${PKG_TARGET}-g++; export RANLIB=${PKG_TARGET}-ranlib; fi; if [ -x ${PKG_CONFIGURE} ]; then export CFLAGS_FOR_BUILD="${HOST_TOOLCHAIN_CFLAGS_CONFIGURE_DEFAULT}"; fi; if [ -x ${PKG_CONFIGURE} ]\ +|| test_cmd pkg_${PKG_NAME}_configure\ && ! is_build_script_done configure; then if test_cmd pkg_${PKG_NAME}_configure; then pkg_${PKG_NAME}_configure; @@ -250,7 +260,9 @@ if ! is_build_script_done install; then esac; shift; done); fi; - if test_cmd perk && test_cmd ${PKG_TARGET}-dlltool; then + if [ "${PKG_BUILD_TYPE}" != "host" ] \ + && test_cmd perk \ + && test_cmd ${PKG_TARGET}-dlltool; then for __so_fname in \ $(find \( -name "*.so" \ -or -name "*.so.[0-9]" \ |