mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
Merge pull request #2086 from lrusak/minizip
move minizip to it's own package
This commit is contained in:
commit
f8f1527fdd
37
packages/compress/minizip/package.mk
Normal file
37
packages/compress/minizip/package.mk
Normal file
@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016 Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="minizip"
|
||||
PKG_VERSION="1.1"
|
||||
PKG_SHA256="5666b5ee3e85dfd2dd119970613c12e6267d31813f07d3ffa5d359fe272cb6d1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="zlib"
|
||||
PKG_SITE="https://github.com/nmoinvaz/minizip"
|
||||
PKG_URL="https://github.com/nmoinvaz/minizip/archive/$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="zlib"
|
||||
PKG_SECTION="compress"
|
||||
PKG_SHORTDESC="Minizip zlib contribution fork with latest bug fixes"
|
||||
PKG_LONGDESC="Minizip zlib contribution fork with latest bug fixes"
|
||||
|
||||
PKG_CMAKE_OPTS_TARGET="-DUSE_AES=OFF \
|
||||
-DBUILD_TEST=ON"
|
||||
|
||||
makeinstall_target() {
|
||||
cp -v miniunz_exec $SYSROOT_PREFIX/usr/bin/miniunz
|
||||
cp -v minizip_exec $SYSROOT_PREFIX/usr/bin/minizip
|
||||
}
|
@ -30,26 +30,3 @@ PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"
|
||||
PKG_LONGDESC="zlib is a general purpose data compression library. All the code is thread safe. The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format)."
|
||||
PKG_AUTORECONF="no"
|
||||
PKG_USE_NINJA="no"
|
||||
|
||||
post_configure_target() {
|
||||
## configure minizip
|
||||
(
|
||||
cd $PKG_BUILD/contrib/minizip
|
||||
rm Makefile
|
||||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:../../"
|
||||
do_autoreconf
|
||||
cp $PKG_BUILD/.$TARGET_NAME/zconf.h ./
|
||||
./configure --host=$TARGET_NAME --build=$HOST_NAME $TARGET_CONFIGURE_OPTS --disable-shared --enable-static
|
||||
)
|
||||
}
|
||||
|
||||
post_make_target() {
|
||||
# make minizip
|
||||
make -C $PKG_BUILD/contrib/minizip
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
# Install minizip
|
||||
make -C $PKG_BUILD/contrib/minizip DESTDIR=$SYSROOT_PREFIX install
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user