2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Netscape Portable Runtime Library"
|
2012-02-05 20:58:32 +00:00
|
|
|
HOMEPAGE = "http://www.mozilla.org/projects/nspr/"
|
2012-12-14 03:02:38 +00:00
|
|
|
LICENSE = "GPL-2.0 | MPL-2.0 | LGPL-2.1"
|
2013-02-25 18:37:00 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=6;md5=90c2fdee38e45d6302abcfe475c8b5c5 \
|
2012-12-14 03:02:38 +00:00
|
|
|
file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99"
|
2012-02-05 20:58:32 +00:00
|
|
|
SECTION = "libs/network"
|
|
|
|
|
2015-09-16 05:28:21 +00:00
|
|
|
SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
|
2012-02-13 20:54:36 +00:00
|
|
|
file://remove-rpath-from-tests.patch \
|
nspr 4.8.9: failed to build on x86_64 board
nspr failed to build on x86_64 board(e.g., qemux86-64):
x86_64-poky-linux-gcc -m64 ... -m32 ...
...
fatal error: gnu/stubs-32.h: No such file or directory
This is because there are both '-m64' and '-m32' in gcc's options, and
the later one is used, but what we need is '-m64' since it is x86_64,
this is caused by an incorrect logic in configure.in, we should assume
that the pkg uses 64bit when target_cpu is x86_64 (it has two options:
--enable-n32 and --enable-64bit, both of them are not set by default),
we only can assume that the pkg uses 32bit when USE_N32 is set. But
what it did was that assumed 32bit when target_cpu was x86_64 unless
--enable-64bit was set, this seems unreasonable and caused the "gcc -m64
-m32" error.
Some had noticed this error before:
https://lists.yoctoproject.org/pipermail/poky/2011-May/005799.html
NOTE:
* Both fix configure and configure.in since we can't run the
"autoreconf" for nsrp, please see more explanation in
trickly-fix-build-on-x86_64.patch.
* Also fixed powerpc64, this is just fixed by conclusion since we don't
suport ppc64.
[YOCTO #2179]
(From OE-Core rev: 1d8fea3b9c9dd8f3e2b72ee8c8a9b834f4a3d729)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-27 09:37:17 +00:00
|
|
|
file://fix-build-on-x86_64.patch \
|
2014-09-09 23:15:11 +00:00
|
|
|
file://remove-srcdir-from-configure-in.patch \
|
2012-02-11 12:36:39 +00:00
|
|
|
"
|
2012-02-05 20:58:32 +00:00
|
|
|
|
2012-02-11 12:36:39 +00:00
|
|
|
SRC_URI += "file://nspr.pc.in"
|
2012-02-05 20:58:32 +00:00
|
|
|
|
2015-02-02 18:05:06 +00:00
|
|
|
SRC_URI[md5sum] = "8d7c5bd0a5b0a7d0e705be66479030a0"
|
|
|
|
SRC_URI[sha256sum] = "507ea57c525c0c524dae4857a642b4ef5c9d795518754c7f83422d22fe544a15"
|
2013-03-25 16:08:18 +00:00
|
|
|
|
2013-06-12 06:01:09 +00:00
|
|
|
S = "${WORKDIR}/nspr-${PV}/nspr"
|
2012-02-05 20:58:32 +00:00
|
|
|
|
2013-06-12 06:01:09 +00:00
|
|
|
RDEPENDS_${PN}-dev += "perl"
|
2013-10-16 05:46:35 +00:00
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
2012-12-14 03:02:38 +00:00
|
|
|
|
2015-01-13 02:55:19 +00:00
|
|
|
TESTS = " \
|
2012-02-11 12:36:39 +00:00
|
|
|
accept \
|
|
|
|
acceptread \
|
|
|
|
acceptreademu \
|
|
|
|
affinity \
|
|
|
|
alarm \
|
|
|
|
anonfm \
|
|
|
|
atomic \
|
|
|
|
attach \
|
|
|
|
bigfile \
|
|
|
|
cleanup \
|
|
|
|
cltsrv \
|
|
|
|
concur \
|
|
|
|
cvar \
|
|
|
|
cvar2 \
|
|
|
|
dlltest \
|
|
|
|
dtoa \
|
|
|
|
errcodes \
|
|
|
|
exit \
|
|
|
|
fdcach \
|
|
|
|
fileio \
|
|
|
|
foreign \
|
|
|
|
formattm \
|
|
|
|
fsync \
|
|
|
|
gethost \
|
|
|
|
getproto \
|
|
|
|
i2l \
|
|
|
|
initclk \
|
|
|
|
inrval \
|
|
|
|
instrumt \
|
|
|
|
intrio \
|
|
|
|
intrupt \
|
|
|
|
io_timeout \
|
|
|
|
ioconthr \
|
|
|
|
join \
|
|
|
|
joinkk \
|
|
|
|
joinku \
|
|
|
|
joinuk \
|
|
|
|
joinuu \
|
|
|
|
layer \
|
|
|
|
lazyinit \
|
|
|
|
libfilename \
|
|
|
|
lltest \
|
|
|
|
lock \
|
|
|
|
lockfile \
|
|
|
|
logfile \
|
|
|
|
logger \
|
|
|
|
many_cv \
|
|
|
|
multiwait \
|
|
|
|
nameshm1 \
|
|
|
|
nblayer \
|
|
|
|
nonblock \
|
|
|
|
ntioto \
|
|
|
|
ntoh \
|
|
|
|
op_2long \
|
|
|
|
op_excl \
|
|
|
|
op_filnf \
|
|
|
|
op_filok \
|
|
|
|
op_nofil \
|
|
|
|
parent \
|
|
|
|
parsetm \
|
|
|
|
peek \
|
|
|
|
perf \
|
|
|
|
pipeping \
|
|
|
|
pipeping2 \
|
|
|
|
pipeself \
|
|
|
|
poll_nm \
|
|
|
|
poll_to \
|
|
|
|
pollable \
|
|
|
|
prftest \
|
|
|
|
primblok \
|
|
|
|
provider \
|
|
|
|
prpollml \
|
|
|
|
ranfile \
|
|
|
|
randseed \
|
|
|
|
reinit \
|
|
|
|
rwlocktest \
|
|
|
|
sel_spd \
|
|
|
|
selct_er \
|
|
|
|
selct_nm \
|
|
|
|
selct_to \
|
|
|
|
selintr \
|
|
|
|
sema \
|
|
|
|
semaerr \
|
|
|
|
semaping \
|
|
|
|
sendzlf \
|
|
|
|
server_test \
|
|
|
|
servr_kk \
|
|
|
|
servr_uk \
|
|
|
|
servr_ku \
|
|
|
|
servr_uu \
|
|
|
|
short_thread \
|
|
|
|
sigpipe \
|
|
|
|
socket \
|
|
|
|
sockopt \
|
|
|
|
sockping \
|
|
|
|
sprintf \
|
|
|
|
stack \
|
|
|
|
stdio \
|
|
|
|
str2addr \
|
|
|
|
strod \
|
|
|
|
switch \
|
|
|
|
system \
|
|
|
|
testbit \
|
|
|
|
testfile \
|
|
|
|
threads \
|
|
|
|
timemac \
|
|
|
|
timetest \
|
|
|
|
tpd \
|
|
|
|
udpsrv \
|
|
|
|
vercheck \
|
|
|
|
version \
|
|
|
|
writev \
|
|
|
|
xnotify \
|
|
|
|
zerolen"
|
|
|
|
|
2015-01-13 02:55:19 +00:00
|
|
|
PR = "r1"
|
|
|
|
|
|
|
|
inherit autotools
|
2012-02-05 20:58:32 +00:00
|
|
|
|
|
|
|
do_compile_prepend() {
|
|
|
|
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
|
|
|
|
}
|
|
|
|
|
2012-02-11 12:36:39 +00:00
|
|
|
do_compile_append() {
|
|
|
|
oe_runmake -C pr/tests
|
|
|
|
}
|
|
|
|
|
2012-02-05 20:58:32 +00:00
|
|
|
do_install_append() {
|
|
|
|
install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
|
|
|
|
sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
|
|
|
|
sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
|
|
|
|
sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
|
|
|
|
sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
|
2015-01-13 02:55:19 +00:00
|
|
|
|
2012-02-11 12:36:39 +00:00
|
|
|
mkdir -p ${D}${libdir}/nspr/tests
|
2015-01-13 02:55:19 +00:00
|
|
|
install -m 0755 ${S}/pr/tests/runtests.pl ${D}${libdir}/nspr/tests
|
|
|
|
install -m 0755 ${S}/pr/tests/runtests.sh ${D}${libdir}/nspr/tests
|
|
|
|
cd ${B}/pr/tests
|
2012-02-11 12:36:39 +00:00
|
|
|
install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests
|
2013-03-25 16:08:18 +00:00
|
|
|
|
|
|
|
# delete compile-et.pl and perr.properties from ${bindir} because these are
|
|
|
|
# only used to generate prerr.c and prerr.h files from prerr.et at compile
|
|
|
|
# time
|
|
|
|
rm ${D}${bindir}/compile-et.pl ${D}${bindir}/prerr.properties
|
2012-02-05 20:58:32 +00:00
|
|
|
}
|
|
|
|
|
2013-03-25 16:08:18 +00:00
|
|
|
FILES_${PN} = "${libdir}/lib*.so"
|
|
|
|
FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \
|
2012-04-13 10:04:09 +00:00
|
|
|
${includedir}/* ${datadir}/aclocal/* "
|
2012-02-11 12:36:39 +00:00
|
|
|
FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*"
|
2013-07-10 07:26:07 +00:00
|
|
|
|
2014-01-31 09:30:02 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|