Contents of /trunk/extras/tk/tk-8.4.18-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1894 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1894 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/tk/tk-8.4.18-r1.smage2,v 1.1 2008/03/20 00:09:05 niro Exp $ |
2 | |
3 | PNAME="tk" |
4 | PVER="8.4.18" |
5 | PBUILD="r1" |
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 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # support variable libdir |
37 | mpatch ${PNAME}-8.4.13-libdir.patch || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR}/unix |
43 | |
44 | mconfigure --enable-threads || die |
45 | mmake CFLAGS="${CFLAGS}" || die |
46 | } |
47 | |
48 | src_install() |
49 | { |
50 | cd ${SRCDIR}/unix |
51 | |
52 | local V="$(echo ${PVER} | cut -d "." -f 1,2)" |
53 | |
54 | # removes the reference to the build directory |
55 | # and replace them by saner system wide locations |
56 | sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tkConfig.sh || die |
57 | sed -i "s:${SRCDIR}:/usr/include/tk${V}:" tkConfig.sh || die |
58 | |
59 | # installs tk |
60 | mmake INSTALL_ROOT=${BINDIR} \ |
61 | MAN_INSTALL_DIR=${BINDIR}/usr/share/man \ |
62 | install || die |
63 | |
64 | # installs the internal headers into a system-wide location. |
65 | minstalldir /usr/include/tk${V}/unix || die |
66 | minstallfile \*.h /usr/include/tk${V}/unix/ || die |
67 | minstalldir /usr/include/tk${V}/generic || die |
68 | minstallfile ../generic/\*.h /usr/include/tk${V}/generic/ || die |
69 | rm -f ${BINDIR}/usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h || die |
70 | |
71 | # creates compatibility symbolic links for the libs |
72 | mlink /usr/include/tk${V} /usr/$(mlibdir)/tk${V}/include || die |
73 | mlink libtk${V}.so /usr/$(mlibdir)/libtk.so || die |
74 | |
75 | mlink whish${V} /usr/bin/whish || die |
76 | |
77 | cd ${SRCDIR} |
78 | minstalldocs ChangeLog* changes license.terms README || die |
79 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |