Magellan Linux

Contents of /trunk/core/klibc/klibc-1.5.14-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (show annotations) (download)
Wed Oct 15 09:38:16 2008 UTC (15 years, 7 months ago) by niro
File size: 1770 byte(s)
-removed x86_64/x86_32 arch patch
1 # $Header: /magellan-cvs/smage/klibc/klibc-1.5-r5.smage2,v 1.1 2008/05/02 10:18:25 niro Exp $
2
3 PNAME="klibc"
4 PVER="1.5.14"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-libs"
8 STATE="unstable"
9
10 DESCRIPTION="A minimal libc subset for use with initramfs."
11 HOMEPAGE="http://www.kernel.org/pub/linux/libs/klibc/"
12
13 DEPEND=">= dev-lang/perl-5"
14 SDEPEND=">= virtual/kernel-sources"
15
16 SRCFILE="${PNAME}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 # global var: ${LINUX_SOURCES}
20 # location where they are
21 [[ -z ${LINUX_SOURCES} ]] && LINUX_SOURCES="/usr/src/linux"
22
23 sminclude mtools
24
25 SRC_URI=(
26 http://www.kernel.org/pub/linux/libs/${PNAME}/Testing/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 UP2DATE="updatecmd ${HOMEPAGE}/Testing/ | lasttarball"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 ln -snf ${LINUX_SOURCES} ${SRCDIR}/linux || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43 mmake \
44 ARCH=${ARCH/i*86/i386} \
45 mandir=/usr/share/man \
46 libdir=/usr/$(mlibdir) \
47 INSTALLDIR=/usr/$(mlibdir)/klibc \
48 SHLIBDIR=/$(mlibdir) \
49 || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55
56 # needed directories
57 minstalldir /usr/share/aclocal || die
58
59 mmake \
60 ARCH=${ARCH/i*86/i386} \
61 INSTALLROOT=${BINDIR} \
62 mandir=/usr/share/man \
63 libdir=/usr/$(mlibdir) \
64 INSTALLDIR=/usr/$(mlibdir)/klibc \
65 SHLIBDIR=/$(mlibdir) \
66 install || die
67
68 # remove hardlinks; use symlinks
69 rm ${BINDIR}/usr/$(mlibdir)/klibc/bin/{gunzip,zcat} || die
70 mlink gzip /usr/$(mlibdir)/klibc/bin/gunzip || die
71 mlink gzip /usr/$(mlibdir)/klibc/bin/zcat || die
72
73 # missing ac-includes
74 minstallfile contrib/klibc.m4 /usr/share/aclocal || die
75
76 # broken due the patch
77 mlink asm-x86 /usr/$(mlibdir)/klibc/include/asm || die
78
79 # docs
80 minstalldocs README usr/klibc/{CAVEATS,LICENSE} usr/dash/README.klibc || die
81 }

Properties

Name Value
svn:keywords Id