mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
764 B

  1. srcdir="nss-$ver/mozilla/security/nss"
  2. var_append makeopt " " "nss_build_all"
  3. hook_add premake 5 nss_premake
  4. hook_add postmake 5 nss_postmake
  5. nss_premake ()
  6. {
  7. tar -xf $archdir/nspr-$nspr_ver.tar.bz2
  8. mv nspr-$nspr_ver/mozilla/nsprpub $builddir/nss-$ver/mozilla/
  9. }
  10. nss_postmake ()
  11. {
  12. rm -f ../../dist/Linux*/bin/lib*.so
  13. cp -LpR ../../dist/Linux*/bin/* $bindir
  14. mkdir -p $includedir/{nss,nspr}
  15. cp -LpR ../../dist/public/nss/* $includedir/nss
  16. cp -LpR ../../dist/Linux*/include/* $includedir/nspr
  17. # openssl also contains a libssl.a file
  18. ( cd ../../dist/Linux*/lib/ ; mv libssl{,-nss}.a ; )
  19. cp -LpR ../../dist/Linux*/lib/* $libdir
  20. cp -Lp ../../nsprpub/Linux*/config/nspr-config $bindir
  21. sed -i -e"s,^prefix=/usr/local$,prefix=/usr," $bindir/nspr-config
  22. }