|
lalbornoz |
340f4c |
if is_build_script_done finished; then
|
|
lalbornoz |
340f4c |
exit 212;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f5eeee |
elif [ "x${2}" = "xlibz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_url=https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_fname=${_pkg_url##*/};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_sha256sum=${PKG_LIBZ_SHA256SUM};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_subdir=${2}-${PKG_LIBZ_VERSION};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f5eeee |
elif [ "x${2}" = "xgzip" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_url=https://ftp.gnu.org/gnu/gzip/gzip-${PKG_GZIP_VERSION}.tar.gz;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_fname=${_pkg_url##*/};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_sha256sum=${PKG_GZIP_SHA256SUM};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
_pkg_subdir=${2}-${PKG_GZIP_VERSION};
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
fetch ${_pkg_url} ${_pkg_sha256sum};
|
|
lalbornoz |
340f4c |
if ! is_build_script_done extracted; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
rm_if_exists ${_pkg_fname%%.tar*};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
tar -axf ${_pkg_fname};
|
|
lalbornoz |
340f4c |
set_build_script_done extracted -patched;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done configured; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
set_build_dir ${_pkg_fname%%-*} native;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
rm_if_exists -c -m ${_build_dir};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
cp -a ../portage/config.cache .;
|
|
lalbornoz |
340f4c |
CFLAGS="${CFLAGS_PACKAGES}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
../${_pkg_subdir}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
--host=${HOST_NATIVE} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
--prefix= \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
--target=${TARGET};
|
|
lalbornoz |
340f4c |
set_build_script_done configured -built;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
cd ${_build_dir};
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done built; then
|
|
lalbornoz |
340f4c |
if [ "x${3}" = "xlibz" ]; then
|
|
lalbornoz |
340f4c |
make -j18;
|
|
lalbornoz |
340f4c |
elif [ "x${3}" = "xgzip" ]; then
|
|
lalbornoz |
340f4c |
make clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
make CFLAGS="-g3 -O0 -I${PREFIX_NATIVE}/include" LDFLAGS=--sysroot=${PREFIX_NATIVE};
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
set_build_script_done built -installed;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done installed; then
|
|
lalbornoz |
340f4c |
if [ "x${3}" = "xlibz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
make -j18 DESTDIR=${PREFIX_NATIVE} install;
|
|
lalbornoz |
340f4c |
elif [ "x${3}" = "xgzip" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
cp -a gunzip gzip zcat ${PREFIX_NATIVE}/bin;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
set_build_script_done installed finished;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
|
|
lalbornoz |
340f4c |
# vim:filetype=sh
|