Magellan Linux

Contents of /smage/trunk/core/m4/m4-1.4.16-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3634 - (show annotations) (download)
Fri Jul 13 13:10:14 2012 UTC (11 years, 11 months ago) by niro
File size: 924 byte(s)
-added serveral fixes
1 # $Id$
2
3 PNAME="m4"
4 PVER="1.4.16"
5 PBUILD="r3"
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 src_compile()
45 {
46 cd ${SRCDIR}
47
48 mconfigure --enable-changeword || die
49 mmake || die
50 }