|
lalbornoz |
340f4c |
export CFLAGS="${CFLAGS_PACKAGES}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
parse_with_pkg_name ${2} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
coreutils diffutils findutils patch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
gawk bash make grep sed binutils;
|
|
lalbornoz |
340f4c |
if is_build_script_done finished; then
|
|
lalbornoz |
340f4c |
exit 212;
|
|
lalbornoz |
340f4c |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
fetch ${_pkg_url} ${_pkg_sha256sum};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
if [ "x${_pkg_name}" = "xbinutils" ]\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
&& [ "x${3}" = "xhost" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
_no_config_cache=1; _no_destdir=1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
_configure_args="--disable-werror --prefix=${PREFIX} --with-sysroot=${PREFIX_TARGET}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
set_build_dir ${_pkg_subdir} cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
fa26ee |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
_configure_args="-C --host=${HOST_NATIVE} --prefix=";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
set_build_dir ${_pkg_subdir} native;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
_configure_args="${_configure_args}${_pkg_configure_extra_args:+ ${_pkg_configure_extra_args}}";
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done extracted; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
rm_if_exists ${_pkg_subdir};
|
|
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 patched; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
patch -d ${_pkg_subdir} -p1 \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
< portage/${_pkg_subdir}.midipix.patch;
|
|
lalbornoz |
340f4c |
set_build_script_done patched -configured;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done configured; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
rm_if_exists -m -c ${_build_dir};
|
|
lalbornoz |
340f4c |
[ ${_no_config_cache:-0} -eq 0 ] &&\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
cp -a ../portage/config.cache .;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
../${_pkg_subdir}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
${_configure_args} --target=${TARGET};
|
|
lalbornoz |
340f4c |
set_build_script_done configured -built;
|
|
lalbornoz |
340f4c |
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 |
make ${MAKEFLAGS};
|
|
lalbornoz |
340f4c |
set_build_script_done built -installed;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done installed; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c49754 |
if [ ${_no_destdir:-0} -eq 0 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
6e940c |
make ${MAKEFLAGS} DESTDIR=${PREFIX_NATIVE} install;
|
|
lalbornoz |
340f4c |
else
|
|
lalbornoz |
340f4c |
make ${MAKEFLAGS} install;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
set_build_script_done installed finished;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
|
|
lalbornoz |
340f4c |
# vim:filetype=sh
|