39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libzip"
|
|
PKG_VERSION="1.8.0"
|
|
PKG_SHA256="f0763bda24ba947e80430be787c4b068d8b6aa6027a26a19923f0acfa3dac97e"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://libzip.org/"
|
|
PKG_URL="https://libzip.org/download/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain zlib bzip2"
|
|
PKG_LONGDESC="A C library for reading, creating, and modifying zip archives."
|
|
|
|
if [ "${DISTRO}" = "Lakka" ]; then
|
|
PKG_BUILD_FLAGS="+pic"
|
|
fi
|
|
|
|
PKG_CMAKE_OPTS_TARGET="-DENABLE_COMMONCRYPTO=OFF \
|
|
-DENABLE_GNUTLS=OFF \
|
|
-DENABLE_MBEDTLS=OFF \
|
|
-DENABLE_OPENSSL=OFF \
|
|
-DENABLE_WINDOWS_CRYPTO=OFF \
|
|
-DBUILD_TOOLS=OFF \
|
|
-DBUILD_REGRESS=OFF \
|
|
-DBUILD_EXAMPLES=OFF \
|
|
-DBUILD_DOC=OFF"
|
|
|
|
if [ "${DISTRO}" = "Lakka" ]; then
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_SHARED_LIBS=ON"
|
|
else
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_SHARED_LIBS=OFF"
|
|
fi
|
|
|
|
post_makeinstall_target() {
|
|
if [ "${DISTRO}" != "Lakka" ]; then
|
|
rm -rf ${INSTALL}/usr/lib
|
|
fi
|
|
}
|