summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nspr/nspr_4.10.2.bb
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-12-03 15:09:27 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-09 18:01:45 +0000
commitd9dba45810b5210f2226c8132b34bb49583ee6b8 (patch)
treeea68419750ac0db3e6ea2947046a33746b438b22 /meta/recipes-support/nspr/nspr_4.10.2.bb
parent93729f628f88b8deb6bc4a7370356f97fee51f2b (diff)
downloadpoky-d9dba45810b5210f2226c8132b34bb49583ee6b8.tar.gz
nspr: Update to 4.10.2
(From OE-Core rev: 4d98e21c01ff41dd082ccf7a46b715e89873a891) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nspr/nspr_4.10.2.bb')
-rw-r--r--meta/recipes-support/nspr/nspr_4.10.2.bb178
1 files changed, 178 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.10.2.bb b/meta/recipes-support/nspr/nspr_4.10.2.bb
new file mode 100644
index 0000000000..b523a9ff52
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.10.2.bb
@@ -0,0 +1,178 @@
1DESCRIPTION = "Netscape Portable Runtime Library"
2HOMEPAGE = "http://www.mozilla.org/projects/nspr/"
3LICENSE = "GPL-2.0 | MPL-2.0 | LGPL-2.1"
4LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=6;md5=90c2fdee38e45d6302abcfe475c8b5c5 \
5 file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99"
6SECTION = "libs/network"
7
8SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
9 file://remove-rpath-from-tests.patch \
10 file://fix-build-on-x86_64.patch \
11 file://trickly-fix-build-on-x86_64.patch \
12 "
13
14SRC_URI += "file://nspr.pc.in"
15
16SRC_URI[md5sum] = "f0d254da0b2b870d9a5fa094e879d4b8"
17SRC_URI[sha256sum] = "4d09ee67a6fb57d3c646098b0ac7fd1e31be1c2c2ca57cd2ad28b42e6d3cf400"
18
19S = "${WORKDIR}/nspr-${PV}/nspr"
20
21RDEPENDS_${PN}-dev += "perl"
22TARGET_CC_ARCH += "${LDFLAGS}"
23
24TESTS = "runtests.pl \
25 runtests.sh \
26 accept \
27 acceptread \
28 acceptreademu \
29 affinity \
30 alarm \
31 anonfm \
32 atomic \
33 attach \
34 bigfile \
35 cleanup \
36 cltsrv \
37 concur \
38 cvar \
39 cvar2 \
40 dlltest \
41 dtoa \
42 errcodes \
43 exit \
44 fdcach \
45 fileio \
46 foreign \
47 formattm \
48 fsync \
49 gethost \
50 getproto \
51 i2l \
52 initclk \
53 inrval \
54 instrumt \
55 intrio \
56 intrupt \
57 io_timeout \
58 ioconthr \
59 join \
60 joinkk \
61 joinku \
62 joinuk \
63 joinuu \
64 layer \
65 lazyinit \
66 libfilename \
67 lltest \
68 lock \
69 lockfile \
70 logfile \
71 logger \
72 many_cv \
73 multiwait \
74 nameshm1 \
75 nblayer \
76 nonblock \
77 ntioto \
78 ntoh \
79 op_2long \
80 op_excl \
81 op_filnf \
82 op_filok \
83 op_nofil \
84 parent \
85 parsetm \
86 peek \
87 perf \
88 pipeping \
89 pipeping2 \
90 pipeself \
91 poll_nm \
92 poll_to \
93 pollable \
94 prftest \
95 primblok \
96 provider \
97 prpollml \
98 ranfile \
99 randseed \
100 reinit \
101 rwlocktest \
102 sel_spd \
103 selct_er \
104 selct_nm \
105 selct_to \
106 selintr \
107 sema \
108 semaerr \
109 semaping \
110 sendzlf \
111 server_test \
112 servr_kk \
113 servr_uk \
114 servr_ku \
115 servr_uu \
116 short_thread \
117 sigpipe \
118 socket \
119 sockopt \
120 sockping \
121 sprintf \
122 stack \
123 stdio \
124 str2addr \
125 strod \
126 switch \
127 system \
128 testbit \
129 testfile \
130 threads \
131 timemac \
132 timetest \
133 tpd \
134 udpsrv \
135 vercheck \
136 version \
137 writev \
138 xnotify \
139 zerolen"
140
141inherit autotools
142
143do_configure() {
144 gnu-configize --force
145 mv config.sub config.guess build/autoconf
146 oe_runconf
147}
148
149do_compile_prepend() {
150 oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
151}
152
153do_compile_append() {
154 oe_runmake -C pr/tests
155}
156
157do_install_append() {
158 install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
159 sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
160 sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
161 sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
162 sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
163 cd ${S}/pr/tests
164 mkdir -p ${D}${libdir}/nspr/tests
165 install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests
166
167 # delete compile-et.pl and perr.properties from ${bindir} because these are
168 # only used to generate prerr.c and prerr.h files from prerr.et at compile
169 # time
170 rm ${D}${bindir}/compile-et.pl ${D}${bindir}/prerr.properties
171}
172
173FILES_${PN} = "${libdir}/lib*.so"
174FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \
175 ${includedir}/* ${datadir}/aclocal/* "
176FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"
177
178BBCLASSEXTEND = "native"