blob: a6408954cb0a3cc8543e73afc5cd3279ac6ba60b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
DESCRIPTION = "Mozilla's SSL and TLS implementation"
HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/"
LICENSE = "MPL1.1 GPL LGPL"
PR = "r3"
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 \
file://nss.pc.in \
"
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
install -d ${D}${libdir}/pkgconfig/
sed 's/@VERSION@/${PV}/' ${WORKDIR}/nss.pc.in > ${D}${libdir}/pkgconfig/nss.pc
}
FILES_${PN} = "${bindir} ${libdir}/nss/*.so"
FILES_${PN}-static += "${libdir}/nss/*.a"
|