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