mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-02-17 06:37:37 +00:00
autoreconf: support custom PKG_CONFIGURE_SCRIPT
This commit is contained in:
parent
058b49e3e1
commit
730db0768a
@ -6,27 +6,29 @@
|
||||
|
||||
. config/options "${1}"
|
||||
|
||||
if [ ! -f "${PKG_BUILD}/configure.in" \
|
||||
-a ! -f "${PKG_BUILD}/configure.ac" ]; then
|
||||
RECONF_DIR="${3}"
|
||||
|
||||
if [ ! -f "${RECONF_DIR}/configure.in" \
|
||||
-a ! -f "${RECONF_DIR}/configure.ac" ]; then
|
||||
die "configure.in or configure.ac not found"
|
||||
fi
|
||||
|
||||
if [ ! -f "${PKG_BUILD}/.autoreconf-done" ]; then
|
||||
if [ ! -f "${RECONF_DIR}/.autoreconf-done" ]; then
|
||||
PARENT_PKG="${2}"
|
||||
|
||||
# lock package during autoreconf otherwise it is racy, eg. glib:host/glib:target building concurrently
|
||||
pkg_lock "${PKG_NAME}" "reconf" "${PARENT_PKG}"
|
||||
|
||||
if [ ! -f "${PKG_BUILD}/.autoreconf-done" ]; then
|
||||
if [ ! -f "${RECONF_DIR}/.autoreconf-done" ]; then
|
||||
pkg_lock_status "ACTIVE" "${PKG_NAME}" "reconf"
|
||||
|
||||
touch "${PKG_BUILD}/NEWS" "${PKG_BUILD}/AUTHORS" "${PKG_BUILD}/ChangeLog"
|
||||
mkdir -p "${PKG_BUILD}/m4"
|
||||
touch "${RECONF_DIR}/NEWS" "${RECONF_DIR}/AUTHORS" "${RECONF_DIR}/ChangeLog"
|
||||
mkdir -p "${RECONF_DIR}/m4"
|
||||
|
||||
build_msg "CLR_AUTORECONF" "AUTORECONF" "${PKG_NAME}" "indent"
|
||||
|
||||
do_autoreconf "${PKG_BUILD}"
|
||||
touch "${PKG_BUILD}/.autoreconf-done"
|
||||
do_autoreconf "${RECONF_DIR}"
|
||||
touch "${RECONF_DIR}/.autoreconf-done"
|
||||
|
||||
pkg_lock_status "UNLOCK" "${PKG_NAME}" "reconf" "configured"
|
||||
else
|
||||
|
@ -207,7 +207,7 @@ BOOTSTRAP_MESON_OPTS="${HOST_MESON_OPTS}"
|
||||
|
||||
# make autoreconf
|
||||
if [ "${PKG_TOOLCHAIN}" = "autotools" ]; then
|
||||
${SCRIPTS}/autoreconf "${PKG_NAME}" "${PARENT_PKG}"
|
||||
${SCRIPTS}/autoreconf "${PKG_NAME}" "${PARENT_PKG}" $(dirname "${PKG_CONFIGURE_SCRIPT}")
|
||||
fi
|
||||
|
||||
pkg_lock_status "ACTIVE" "${PKG_NAME}:${TARGET}" "build"
|
||||
|
Loading…
x
Reference in New Issue
Block a user