|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
# . ./build.vars and set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f9c386 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f677c4 |
parse_with_pkg_name ${SCRIPT_FNAME%%[0-9][0-9].*} ${2} ${PKG_BUILD_NAMES};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
if [ "${ARG_RESTART_SCRIPT_AT}" = diff ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
printf "" > ${MIDIPIX_BUILD_PWD}/${PKG_SUBDIR}.local.patch.new;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
for __ in $(find ${PKG_SUBDIR} -name \*.orig); do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
if [ -e ${__%.orig} ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
echo diff -Nru ${__} ${__%.orig};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
set +o errexit; diff -Nru ${__} ${__%.orig} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
>> ${MIDIPIX_BUILD_PWD}/${PKG_SUBDIR}.local.patch.new; __=${?}; set -o errexit;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
if [ ${__} -ge 2 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
exit 1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
ls -la ${MIDIPIX_BUILD_PWD}/${PKG_SUBDIR}.local.patch.new;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
exit 0;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a89601 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
if ! is_build_script_done fetch; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
if test_cmd pkg_${PKG_NAME}_fetch; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
pkg_${PKG_NAME}_fetch;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
fa26ee |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
if [ "${PKG_URL_TYPE:-wget}" = wget ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
fetch "${PKG_URL}" ${PKG_SHA256SUM};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
49b310 |
fetch_git ${PKG_SUBDIR} ${PKG_URL} ${PKG_GIT_BRANCH};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
a41d08 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d3841 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done fetch -extract;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if test_cmd pkg_${PKG_NAME}_finish; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f9c386 |
pkg_${PKG_NAME}_finish; exit 0;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9ba5d3 |
elif [ "${PKG_URL_TYPE:-wget}" = wget ] &&\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
! is_build_script_done extract; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
secure_rm ${PKG_SUBDIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
30e09b |
if [ ${PKG_SUBDIR_CREATE:-0} -eq 1 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
insecure_mkdir ${PKG_SUBDIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
30e09b |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
if [ "${PKG_FNAME##*.tar.}" = "bz2" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
bunzip2 -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
elif [ "${PKG_FNAME##*.tar.}" = "gz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
gunzip -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
elif [ "${PKG_FNAME##*.tar.}" = "xz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
xz -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
elif [ "${PKG_FNAME##*.t}" = "bz2" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
bunzip2 -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
elif [ "${PKG_FNAME##*.t}" = "gz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
gunzip -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
elif [ "${PKG_FNAME##*.t}" = "xz" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
xz -d < ${DLCACHEDIR}/${PKG_FNAME} | tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
tar ${PKG_SUBDIR_CREATE:+-C ${PKG_SUBDIR}} -xf ${DLCACHEDIR}/${PKG_FNAME};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
9d8145 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
if test_cmd pkg_${PKG_NAME}_extract_post; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
pkg_${PKG_NAME}_extract_post;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done extract -build_dir;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if [ -z "${PKG_BUILD_DIR}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_dir ${PKG_SUBDIR} ${PKG_BUILD_TYPE:-native};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
if ! is_build_script_done build_dir; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
[ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ] &&\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
secure_rm ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
insecure_mkdir ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done build_dir -patch;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ -e ${PKG_SUBDIR}/configure -o \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-e ${PKG_SUBDIR}/configure.ac -o \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-e ${PKG_SUBDIR}/configure.in -o \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-e ${PKG_SUBDIR}/config.guess ] \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
&& ! is_build_script_done autoconf; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
find ${PKG_SUBDIR} -name config.sub \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-exec echo mv -- {} {}.orig \; \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-exec mv -- {} {}.orig \; \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-exec echo install -m 0700 ${MIDIPIX_BUILD_PWD}/config.sub {} \; \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-exec install -m 0700 ${MIDIPIX_BUILD_PWD}/config.sub {} \;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ -e ${PKG_SUBDIR}/configure.ac -a \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
! -e ${PKG_SUBDIR}/configure ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ad72fd |
if [ -x ${PKG_SUBDIR}/autogen.sh ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
for __ in ${PKG_SUBDIR}/build-aux ${PKG_SUBDIR}; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
if [ -e ${__} ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
echo install -m 0700 \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
${MIDIPIX_BUILD_PWD}/config.sub \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
${__}/config.sub;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
install -m 0700 \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
${MIDIPIX_BUILD_PWD}/config.sub \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
${__}/config.sub;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
break;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
082664 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ad72fd |
(cd ${PKG_SUBDIR} && ./autogen.sh) || exit 1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ad72fd |
(cd ${PKG_SUBDIR} && autoconf) || exit 1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ad72fd |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5bc428 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
for __ in ${PKG_BUILD_DIR} ${PKG_CONFIG_CACHE_EXTRA}; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
echo cp -- ${MIDIPIX_BUILD_PWD}/config.cache ${__}/;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
cp -- ${MIDIPIX_BUILD_PWD}/config.cache ${__}/;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
set_build_script_done autoconf -patch;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if ! is_build_script_done patch; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
for __patch_fname in \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b2ff37 |
${MIDIPIX_BUILD_PWD}/${PKG_SUBDIR}.local.patch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b2ff37 |
${MIDIPIX_BUILD_PWD}/${PKG_SUBDIR}.local@${BUILD_HNAME}.patch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b2ff37 |
${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}.local.patch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b2ff37 |
${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}.local@${BUILD_HNAME}.patch; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ -r "${__patch_fname}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
patch -b -d ${PKG_SUBDIR} -p1 < ${__patch_fname};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
done; unset __patch_fname;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
539500 |
if test_cmd pkg_${PKG_NAME}_patch_post; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
539500 |
pkg_${PKG_NAME}_patch_post;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
2dd87f |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done patch -configure;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ "${PKG_BUILD_TYPE}" = "host" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export AR=ar;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export CC=gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export RANLIB=ranlib;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export AR=${PKG_TARGET}-ar;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export CC=${PKG_TARGET}-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
export RANLIB=${PKG_TARGET}-ranlib;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if [ -x ../${PKG_SUBDIR}/configure ]\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
&& ! is_build_script_done configure; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if test_cmd pkg_${PKG_NAME}_configure_pre; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
pkg_${PKG_NAME}_configure_pre;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
../${PKG_SUBDIR}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done configure clean -build;
|
|
lalbornoz |
340f4c |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__no_autoconf=1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
set_build_script_done clean -build;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
if [ ${PKG_NO_CLEAN:-0} -eq 0 ]\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
&& ! is_build_script_done clean; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
make clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
if test_cmd pkg_${PKG_NAME}_build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
pkg_${PKG_NAME}_build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
elif [ -n "${PKG_BUILD_CMDLINE}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
${PKG_BUILD_CMDLINE};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ "${PKG_SLIBTOOL}" != "default" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
11ee19 |
export MAKE="make LIBTOOL=${PKG_SLIBTOOL:-slibtool}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
11ee19 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
# N.B. We only specify CC= here if the current package does not use GNU
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
# autoconf as it often abuses it by appending -std={gnu99,...} to it
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
# instead of amending CFLAGS.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
run_cmd_unsplit make \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
${PKG_MAKEFLAGS_BUILD} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
${PKG_MAKEFLAGS_BUILD_EXTRA} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
AR=${AR} ${__no_autoconf:+CC=${CC}} RANLIB=${RANLIB} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_CFLAGS_BUILD:+CFLAGS=${PKG_CFLAGS_BUILD}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_CFLAGS_BUILD_EXTRA:+CFLAGS+=${PKG_CFLAGS_BUILD_EXTRA}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_LDFLAGS_BUILD:+LDFLAGS=${PKG_LDFLAGS_BUILD}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_LDFLAGS_BUILD_EXTRA:+LDFLAGS+=${PKG_LDFLAGS_BUILD_EXTRA}}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
unset __no_autoconf;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
set_build_script_done build -install;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if test_cmd pkg_${PKG_NAME}_install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
pkg_${PKG_NAME}_install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f9c386 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ ${PKG_NO_MAKE_INSTALL:-0} -eq 0 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
for __ in "" ${PKG_PREFIX_EXTRA}; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
run_cmd_unsplit make \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
${PKG_MAKEFLAGS_INSTALL} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
${PKG_MAKEFLAGS_INSTALL_EXTRA} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
AR=${AR} CC=${CC} RANLIB=${RANLIB} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
"${PKG_CFLAGS_INSTALL:+CFLAGS=${PKG_CFLAGS_INSTALL}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_CFLAGS_INSTALL_EXTRA:+CFLAGS+=${PKG_CFLAGS_INSTALL_EXTRA}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_LDFLAGS_INSTALL:+LDFLAGS=${PKG_LDFLAGS_INSTALL}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
"${PKG_LDFLAGS_INSTALL_EXTRA:+LDFLAGS+=${PKG_LDFLAGS_INSTALL_EXTRA}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
"${PKG_RANLIB_INSTALL:+RANLIB=${PKG_RANLIB_INSTALL}}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
${PKG_INSTALL_TARGET:=install} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
${__};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
if test_cmd pkg_${PKG_NAME}_install_post; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
pkg_${PKG_NAME}_install_post;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f9c386 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ -d ${PKG_PREFIX}/lib ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
for __ in $(find ${PKG_PREFIX}/lib -type f -name \*.la); do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
secure_rm ${__};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
if [ -n "${PKG_INSTALL_FILES}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
(set -- ${PKG_INSTALL_FILES};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
while [ ${#} -gt 0 ]; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
case "${1}" in
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
@*=*)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__ln_target="${1%=*}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__ln_target="${__ln_target#@}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__ln_fname="${1#*=}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
echo ln -sf -- ${__ln_target} ${PKG_PREFIX}/${__ln_fname};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
ln -sf -- ${__ln_target} ${PKG_PREFIX}/${__ln_fname};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
/=*)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__mkdir_fname="${1#/=}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
insecure_mkdir ${PKG_PREFIX}/${__mkdir_fname};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
539500 |
*)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__file_fname_src="${1%=*}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
__file_fname_dst="${1#*=}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
echo cp -pP -- ${__file_fname_src} ${PKG_PREFIX}/${__file_fname_dst};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
cp -pP -- ${__file_fname_src} ${PKG_PREFIX}/${__file_fname_dst};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
esac; shift;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
done);
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
86c0f5 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
if test_cmd perk && test_cmd ${PKG_TARGET}-dlltool; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
for __so_fname in \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
$(find \( -name "*.so" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
-or -name "*.so.[0-9]" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
-or -name "*.so.[0-9].[0-9]" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
afe7b9 |
-or -name "*.so.[0-9].[0-9].[0-9]" \) -printf '%P\n');
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
if [ \( -e ${__so_fname%.so}.lib.a \) -o \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5c0666 |
\( ! -e ${PKG_PREFIX}/lib/$(basename ${__so_fname}) \) ];
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
continue;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
__so_name="${__so_fname%.so}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
echo perk -epdlltool ${__so_fname} \> ${__so_fname%.so}.def;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
perk -epdlltool ${__so_fname} > ${__so_fname%.so}.def;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
echo ${PKG_TARGET}-dlltool -l ${__so_fname%.so}.lib.a \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
-D ${__so_fname} -d ${__so_fname%.so}.def;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
${PKG_TARGET}-dlltool -l ${__so_fname%.so}.lib.a \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
-D ${__so_fname} -d ${__so_fname%.so}.def;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
echo cp -- ${__so_fname%.so}.lib.a "${PKG_PREFIX}/lib";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
cp -- ${__so_fname%.so}.lib.a "${PKG_PREFIX}/lib";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
672107 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
392fef |
set_build_script_done install -finish;
|
|
lalbornoz |
340f4c |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
1d0876 |
set_build_script_done finish;
|
|
lalbornoz |
340f4c |
|
|
lalbornoz |
340f4c |
# vim:filetype=sh
|