Contents of /tags/old-unstable-20120113/extras/nspr/nspr-4.8.2-r1.smage2
Parent Directory | Revision Log
Revision 9870 -
(show annotations)
(download)
Fri Jan 13 21:26:11 2012 UTC (12 years, 8 months ago) by niro
File size: 1991 byte(s)
Fri Jan 13 21:26:11 2012 UTC (12 years, 8 months ago) by niro
File size: 1991 byte(s)
tagged 'old-unstable-20120113'
1 | # $Id$ |
2 | |
3 | PNAME="nspr" |
4 | PVER="4.8.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Netscape Portable Runtime (NSPR)." |
11 | HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | |
15 | SRCFILE="${PNAME}-${PVER/.0/}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.0/}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PVER/.0/}/src/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-4.6.6-pkgconfig.patch |
24 | ) |
25 | |
26 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'current release' | sed 's/.* is \(.*\). See.*/\1/'" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # add missing pkgconfig file |
34 | mpatch ${PNAME}-4.6.6-pkgconfig.patch || die |
35 | |
36 | install -d ${SRCDIR}/build || die |
37 | install -d ${SRCDIR}/inst || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR}/build |
43 | |
44 | local conf |
45 | [[ ${ARCH} = x86_64 ]]&& conf="--enable-64bit" |
46 | |
47 | ../mozilla/nsprpub/configure \ |
48 | --host=${CHOST} \ |
49 | --prefix=/usr \ |
50 | --infodir=/usr/share/info \ |
51 | --mandir=/usr/share/man \ |
52 | --libdir=/usr/$(mlibdir)/nspr \ |
53 | --enable-ipv6 \ |
54 | ${conf} \ |
55 | || die |
56 | |
57 | mmake || die |
58 | } |
59 | |
60 | src_install() |
61 | { |
62 | cd ${SRCDIR}/build |
63 | |
64 | make install || die |
65 | |
66 | minstalldir /usr || die |
67 | cp -rfL dist/* ${BINDIR}/usr || die |
68 | |
69 | # remove the libs from bindir |
70 | rm -rf ${BINDIR}/usr/bin/lib*.so || die |
71 | |
72 | # move all file to /usr/lib/nspr as the built system is broken |
73 | # this fixes libdir on 64bit arches also |
74 | minstalldir /usr/lib/nspr || die |
75 | mv ${BINDIR}/usr/lib/*so* ${BINDIR}/usr/lib/nspr || die |
76 | mv ${BINDIR}/usr/lib/*\.a ${BINDIR}/usr/lib/nspr || die |
77 | if [[ $(mlibdir) != lib ]] |
78 | then |
79 | mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die |
80 | fi |
81 | |
82 | # install nspr-config |
83 | minstallexec config/nspr-config || die |
84 | |
85 | # install pkg-config file |
86 | minstalldir /usr/$(mlibdir)/pkgconfig || die |
87 | minstallfile config/nspr.pc /usr/$(mlibdir)/pkgconfig || die |
88 | |
89 | # inform the system about the new ldpath |
90 | minstalldir /etc/env.d || die |
91 | echo "LDPATH=/usr/$(mlibdir)/nspr" > ${BINDIR}/etc/env.d/08nspr || die |
92 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |