22 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
23 |
mirror://${PNAME}/${PNAME}-8.5.5-libdir.patch |
mirror://${PNAME}/${PNAME}-8.5.5-libdir.patch |
24 |
mirror://${PNAME}/${PNAME}-8.5.10-flags.patch |
mirror://${PNAME}/${PNAME}-8.5.10-flags.patch |
25 |
|
mirror://${PNAME}/${PNAME}-8.5.13-autopath.patch |
26 |
) |
) |
27 |
|
|
28 |
# no alphas or betas |
# no alphas or betas |
41 |
|
|
42 |
# fix rpath and pic issues |
# fix rpath and pic issues |
43 |
mpatch ${PNAME}-8.5.10-flags.patch || die |
mpatch ${PNAME}-8.5.10-flags.patch || die |
44 |
|
|
45 |
|
# fix library runtime detection with disabled rpath from the patch above |
46 |
|
mpatch ${PNAME}-8.5.13-autopath.patch || die |
47 |
|
|
48 |
cd ${SRCDIR}/unix |
cd ${SRCDIR}/unix |
49 |
mautoreconf || die |
mautoreconf || die |
50 |
} |
} |
63 |
|
|
64 |
local V="$(echo ${PVER} | cut -d "." -f 1,2)" |
local V="$(echo ${PVER} | cut -d "." -f 1,2)" |
65 |
|
|
66 |
|
# removes the reference to the build directory |
67 |
|
# and replace them by saner system wide locations |
68 |
|
sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tclConfig.sh || die |
69 |
|
sed -i "s:${SRCDIR}:/usr/include/tcl${V}:" tclConfig.sh || die |
70 |
|
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh || die |
71 |
|
|
72 |
# fixes a small doc issue cause Thread.3 maybe used by other packages |
# fixes a small doc issue cause Thread.3 maybe used by other packages |
73 |
# mv ../doc/{,Tcl_}Thread.3 || die |
# mv ../doc/{,Tcl_}Thread.3 || die |
74 |
# sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks || die |
# sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks || die |
78 |
MAN_INSTALL_DIR=${BINDIR}/usr/share/man \ |
MAN_INSTALL_DIR=${BINDIR}/usr/share/man \ |
79 |
install || die |
install || die |
80 |
|
|
|
# removes the reference to the build directory |
|
|
# and replace them by saner system wide locations |
|
|
sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" ${BINDIR}/usr/$(mlibdir)/tclConfig.sh || die |
|
|
sed -i "s:${SRCDIR}:/usr/include/tcl${V}:" ${BINDIR}/usr/$(mlibdir)/tclConfig.sh || die |
|
|
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," ${BINDIR}/usr/$(mlibdir)/tclConfig.sh || die |
|
|
|
|
81 |
# installs the internal headers into a system-wide location. |
# installs the internal headers into a system-wide location. |
82 |
minstalldir /usr/include/tcl${V}/unix || die |
minstalldir /usr/include/tcl${V}/unix || die |
83 |
minstallfile \*.h /usr/include/tcl${V}/unix/ || die |
minstallfile \*.h /usr/include/tcl${V}/unix/ || die |