# IT4Innovations 2019 easyblock = 'MakeCp' name = 'NSS' version = '3.51' homepage = 'https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS' description = """Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications.""" toolchain = SYSTEM source_urls = ['https://ftp.mozilla.org/pub/security/nss/releases/NSS_%(version_major)s_%(version_minor)s_RTM/src/'] sources = [SOURCELOWER_TAR_GZ] patches = ['NSS-3.39_pkgconfig.patch'] builddependencies = [('binutils', '2.27')] dependencies = [ ('NSPR', '4.25'), ('zlib', '1.2.11'), ] # building in parallel fails parallel = 1 # fix for not being able to find header files buildopts = 'WARNING_CFLAGS="" BUILD_OPT=1 USE_64=1 CPATH="$EBROOTNSPR/include/nspr:$CPATH" && ' # also install pkgconfig file (see patch) buildopts += "cd config && make PREFIX=%(installdir)s BUILD_OPT=1 USE_64=1 && cd -" files_to_copy = ['../dist/Linux*.OBJ/*', (['../dist/public/*'], 'include')] sanity_check_paths = { 'files': ['lib/libnss.a'], 'dirs': ['bin', 'include/dbm', 'include/nss'], } modextrapaths = {'CPATH': 'include/nss'} moduleclass = 'lib'