summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nspr/nspr_4.9.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/nspr/nspr_4.9.4.bb')
-rw-r--r--meta/recipes-support/nspr/nspr_4.9.4.bb168
1 files changed, 168 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.9.4.bb b/meta/recipes-support/nspr/nspr_4.9.4.bb
new file mode 100644
index 0000000000..0c985e278f
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.9.4.bb
@@ -0,0 +1,168 @@
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=40;md5=f0babf9590d84c33083483f4ab9f98c0 \
5 file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99"
6SECTION = "libs/network"
7
8PR = "r0"
9
10SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
11 file://remove-rpath-from-tests.patch \
12 file://fix-build-on-x86_64.patch \
13 file://trickly-fix-build-on-x86_64.patch \
14 "
15
16SRC_URI += "file://nspr.pc.in"
17
18S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
19
20SRC_URI[md5sum] = "cf58772702b3abbdcff14e22014eeeaf"
21SRC_URI[sha256sum] = "749046c75be17f2f8b3874d288873d3355cedcb37abe7b6eb7b3bc374440d4a4"
22
23TESTS = "runtests.pl \
24 runtests.sh \
25 accept \
26 acceptread \
27 acceptreademu \
28 affinity \
29 alarm \
30 anonfm \
31 atomic \
32 attach \
33 bigfile \
34 cleanup \
35 cltsrv \
36 concur \
37 cvar \
38 cvar2 \
39 dlltest \
40 dtoa \
41 errcodes \
42 exit \
43 fdcach \
44 fileio \
45 foreign \
46 formattm \
47 fsync \
48 gethost \
49 getproto \
50 i2l \
51 initclk \
52 inrval \
53 instrumt \
54 intrio \
55 intrupt \
56 io_timeout \
57 ioconthr \
58 join \
59 joinkk \
60 joinku \
61 joinuk \
62 joinuu \
63 layer \
64 lazyinit \
65 libfilename \
66 lltest \
67 lock \
68 lockfile \
69 logfile \
70 logger \
71 many_cv \
72 multiwait \
73 nameshm1 \
74 nblayer \
75 nonblock \
76 ntioto \
77 ntoh \
78 op_2long \
79 op_excl \
80 op_filnf \
81 op_filok \
82 op_nofil \
83 parent \
84 parsetm \
85 peek \
86 perf \
87 pipeping \
88 pipeping2 \
89 pipeself \
90 poll_nm \
91 poll_to \
92 pollable \
93 prftest \
94 primblok \
95 provider \
96 prpollml \
97 ranfile \
98 randseed \
99 reinit \
100 rwlocktest \
101 sel_spd \
102 selct_er \
103 selct_nm \
104 selct_to \
105 selintr \
106 sema \
107 semaerr \
108 semaping \
109 sendzlf \
110 server_test \
111 servr_kk \
112 servr_uk \
113 servr_ku \
114 servr_uu \
115 short_thread \
116 sigpipe \
117 socket \
118 sockopt \
119 sockping \
120 sprintf \
121 stack \
122 stdio \
123 str2addr \
124 strod \
125 switch \
126 system \
127 testbit \
128 testfile \
129 threads \
130 timemac \
131 timetest \
132 tpd \
133 udpsrv \
134 vercheck \
135 version \
136 writev \
137 xnotify \
138 zerolen"
139
140inherit autotools
141
142do_configure() {
143 oe_runconf
144}
145
146do_compile_prepend() {
147 oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
148}
149
150do_compile_append() {
151 oe_runmake -C pr/tests
152}
153
154do_install_append() {
155 install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
156 sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
157 sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
158 sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
159 sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
160 cd ${S}/pr/tests
161 mkdir -p ${D}${libdir}/nspr/tests
162 install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests
163}
164
165FILES_${PN} = "${bindir}/* ${libdir}/lib*.so"
166FILES_${PN}-dev = "${libdir}/nspr/tests/* ${libdir}/pkgconfig \
167 ${includedir}/* ${datadir}/aclocal/* "
168FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"