Annotation of /trunk/extras/lmdb/lmdb-0.9.22-r3.smage2
Parent Directory | Revision Log
Revision 31772 -
(hide annotations)
(download)
Fri Dec 7 10:17:34 2018 UTC (5 years, 11 months ago) by niro
File size: 1337 byte(s)
Fri Dec 7 10:17:34 2018 UTC (5 years, 11 months ago) by niro
File size: 1337 byte(s)
-fixed evaluation
1 | niro | 31771 | # $Id$ |
2 | |||
3 | PNAME="lmdb" | ||
4 | PVER="0.9.22" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCAT="dev-db" | ||
8 | |||
9 | DESCRIPTION="Symas Lightning Memory-Mapped Database." | ||
10 | HOMEPAGE="https://symas.com/lmdb/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="LMDB_${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-LMDB_${PVER}" | ||
16 | SRCSUBDIR="libraries/liblmdb" | ||
17 | |||
18 | sminclude multilib mbuild mtools | ||
19 | |||
20 | SRC_URI=( | ||
21 | https://github.com/LMDB/${PNAME}/archive/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/lmdb.pc | ||
24 | ) | ||
25 | |||
26 | UP2SEPERATOR="_" | ||
27 | UP2DATE="updatecmd https://github.com/LMDB/lmdb/releases | highesttarball gz" | ||
28 | |||
29 | src_compile() | ||
30 | { | ||
31 | niro | 31772 | mmake CC="'$(mabi-cc)'" prefix=/usr libdir=/usr/'$(mlibdir)' || die |
32 | niro | 31771 | } |
33 | |||
34 | src_check() | ||
35 | { | ||
36 | niro | 31772 | mmake CC="'$(mabi-cc)'" -j1 -k test || die |
37 | niro | 31771 | } |
38 | |||
39 | src_install() | ||
40 | { | ||
41 | niro | 31772 | mmake CC="'$(mabi-cc)'" DESTDIR=${BINDIR} prefix=/usr libdir=/usr/'$(mlibdir)' install || die |
42 | niro | 31771 | |
43 | # create missing pkgconfig files | ||
44 | minstalldir /usr/$(mlibdir)/pkgconfig || die | ||
45 | minstallfile -s lmdb.pc /usr/$(mlibdir)/pkgconfig/ || die | ||
46 | sed -i -e "s:@@PVER@@:${PVER}:g" -e "s:@@MLIBDIR@@:$(mlibdir):g" ${BINDIR}/usr/$(mlibdir)/pkgconfig/lmdb.pc || die | ||
47 | if [[ $(mlibdir) != lib ]] | ||
48 | then | ||
49 | minstalldir /usr/lib/pkgconfig || die | ||
50 | minstallfile -s lmdb.pc /usr/lib/pkgconfig/ || die | ||
51 | sed -i -e "s:@@PVER@@:${PVER}:g" -e "s:@@MLIBDIR@@:lib:g" ${BINDIR}/usr/lib/pkgconfig/lmdb.pc || die | ||
52 | fi | ||
53 | |||
54 | minstalldocs CHANGES COPYRIGHT LICENSE || die | ||
55 | } |