Contents of /smage/trunk/core/klibc/klibc-1.5-r3.smage2
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Sun Jan 11 01:07:49 2009 UTC (15 years, 5 months ago) by niro
File size: 1401 byte(s)
Sun Jan 11 01:07:49 2009 UTC (15 years, 5 months ago) by niro
File size: 1401 byte(s)
-fixed old cvs headers
1 | # $Id$ |
2 | |
3 | PNAME="klibc" |
4 | PVER="1.5" |
5 | PBUILD="r3" |
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 alx |
24 | |
25 | SRC_URI=( |
26 | http://www.kernel.org/pub/linux/libs/${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | ln -snf ${LINUX_SOURCES} ${SRCDIR}/linux || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | mmake ARCH=${ARCH/i*86/i386} || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | # needed directories |
47 | minstalldir /usr/share/aclocal || die |
48 | |
49 | mmake \ |
50 | ARCH=${ARCH/i*86/i386} \ |
51 | INSTALLROOT=${BINDIR} \ |
52 | mandir=/usr/share/man \ |
53 | libdir=/usr/$(mlibdir) \ |
54 | INSTALLDIR=/usr/$(mlibdir)/klibc \ |
55 | SHLIBDIR=/$(mlibdir) \ |
56 | install || die |
57 | |
58 | # remove hardlinks; use symlinks |
59 | rm ${BINDIR}/usr/$(mlibdir)/klibc/bin/{gunzip,zcat} || die |
60 | mlink gzip /usr/$(mlibdir)/klibc/bin/gunzip || die |
61 | mlink gzip /usr/$(mlibdir)/klibc/bin/zcat || die |
62 | |
63 | # missing ac-includes |
64 | minstallfile contrib/klibc.m4 /usr/share/aclocal || die |
65 | |
66 | # docs |
67 | minstalldocs README usr/klibc/{CAVEATS,LICENSE} usr/dash/README.klibc || die |
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |