summaryrefslogtreecommitdiffhomepage
path: root/006.musl.full.build
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-12 12:43:29 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-12 16:10:21 +0100
commit1d0876af1f6b526a930d39d9b6a3e053d218e981 (patch)
treec732473dd87dfcb5ec93f3a4354d528cdabe4bec /006.musl.full.build
parentf16d357f6f9528a4fac2e14f7b882f5a455faea2 (diff)
downloadmidipix_build-1d0876af1f6b526a930d39d9b6a3e053d218e981.tar.bz2
midipix_build-1d0876af1f6b526a930d39d9b6a3e053d218e981.tar.xz
- Major cleanup in general.
- Added --{build-{scripts,steps},help,tarball}. Variables can now be overriden on the command-line. - Integrated bzip2, dash, less, ncurses, popt, rsync, tar, util-linux, which, and xz; as there are no patches in portage/ for util-linux just yet, this presently requires integrated local patches. Git is included in build.vars only as it requires OpenSSL. - Include ntapi.local.patch and psxscl.local.patch in the repository.
Diffstat (limited to '006.musl.full.build')
-rw-r--r--006.musl.full.build60
1 files changed, 60 insertions, 0 deletions
diff --git a/006.musl.full.build b/006.musl.full.build
new file mode 100644
index 00000000..0b97e62e
--- /dev/null
+++ b/006.musl.full.build
@@ -0,0 +1,60 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+# Order: no-complex, native
+
+export lz_arch=${ARCH} lz_cflags_debug=-O2 lz_target=${TARGET};
+
+if [ "x${3}" = "xno-complex" ]; then
+ # Musl: build (no-complex)
+ _install=install_no_complex;
+ set_build_dir musl-${PKG_MUSL_VERSION}-${3} cross;
+ if ! is_build_script_done fetch; then
+ rm_if_exists musl-${PKG_MUSL_VERSION}.tar.gz;
+ fetch http://www.musl-libc.org/releases/musl-${PKG_MUSL_VERSION}.tar.gz \
+ ${PKG_MUSL_SHA256SUM};
+ rm_if_exists mmglue;
+ fetch_git mmglue ${GITROOT}/mmglue;
+ set_build_script_done fetch -extract;
+ fi;
+ if ! is_build_script_done extract; then
+ rm_if_exists musl-${PKG_MUSL_VERSION};
+ tar -xf musl-${PKG_MUSL_VERSION}.tar.gz;
+ cp -R mmglue/* musl-${PKG_MUSL_VERSION}/;
+ set_build_script_done extract -configure;
+ fi;
+elif [ "x${3}" = "xnative" ]; then
+ # Musl: build (full)
+ _install=install;
+ set_build_dir musl-${PKG_MUSL_VERSION} ${3};
+elif [ "x${3}" = "xfull" ]; then
+ # Musl: build (full)
+ _install=install;
+ set_build_dir musl-${PKG_MUSL_VERSION} cross;
+fi;
+if ! is_build_script_done configure; then
+ rm_if_exists -m -c ${BUILD_DIR};
+ ../lazy/lazy \
+ -a ${ARCH} \
+ -c gcc \
+ -f ${PREFIX_LVL} \
+ -n musl \
+ -p ../musl-${PKG_MUSL_VERSION} \
+ -t ${lz_target} \
+ -x config;
+ set_build_script_done configure clean -build;
+else
+ cd ${BUILD_DIR};
+fi;
+if ! is_build_script_done clean; then
+ make ${MAKEFLAGS} clean;
+ set_build_script_done clean -build;
+fi;
+if ! is_build_script_done build; then
+ ./lazy -e ${_install} \
+ -x build;
+ set_build_script_done build finish;
+fi;
+
+# vim:filetype=sh