Magellan Linux

Contents of /trunk/extras/iniparser/iniparser-4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31800 - (show annotations) (download)
Wed Dec 12 08:43:39 2018 UTC (5 years, 4 months ago) by niro
File size: 1137 byte(s)
-fixed src_install and honor mabi-cc
1 # $Id$
2
3 PNAME="iniparser"
4 PVER="4.1"
5 PBUILD="r1"
6
7 PCAT="dev-libs"
8
9 DESCRIPTION="A free stand-alone ini file parsing library written in portable ANSI C."
10 HOMEPAGE="http://ndevilla.free.fr/iniparser/"
11
12 DEPEND=">= virtual/glibc"
13
14 SRCFILE="v${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude multilib mbuild rpath
18
19 SRC_URI=(
20 https://github.com/ndevilla/${PNAME}/archive/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2SEPERATOR="v"
25 UP2DATE="updatecmd https://github.com/ndevilla/${PNAME}/releases | highesttarball gz"
26
27 src_compile()
28 {
29 mmake CC=$(mabi-cc) || die
30 }
31
32 src_install()
33 {
34 minstalldir /usr/include || die
35 minstallfile src/iniparser.h /usr/include/ || die
36 minstallfile src/dictionary.h /usr/include/ || die
37
38 minstalldir /usr/$(mlibdir) || die
39 # minstalllib not working here because of soname
40 all-abis minstallexec libiniparser.so.1 /usr/'$(mlibdir)'/ || die
41 # remove rpath
42 mdeleterpath /usr/'$(mlibdir)'/libiniparser.so.1 || die
43 all-abis mlink libiniparser.so.1 /usr/'$(mlibdir)'/libiniparser.so || die
44 if mqueryfeature "static"
45 then
46 all-abis minstallfile libiniparser.so.a /usr/'$(mlibdir)'/ || die
47 fi
48 }