distribution/packages/security/nspr/package.mk

44 lines
1.3 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# 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)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2022-02-05 14:23:32 +00:00
PKG_NAME="nspr"
2023-05-09 19:21:47 +00:00
PKG_VERSION="4.35"
2022-02-05 14:23:32 +00:00
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"
2022-04-14 11:56:57 +00:00
if [ "${TARGET_ARCH}" = "x86_64" ]; then
2022-02-05 14:23:32 +00:00
TARGET_USE_64="--enable-64bit"
fi
2022-04-14 11:56:57 +00:00
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"
2022-02-05 14:23:32 +00:00
configure_host() {
cd $(get_build_dir nss)/nspr
2022-04-14 11:56:57 +00:00
./configure --with-pthreads --enable-64bit --with-pthreads --prefix=${TOOLCHAIN}
2022-02-05 14:23:32 +00:00
}
pre_make_host() {
cd $(get_build_dir nss)/nspr
make clean
}
configure_target() {
cd $(get_build_dir nss)/nspr
2022-04-14 11:56:57 +00:00
./configure --with-pthreads ${TARGET_USE_64} ${TARGET_CONFIGURE_OPTS}
2022-02-05 14:23:32 +00:00
}
pre_make_target() {
cd $(get_build_dir nss)/nspr
make clean
}