Contents of /branches/R11-stable/core/m4/m4-1.4.17-r1.smage2
Parent Directory | Revision Log
Revision 20097 -
(show annotations)
(download)
Tue Nov 26 10:08:27 2013 UTC (10 years, 10 months ago) by niro
File size: 924 byte(s)
Tue Nov 26 10:08:27 2013 UTC (10 years, 10 months ago) by niro
File size: 924 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="m4" |
4 | PVER="1.4.17" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-dev" |
8 | |
9 | DESCRIPTION="GNU macro processor." |
10 | HOMEPAGE="http://www.gnu.org/software/m4/m4.html" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mbuild |
18 | |
19 | SRC_URI=( |
20 | gnu://${PNAME}/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-1.4.14-fix-includes.patch |
23 | mirror://${PNAME}/${PNAME}-${PVER}-readlink-einval.patch |
24 | mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd_gnu ${PNAME}" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # fix missing includes |
35 | mpatch ${PNAME}-1.4.14-fix-includes.patch || die |
36 | |
37 | # fix src_check |
38 | mpatch ${PNAME}-${PVER}-readlink-einval.patch || die |
39 | |
40 | # fix ftbfs against newer glibc (>=2.16) |
41 | mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die |
42 | } |
43 | |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | mconfigure --enable-changeword || die |
50 | mmake || die |
51 | } |