Contents of /smage/trunk/extras/musl/musl-1.1.16-r2.smage2
Parent Directory | Revision Log
Revision 10590 -
(show annotations)
(download)
Fri Aug 25 08:26:29 2017 UTC (6 years, 8 months ago) by niro
File size: 979 byte(s)
Fri Aug 25 08:26:29 2017 UTC (6 years, 8 months ago) by niro
File size: 979 byte(s)
-keep static libs
1 | # $Id$ |
2 | |
3 | PNAME="musl" |
4 | PVER="1.1.16" |
5 | PBUILD="r2" |
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 | # keep static libs to build a static busybox |
18 | msetfeature "static" |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | http://www.musl-libc.org/releases/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd http://www.musl-libc.org/download.html | grep "${PNAME}-" | highesttarball gz" |
27 | |
28 | src_prepare() |
29 | { |
30 | # not a tar gz but a normal tar archive |
31 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die |
32 | } |
33 | |
34 | src_compile() |
35 | { |
36 | cd ${SRCDIR} |
37 | |
38 | ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die |
39 | mmake || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | mmake DESTDIR=${BINDIR} install || die |
46 | |
47 | # honor usr-move |
48 | minstalldir /usr/$(mlibdir) || die |
49 | |
50 | minstalldocs COPYRIGHT README || die |
51 | } |