Magellan Linux

Contents of /smage/branches/alx07x-stable/extras/musl/musl-1.1.16-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11484 - (show annotations) (download)
Tue Dec 19 15:57:05 2017 UTC (6 years, 4 months ago) by niro
File size: 1066 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="musl"
4 PVER="1.1.16"
5 PBUILD="r3"
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 # unset all build flags here
29 unset CPPFLAGS
30 unset CFLAGS
31 unset CXXFLAGS
32 unset LDFLAGS
33
34 src_prepare()
35 {
36 # not a tar gz but a normal tar archive
37 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die
45 mmake || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51 mmake DESTDIR=${BINDIR} install || die
52
53 # honor usr-move
54 minstalldir /usr/$(mlibdir) || die
55
56 minstalldocs COPYRIGHT README || die
57 }