Magellan Linux

Contents of /trunk/extras/expect/expect-5.45-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12496 - (show annotations) (download)
Mon Jun 4 15:00:59 2012 UTC (12 years ago) by niro
File size: 754 byte(s)
-fixed tcl include dir
1 # $Id$
2
3 PNAME="expect"
4 PVER="5.45"
5 PBUILD="r1"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="A tool for automating interactive applications."
10 HOMEPAGE="http://expect.nist.gov/"
11
12 DEPEND=">= dev-lang/tcl-8.5
13 >= dev-lang/tk-8.5"
14
15 SDEPEND=">= sys-dev/autoconf-5"
16
17 SRCFILE="${PNAME}${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}${PVER}"
19
20 sminclude mtools mbuild
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE}/src | grep ${PNAME}- | lasttarball gz"
28
29 src_compile()
30 {
31 cd ${SRCDIR}
32
33 local ver=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
34
35 mconfigure \
36 --enable-shared \
37 --with-tcl=/usr/$(mlibdir) \
38 --with-tclinclude=/usr/include \
39 --with-tk=/usr/$(mlibdir) \
40 || die
41
42 mmake || die
43 }
44