talimat 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Description: Güvenlik özellikli istemci ve sunucu uygulamalarının çapraz platform geliştirmesi desteği
  2. # URL: http://www.mozilla.org
  3. # Packager: milisarge
  4. # Depends on: nspr sqlite
  5. name=nss
  6. version=3.30.2
  7. release=2
  8. source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$name-$version.tar.gz \
  9. nss-config.in nss.pc.in)
  10. build() {
  11. cd $name-$version/
  12. sed -i nss/coreconf/Linux.mk \
  13. -e 's|^CC.*=.*gcc$|#&|' \
  14. -e 's|^CCC.*=.*g++$|#&|'
  15. export NSPR_INCLUDE_DIR=/usr/include/nspr
  16. export NSPR_LIB_DIR=/usr/lib
  17. export NSS_USE_SYSTEM_SQLITE=1
  18. export NSS_ENABLE_ECC=1
  19. export NSS_ENABLE_TLS_1_3=1
  20. export BUILD_OPT=1
  21. export XCFLAGS="-Wno-error ${CFLAGS}"
  22. export NSS_DISABLE_GTESTS=1
  23. export USE_64=1
  24. make -j1 -C nss
  25. install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
  26. cd dist/*.OBJ/bin
  27. install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
  28. cd ../lib
  29. install -t "$PKG/usr/lib" *.so
  30. install -t "$PKG/usr/lib" -m644 libcrmf.a *.chk
  31. cd ../../public/nss
  32. install -t "$PKG/usr/include/nss" -m644 *.h
  33. install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
  34. _version=$(printf "%i.%i.%i" ${version//./ })
  35. sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config
  36. NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
  37. NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
  38. NSPR_VERSION=`pkg-config --modversion nspr`
  39. sed $SRC/nss.pc.in \
  40. -e "s,%libdir%,/usr/lib," \
  41. -e "s,%prefix%,/usr," \
  42. -e "s,%exec_prefix%,/usr/bin," \
  43. -e "s,%includedir%,/usr/include/nss," \
  44. -e "s,%NSS_VERSION%,$version," \
  45. -e "s,%NSPR_VERSION%,$NSPR_VERSION," \
  46. -e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
  47. -e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
  48. $PKG/usr/lib/pkgconfig/nss.pc
  49. }