mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
zlib: use cmake configuration
This commit is contained in:
parent
3c5fe20bf1
commit
b95d8b41c4
@ -33,37 +33,25 @@ PKG_LONGDESC="zlib is a general purpose data compression library. All the code i
|
|||||||
PKG_IS_ADDON="no"
|
PKG_IS_ADDON="no"
|
||||||
PKG_AUTORECONF="no"
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
TARGET_CONFIGURE_OPTS="--prefix=/usr"
|
|
||||||
HOST_CONFIGURE_OPTS="--prefix=$ROOT/$TOOLCHAIN"
|
|
||||||
|
|
||||||
post_configure_target() {
|
post_configure_target() {
|
||||||
## configure minizip
|
## configure minizip
|
||||||
(
|
(
|
||||||
cd $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip
|
cd $ROOT/$PKG_BUILD/contrib/minizip
|
||||||
rm Makefile
|
rm Makefile
|
||||||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:../../"
|
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:../../"
|
||||||
do_autoreconf
|
do_autoreconf
|
||||||
|
cp $ROOT/$PKG_BUILD/.$TARGET_NAME/zconf.h ./
|
||||||
./configure --host=$TARGET_NAME --build=$HOST_NAME $TARGET_CONFIGURE_OPTS --disable-shared --enable-static
|
./configure --host=$TARGET_NAME --build=$HOST_NAME $TARGET_CONFIGURE_OPTS --disable-shared --enable-static
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build_target() {
|
|
||||||
mkdir -p $PKG_BUILD/.$TARGET_NAME
|
|
||||||
cp -RP $PKG_BUILD/* $PKG_BUILD/.$TARGET_NAME
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build_host() {
|
|
||||||
mkdir -p $PKG_BUILD/.$HOST_NAME
|
|
||||||
cp -RP $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME
|
|
||||||
}
|
|
||||||
|
|
||||||
post_make_target() {
|
post_make_target() {
|
||||||
# make minizip
|
# make minizip
|
||||||
make -C $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip
|
make -C $ROOT/$PKG_BUILD/contrib/minizip
|
||||||
}
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
# Install minizip
|
# Install minizip
|
||||||
make -C $ROOT/$PKG_BUILD/.$TARGET_NAME/contrib/minizip DESTDIR=$SYSROOT_PREFIX install
|
make -C $ROOT/$PKG_BUILD/contrib/minizip DESTDIR=$SYSROOT_PREFIX install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user