1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
8 version = %{major_ver}.13
10 thisapp = tcl%{version}
12 groups = Development/Languages
13 url = https://tcl.sourceforge.net/
15 summary = Tool Command Language, pronounced tickle.
18 The Tcl (Tool Command Language) provides a powerful platform for
19 creating integration applications that tie together diverse
20 applications, protocols, devices, and frameworks.
23 source_dl = https://downloads.sourceforge.net/project/%{name}/Tcl/%{version}/
24 sources = tcl%{version}-src.tar.gz
34 DIR_APP = %{DIR_SRC}/%{thisapp}/unix
36 # tcl fails to detect that it needs to link agains libm
40 # Don't build support for sqlite3.
41 rm -rf %{DIR_SRC}/%{thisapp}/pkgs/sqlite3*
44 configure_options += \
49 make_install_targets += \
50 install-private-headers INSTALL_ROOT=%{BUILDROOT}
53 ln -svf tclsh%{major_ver} %{BUILDROOT}/usr/bin/tclsh
55 # for linking with -lib%{name}
56 ln -svf lib%{name}%{major_ver}.so %{BUILDROOT}%{libdir}/lib%{name}.so
58 # paths don't look at /usr/lib for efficiency, so we symlink into tcl8.6 for now
59 mkdir -pv %{BUILDROOT}%{libdir}/%{name}%{major_ver}
60 ln -svf ../%{name}Config.sh %{BUILDROOT}%{libdir}/%{name}%{major_ver}/%{name}Config.sh
62 # Install tcl m4 macros for aclocal.
63 install -Dm644 tcl.m4 -t %{BUILDROOT}/usr/share/aclocal
66 chmod 644 %{BUILDROOT}%{libdir}/libtclstub%{major_ver}.a
68 # Fix private shared library permissions.
69 find %{BUILDROOT}%{libdir} -type f -iname "*.so" \
70 -exec chmod -v 755 {} \;
81 %{libdir}/libtclstub*.a
84 !%{libdir}/libtcl%{major_ver}.so
87 package %{name}-debuginfo