35 |
# fix libdir |
# fix libdir |
36 |
sed -i "s:\(libdir =\).*:\1 \$(prefix)/$(mlibdir):g" Makefile.in || die |
sed -i "s:\(libdir =\).*:\1 \$(prefix)/$(mlibdir):g" Makefile.in || die |
37 |
|
|
38 |
|
# fix tcl version |
39 |
|
sed -i "s:-ltcl[0-9].[0-9]:-ltcl$(readlink /usr/bin/tclsh | sed 's/tclsh//'):" Makefile.in || die |
40 |
|
|
41 |
# use DESTDIR instead of instroot |
# use DESTDIR instead of instroot |
42 |
sed -i 's:instroot:DESTDIR:g' ${SRCDIR}/Makefile.in || die |
sed -i 's:instroot:DESTDIR:g' ${SRCDIR}/Makefile.in || die |
43 |
} |
} |
47 |
cd ${SRCDIR} |
cd ${SRCDIR} |
48 |
|
|
49 |
mconfigure || die |
mconfigure || die |
50 |
mmake -j1 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die |
mmake -j1 LIBTCL=-ltcl8.5 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die |
51 |
} |
} |
52 |
|
|
53 |
src_install() |
src_install() |