Contents of /branches/magellan-next/core/dietlibc/dietlibc-0.32-r2.smage2
Parent Directory | Revision Log
Revision 6043 -
(show annotations)
(download)
Wed Aug 18 11:20:05 2010 UTC (14 years, 1 month ago) by niro
File size: 1192 byte(s)
Wed Aug 18 11:20:05 2010 UTC (14 years, 1 month ago) by niro
File size: 1192 byte(s)
auto added: ver bump to 0.32-r2
1 | # $Id: dietlibc-0.32-r1.smage2 3176 2009-10-14 10:13:37Z niro $ |
2 | |
3 | PNAME="dietlibc" |
4 | PVER="0.32" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="diet libc - a libc optimized for small size." |
11 | HOMEPAGE="http://www.fefe.de/dietlibc/" |
12 | |
13 | DEPEND="" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | SRC_URI=( |
19 | http://www.kernel.org/pub/linux/libs/${PNAME}/${SRCFILE} |
20 | mirror://${PNAME}/${SRCFILE} |
21 | mirror://${PNAME}/0.24-dirent-prototype.patch |
22 | mirror://${PNAME}/dietlibc-0.28-Makefile.patch |
23 | ) |
24 | |
25 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/${PNAME} | lasttarball" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # fix protopypes var types both to off_t |
33 | mpatch 0.24-dirent-prototype.patch || die |
34 | |
35 | # fix up install pathes and CFLAGS |
36 | mpatch dietlibc-0.28-Makefile.patch || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | mmake MYARCH="${ARCH/i*86/i386}" CFLAGS="${CFLAGS}" || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | mmake MYARCH="${ARCH/i*86/i386}" \ |
51 | DESTDIR=${BINDIR} BINDIR=/usr/bin \ |
52 | MAN1DIR=/usr/share/man/man1 install || die |
53 | |
54 | # docs |
55 | minstalldocs AUTHOR BUGS CAVEAT CHANGES COPYING FAQ \ |
56 | PORTING README* SECURITY THANKS TODO || die |
57 | } |