mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
zlib : Add libMinizip build to package
Thiw will add libminizip.a to sysroot so that some programs can link to it.
This commit is contained in:
parent
b74e416457
commit
61a9cd4e1b
@ -36,6 +36,17 @@ PKG_AUTORECONF="no"
|
|||||||
TARGET_CONFIGURE_OPTS="--prefix=/usr"
|
TARGET_CONFIGURE_OPTS="--prefix=/usr"
|
||||||
HOST_CONFIGURE_OPTS="--prefix=$ROOT/$TOOLCHAIN"
|
HOST_CONFIGURE_OPTS="--prefix=$ROOT/$TOOLCHAIN"
|
||||||
|
|
||||||
|
post_configure_target() {
|
||||||
|
## configure minizip
|
||||||
|
(
|
||||||
|
cd $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip
|
||||||
|
rm Makefile
|
||||||
|
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:../../"
|
||||||
|
do_autoreconf
|
||||||
|
./configure --host=$TARGET_NAME --build=$HOST_NAME $TARGET_CONFIGURE_OPTS --disable-shared --enable-static
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
pre_build_target() {
|
pre_build_target() {
|
||||||
mkdir -p $PKG_BUILD/.$TARGET_NAME
|
mkdir -p $PKG_BUILD/.$TARGET_NAME
|
||||||
cp -RP $PKG_BUILD/* $PKG_BUILD/.$TARGET_NAME
|
cp -RP $PKG_BUILD/* $PKG_BUILD/.$TARGET_NAME
|
||||||
@ -45,3 +56,14 @@ pre_build_host() {
|
|||||||
mkdir -p $PKG_BUILD/.$HOST_NAME
|
mkdir -p $PKG_BUILD/.$HOST_NAME
|
||||||
cp -RP $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME
|
cp -RP $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_make_target() {
|
||||||
|
# make minizip
|
||||||
|
make -C $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip
|
||||||
|
}
|
||||||
|
|
||||||
|
post_makeinstall_target() {
|
||||||
|
# Install minizip
|
||||||
|
make -C $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip DESTDIR=$SYSROOT_PREFIX install
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user