Magellan Linux

Contents of /branches/R11-stable/core/m4/m4-1.4.16-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14865 - (show annotations) (download)
Wed Jan 2 09:34:20 2013 UTC (11 years, 4 months ago) by niro
File size: 924 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="m4"
4 PVER="1.4.16"
5 PBUILD="r2"
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 }