diff options
author | Koen Kooi <koen@openembedded.org> | 2010-04-16 10:17:50 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-16 10:17:50 +0200 |
commit | bf18c876b0b6dd542f80dfccd575d9fa2c3a4fdf (patch) | |
tree | 279c8491ed91af425aee0a675591a351948f3975 /recipes/mozilla/nss_3.12.bb | |
parent | 199effd4c7b1b62bc133a577e42d7043ee7202e7 (diff) | |
download | openembedded-bf18c876b0b6dd542f80dfccd575d9fa2c3a4fdf.tar.gz |
nss 3.12: import from jalimo, convert to new style staging, convert to new style checksums, fix QA errors, fix packaging
Diffstat (limited to 'recipes/mozilla/nss_3.12.bb')
-rw-r--r-- | recipes/mozilla/nss_3.12.bb | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/recipes/mozilla/nss_3.12.bb b/recipes/mozilla/nss_3.12.bb new file mode 100644 index 0000000000..5edb1ba28b --- /dev/null +++ b/recipes/mozilla/nss_3.12.bb @@ -0,0 +1,99 @@ +DESCRIPTION = "Mozilla's SSL and TLS implementation" +HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/" + +LICENSE = "MPL1.1 GPL LGPL" + +DEPENDS = "sqlite3 nspr" + +SRC_URI = "\ + http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/src/${PN}-${PV}.tar.gz;name=archive \ + file://25_entropy.dpatch;patch=1 \ + file://38_mips64_build.dpatch;patch=1 \ + file://80_security_build.dpatch;patch=1 \ + file://80_security_tools.dpatch;patch=1 \ + file://81_sonames.dpatch;patch=1 \ + file://85_security_load.dpatch;patch=1 \ + file://90_realpath.dpatch;patch=1 \ + file://91_build_pwdecrypt.dpatch;patch=1 \ + file://95_add_spi+cacert_ca_certs.dpatch;patch=1 \ + file://build-fix.patch;patch=1 \ +" + +SRC_URI[archive.md5sum] = "917f4e05f3982bd7fceaede197f0e1d4" +SRC_URI[archive.sha256sum] = "d30a7470b82a73ed442525b365afaf00427204e3771edfeab05743acca97122b" + +S = "${WORKDIR}/nss-${PV}/mozilla" + +TD = "${S}/tentative-dist" +TDS = "${S}/tentative-dist-staging" + +PARALLEL_MAKE = "" + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_compile() { + oe_runmake -C 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 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}/nss + done + + install -d ${D}/${includedir}/mozilla/nss + install -m 644 -t ${D}/${includedir}/mozilla/nss dist/public/nss/* + + for static_lib in ${TD}/${libdir}/*.a + do + oe_libinstall -C ${TD}/${libdir} `basename $static_lib .a` ${D}/${libdir}/nss + done + + install -d ${D}/${bindir} + for binary in ${TD}/${bindir}/* + do + install -m 755 -t ${D}/${bindir} $binary + done + +} + +FILES_${PN} = "${bindir} ${libdir}/nss/*.so" +FILES_${PN}-static += "${libdir}/nss/*.a" |