mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
packages: set custom PKG_[CONFIGURE|CMAKE|MESON]_SCRIPT in configure_package()
When setting a custom build script (which must be relative to $PKG_BUILD), the value should be set in configure_package() so that $PKG_BUILD is known, and also because the path to the script will be validated prior to calling pre_configure_$TARGET(), so the script variable must be configured once the pacakge is sourced.
This commit is contained in:
parent
c19a3ff780
commit
c2281f3c37
@ -26,7 +26,7 @@ configure_package() {
|
||||
PKG_CONFIGURE_OPTS_TARGET="--with-cross-build=$PKG_BUILD/.$HOST_NAME \
|
||||
$PKG_ICU_OPTS"
|
||||
|
||||
PKG_CONFIGURE_SCRIPT="source/configure"
|
||||
PKG_CONFIGURE_SCRIPT="${PKG_BUILD}/source/configure"
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
|
@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="gettext"
|
||||
PKG_VERSION="0.19.8.1"
|
||||
@ -10,7 +11,8 @@ PKG_URL="http://ftp.gnu.org/pub/gnu/gettext/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST="ccache:host"
|
||||
PKG_LONGDESC="A program internationalization library and tools."
|
||||
|
||||
PKG_CONFIGURE_SCRIPT="gettext-tools/configure"
|
||||
configure_package() {
|
||||
PKG_CONFIGURE_SCRIPT="${PKG_BUILD}/gettext-tools/configure"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="--enable-static --disable-shared \
|
||||
--disable-rpath \
|
||||
@ -21,3 +23,4 @@ PKG_CONFIGURE_OPTS_HOST="--enable-static --disable-shared \
|
||||
--disable-native-java \
|
||||
--disable-csharp \
|
||||
--without-emacs"
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="dvbhdhomerun"
|
||||
PKG_VERSION="20130704"
|
||||
@ -13,17 +14,11 @@ PKG_NEED_UNPACK="$LINUX_DEPENDS"
|
||||
PKG_LONGDESC="A linux DVB driver for the HDHomeRun TV tuner (http://www.silicondust.com)."
|
||||
PKG_IS_KERNEL_PKG="yes"
|
||||
|
||||
PKG_CMAKE_SCRIPT="userhdhomerun/CMakeLists.txt"
|
||||
|
||||
pre_make_target() {
|
||||
( cd ../kernel
|
||||
LDFLAGS="" make dvb_hdhomerun KERNEL_DIR=$(kernel_path)
|
||||
fix_module_depends dvb_hdhomerun_core.ko "dvb_core"
|
||||
)
|
||||
configure_package() {
|
||||
PKG_CMAKE_SCRIPT="${PKG_BUILD}/userhdhomerun/CMakeLists.txt"
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
|
||||
# use it here to be sure libhdhomerun is already built
|
||||
PKG_CMAKE_OPTS_TARGET="-DLIBHDHOMERUN_PATH=$(ls -d $BUILD/libhdhomerun-*/)"
|
||||
|
||||
@ -34,6 +29,13 @@ pre_configure_target() {
|
||||
sed -i "s|/etc/dvbhdhomerun|/tmp/dvbhdhomerun|g" ../userhdhomerun/hdhomerun_controller.cpp
|
||||
}
|
||||
|
||||
pre_make_target() {
|
||||
( cd ../kernel
|
||||
LDFLAGS="" make dvb_hdhomerun KERNEL_DIR=$(kernel_path)
|
||||
fix_module_depends dvb_hdhomerun_core.ko "dvb_core"
|
||||
)
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
cd $PKG_BUILD
|
||||
mkdir -p $INSTALL/$(get_full_module_dir)/hdhomerun
|
||||
|
Loading…
x
Reference in New Issue
Block a user