Magellan Linux

Annotation of /branches/magellan-next/core/tk/tk-8.5.7-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7181 - (hide annotations) (download)
Thu Sep 30 12:47:14 2010 UTC (13 years, 7 months ago) by niro
File size: 1850 byte(s)
imported from trunk
1 niro 3417 # $Id$
2    
3     PNAME="tk"
4     PVER="8.5.7"
5     PBUILD="r2"
6    
7     PCATEGORIE="dev-lang"
8     STATE="unstable"
9    
10     DESCRIPTION="tk, a tcl gui toolkit."
11     HOMEPAGE="http://www.tcl.tk/software/tcltk/"
12    
13     DEPEND=">= x11-libs/libX11-1
14     == dev-lang/tcl-${PVER}"
15    
16     SDEPEND=">= sys-apps/sed-4
17     >= x11-libs/libXt-1
18     >= x11-proto/xproto-1"
19    
20     SRCFILE="${PNAME}${PVER}-src.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}${PVER}"
22    
23     sminclude mtools
24    
25     SRC_URI=(
26     sourceforge://tcl/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     mirror://${PNAME}/${PNAME}-8.4.13-libdir.patch
29     )
30    
31     UP2DATE="updatecmd_sourceforge tcl Tcl"
32    
33     src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     # support variable libdir
39     mpatch ${PNAME}-8.4.13-libdir.patch || die
40     }
41    
42     src_compile()
43     {
44     cd ${SRCDIR}/unix
45    
46     mconfigure --enable-threads || die
47     mmake CFLAGS="${CFLAGS}" || die
48     }
49    
50     src_install()
51     {
52     cd ${SRCDIR}/unix
53    
54     local V="$(echo ${PVER} | cut -d "." -f 1,2)"
55    
56     # removes the reference to the build directory
57     # and replace them by saner system wide locations
58     sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tkConfig.sh || die
59     sed -i "s:${SRCDIR}:/usr/include/tk${V}:" tkConfig.sh || die
60    
61     # installs tk
62     mmake INSTALL_ROOT=${BINDIR} \
63     MAN_INSTALL_DIR=${BINDIR}/usr/share/man \
64     install || die
65    
66     # installs the internal headers into a system-wide location.
67     minstalldir /usr/include/tk${V}/unix || die
68     minstallfile \*.h /usr/include/tk${V}/unix/ || die
69     minstalldir /usr/include/tk${V}/generic || die
70     minstallfile ../generic/\*.h /usr/include/tk${V}/generic/ || die
71     rm -f ${BINDIR}/usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h || die
72    
73     # creates compatibility symbolic links for the libs
74     mlink /usr/include/tk${V} /usr/$(mlibdir)/tk${V}/include || die
75     mlink libtk${V}.so /usr/$(mlibdir)/libtk.so || die
76    
77     mlink whish${V} /usr/bin/whish || die
78    
79     cd ${SRCDIR}
80     minstalldocs ChangeLog* changes license.terms README || die
81     }

Properties

Name Value
svn:keywords Id