Magellan Linux

Contents of /branches/R11-unstable/extras/lmdb/lmdb-0.9.22-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32581 - (show annotations) (download)
Mon Apr 29 13:12:15 2019 UTC (4 years, 11 months ago) by niro
File size: 1337 byte(s)
-release branches/R11-unstable
1 # $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 mmake CC="'$(mabi-cc)'" prefix=/usr libdir=/usr/'$(mlibdir)' || die
32 }
33
34 src_check()
35 {
36 mmake CC="'$(mabi-cc)'" -j1 -k test || die
37 }
38
39 src_install()
40 {
41 mmake CC="'$(mabi-cc)'" DESTDIR=${BINDIR} prefix=/usr libdir=/usr/'$(mlibdir)' install || die
42
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 }