# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/nss/nss.conf # Copyright (C) 2008 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- srcdir=nss-*/nss pkgprefix -t nspr libdir=$libdir/nss includedir=$includedir/nss var_remove_regex GCC_WRAPPER_REMOVE ' ' '-march.*' var_remove_regex GCC_WRAPPER_INSERT ' ' '-march=.*' var_append makeopt ' ' 'BUILD_OPT=1' [ $arch_sizeof_char_p = 8 ] && var_append makeopt ' ' 'USE_64=1' var_append makeopt ' ' 'NSPR_INCLUDE_DIR=$root/usr/include/nspr' var_append makeopt ' ' 'USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz' var_append makeopt ' ' 'NSS_USE_SYSTEM_SQLITE=1' var_append makeopt ' ' 'NSS_DISABLE_GTESTS=1' makeinstopt= nss_install() { cd ../dist cp -L */lib/*.so $root$libdir cp -L */lib/*.chk $root$libdir cp -L */lib/*.a $root$libdir cp -L {public,private}/nss/*.h $root$includedir install -v -m755 */bin/{certutil,pk12util} $root$bindir NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" public/nss/nss.h | awk '{print $3}'` NSS_VMINOR=`grep "#define.*NSS_VMINOR" public/nss/nss.h | awk '{print $3}'` NSS_VPATCH=`grep "#define.*NSS_VPATCH" public/nss/nss.h | awk '{print $3}'` sed -e "s,@libdir@,$libdir,g" \ -e "s,@prefix@,/$prefix,g" \ -e "s,@exec_prefix@,\$\{prefix},g" \ -e "s,@includedir@,\$\{prefix}/include/nss,g" \ -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \ -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \ -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \ $confdir/nss-config.in > ${root}${bindir}/nss-config chmod 755 $root$bindir/nss-config sed -e "s,@libdir@,$libdir,g" \ -e "s,@prefix@,/$prefix,g" \ -e "s,@exec_prefix@,\$\{prefix},g" \ -e "s,@includedir@,\$\{prefix}/include/nss," \ -e "s,@NSPR_VERSION@,`nspr-config --version`,g" \ -e "s,@NSS_VERSION@,$NSS_VMAJOR.$NSS_VMINOR.$NSS_VPATCH,g" \ $confdir/nss.pc.in > ${root}$(pkgprefix libdir pkgconfig)/pkgconfig/nss.pc chmod 644 $root$(pkgprefix libdir pkgconfig)/pkgconfig/nss.pc } hook_add postmake 5 nss_install