Lakka-LibreELEC/packages/security/nspr/package.mk
Matheus Sampaio Queiroga f6b1c515df
patch to rk322x tv box
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2024-11-11 13:25:52 -03:00

43 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="nspr"
PKG_VERSION="4.36"
PKG_LICENSE="Mozilla Public License"
PKG_SITE="http://www.linuxfromscratch.org/blfs/view/svn/general/nspr.html"
PKG_DEPENDS_HOST="ccache:host"
PKG_DEPENDS_TARGET="toolchain nss:host nspr:host"
PKG_DEPENDS_UNPACK="nss"
PKG_LONGDESC="Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc like functions"
PKG_TOOLCHAIN="configure"
PKG_BUILD_FLAGS="-parallel"
if [ "${TARGET_ARCH}" = "x86_64" ]; then
TARGET_USE_64="--enable-64bit"
fi
PKG_CONFIGURE_OPTS_TARGET="--with-pthreads ${TARGET_USE_64}"
PKG_MAKE_OPTS_TARGET="NSINSTALL=${TOOLCHAIN}/bin/nsinstall"
PKG_MAKEINSTALL_OPTS_TARGET="NSINSTALL=${TOOLCHAIN}/bin/nsinstall"
configure_host() {
cd $(get_build_dir nss)/nspr
./configure --with-pthreads --enable-64bit --with-pthreads --prefix=${TOOLCHAIN}
}
pre_make_host() {
cd $(get_build_dir nss)/nspr
make clean
}
configure_target() {
cd $(get_build_dir nss)/nspr
./configure --with-pthreads ${TARGET_USE_64} ${TARGET_CONFIGURE_OPTS}
}
pre_make_target() {
cd $(get_build_dir nss)/nspr
make clean
}