Magellan Linux

Annotation of /smage/trunk/extras/musl/musl-1.1.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11852 - (hide annotations) (download)
Wed Aug 15 14:36:28 2018 UTC (5 years, 10 months ago) by niro
File size: 1131 byte(s)
auto added: ver bump to 1.1.19-r1
1 niro 11852 # $Id$
2    
3     PNAME="musl"
4     PVER="1.1.19"
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     # 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     # seems to be fixed with 1.1.18
37     #
38     ## not a tar gz but a normal tar archive
39     #tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
40     munpack ${SRCFILE} || die
41     }
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46    
47     ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die
48     mmake || die
49     }
50    
51     src_install()
52     {
53     cd ${SRCDIR}
54     mmake DESTDIR=${BINDIR} install || die
55    
56     # honor usr-move
57     minstalldir /usr/$(mlibdir) || die
58    
59     minstalldocs COPYRIGHT README || die
60     }