Contents of /smage/trunk/extras/musl/musl-1.1.16-r1.smage2
Parent Directory | Revision Log
Revision 10583 -
(show annotations)
(download)
Fri Aug 25 07:30:43 2017 UTC (7 years, 1 month ago) by niro
File size: 913 byte(s)
Fri Aug 25 07:30:43 2017 UTC (7 years, 1 month ago) by niro
File size: 913 byte(s)
auto added: ver bump to 1.1.16-r1
1 | # $Id$ |
2 | |
3 | PNAME="musl" |
4 | PVER="1.1.16" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-libs" |
8 | |
9 | DESCRIPTION="Lightweight implementation of C standard library." |
10 | HOMEPAGE="http://www.musl-libc.org/" |
11 | |
12 | DEPEND="" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mtools |
18 | |
19 | SRC_URI=( |
20 | http://www.musl-libc.org/releases/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | ) |
23 | |
24 | UP2DATE="updatecmd http://www.musl-libc.org/download.html | grep "${PNAME}-" | highesttarball gz" |
25 | |
26 | src_prepare() |
27 | { |
28 | # not a tar gz but a normal tar archive |
29 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die |
30 | } |
31 | |
32 | src_compile() |
33 | { |
34 | cd ${SRCDIR} |
35 | |
36 | ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die |
37 | mmake || die |
38 | } |
39 | |
40 | src_install() |
41 | { |
42 | cd ${SRCDIR} |
43 | mmake DESTDIR=${BINDIR} install || die |
44 | |
45 | # honor usr-move |
46 | minstalldir /usr/$(mlibdir) || die |
47 | |
48 | minstalldocs COPYRIGHT README || die |
49 | } |