DESCRIPTION = "Mozilla's SSL and TLS implementation" HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/" PR = "r2" LICENSE = "MPL1.1 GPL LGPL" DEPENDS = "sqlite3 nspr" SRC_URI = "\ http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_6_RTM/src/${PN}-${PV}.tar.gz;name=archive \ file://00_ckbi_1.79.patch \ file://25_entropy.patch \ file://38_hurd.patch \ file://38_kbsd.patch \ file://38_mips64_build.patch \ file://80_security_build.patch \ file://80_security_tools.patch \ file://81_sonames.patch \ file://85_security_load.patch \ file://90_realpath.patch \ file://91_build_pwdecrypt.patch \ file://95_add_spi+cacert_ca_certs.patch \ file://96_NSS_VersionCheck.patch \ file://97_SSL_RENEGOTIATE_TRANSITIONAL.patch \ file://build-fix.patch;striplevel=0 \ file://nss.pc.in \ " SRC_URI[archive.md5sum] = "da42596665f226de5eb3ecfc1ec57cd1" SRC_URI[archive.sha256sum] = "8f9759be1ce928e82830923fde62a66e270c4645f10a4c176acfccb6021a9795" TD = "${S}/tentative-dist" TDS = "${S}/tentative-dist-staging" PARALLEL_MAKE = "" TARGET_CC_ARCH += "${LDFLAGS}" do_compile() { oe_runmake -C mozilla/security/nss \ build_coreconf \ build_dbm \ export libs program \ MOZILLA_CLIENT=1 \ BUILD_OPT=1 \ OS_TARGET=Linux \ OS_TEST="${TARGET_ARCH}" \ NSPR_INCLUDE_DIR="${STAGING_INCDIR}/mozilla/nspr" \ NSPR_LIB_DIR="${STAGING_LIBDIR}" \ SQLITE3_INCLUDE_DIR="${STAGING_INCDIR}" \ OPTIMIZER="${CFLAGS}" \ NS_USE_GCC=1 \ NSS_USE_SYSTEM_SQLITE=1 \ NSS_ENABLE_ECC=1 \ DEFAULT_COMPILER="${CC}" \ CC="${CC}" \ CCC="${CXX}" \ CXX="${CXX}" \ RANLIB="${RANLIB}" \ NATIVE_CC="${BUILD_CC}" \ NATIVE_FLAGS="${BUILD_CFLAGS}" } do_install() { oe_runmake -C mozilla/security/nss \ install \ MOZILLA_CLIENT=1 \ BUILD_OPT=1 \ OS_TARGET=Linux \ OS_TEST="${TARGET_ARCH}" \ NSPR_INCLUDE_DIR="${STAGING_INCDIR}/mozilla/nspr" \ NSPR_LIB_DIR="${STAGING_LIBDIR}" \ NS_USE_GCC=1 \ NSS_USE_SYSTEM_SQLITE=1 \ NSS_ENABLE_ECC=1 \ SOURCE_LIB_DIR="${TD}/${libdir}" \ SOURCE_BIN_DIR="${TD}/${bindir}" install -d ${D}/${libdir}/nss for shared_lib in ${TD}/${libdir}/*.so.* do cp $shared_lib ${D}/${libdir} ln -sf $(basename $shared_lib) ${D}/${libdir}/$(basename $shared_lib .1oe) done install -d ${D}/${includedir}/mozilla/nss install -m 644 -t ${D}/${includedir}/mozilla/nss mozilla/dist/public/nss/* for static_lib in ${TD}/${libdir}/*.a do oe_libinstall -C ${TD}/${libdir} `basename $static_lib .a` ${D}/${libdir} done install -d ${D}/${bindir} for binary in ${TD}/${bindir}/* do install -m 755 -t ${D}/${bindir} $binary done install -d ${D}${libdir}/pkgconfig/ sed 's/@VERSION@/${PV}/' ${WORKDIR}/nss.pc.in > ${D}${libdir}/pkgconfig/nss.pc }