Magellan Linux

Contents of /smage/branches/alx07x-stable/extras/musl/musl-1.1.19-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12784 - (show annotations) (download)
Fri Oct 26 08:45:04 2018 UTC (5 years, 6 months ago) by niro
File size: 1183 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="musl"
4 PVER="1.1.19"
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 SDEPEND="== sys-kernel/linux-musl-headers-3.12.6_6"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 # keep static libs to build a static busybox
19 msetfeature "static"
20 sminclude mtools
21
22 SRC_URI=(
23 http://www.musl-libc.org/releases/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd http://www.musl-libc.org/download.html | grep "${PNAME}-" | highesttarball gz"
28
29 # unset all build flags here
30 unset CPPFLAGS
31 unset CFLAGS
32 unset CXXFLAGS
33 unset LDFLAGS
34
35 src_prepare()
36 {
37 # seems to be fixed with 1.1.18
38 #
39 ## not a tar gz but a normal tar archive
40 #tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
41 munpack ${SRCFILE} || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die
49 mmake || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55 mmake DESTDIR=${BINDIR} install || die
56
57 # honor usr-move
58 minstalldir /usr/$(mlibdir) || die
59
60 minstalldocs COPYRIGHT README || die
61 }