1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
8 version = %{major_ver}.11
10 thisapp = tcl%{version}
12 groups = Development/Languages
13 url = http://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 = http://downloads.sourceforge.net/project/%{name}/Tcl/%{version}/
24 sources = tcl%{version}-src.tar.gz
33 CFLAGS += -DTCL_NO_STACK_CHECK=1
34 make_extra = TCL_LIBRARY=%{datadir}/%{name}%{major_ver}
36 configure_options += \
50 make %{PARALLELISMFLAGS} %{make_extra}
55 make install %{make_extra} INSTALL_ROOT=%{BUILDROOT}
58 ln -svf tclsh%{major_ver} %{BUILDROOT}/usr/bin/tclsh
60 # for linking with -lib%{name}
61 ln -svf lib%{name}%{major_ver}.so %{BUILDROOT}%{libdir}/lib%{name}.so
63 # paths don't look at /usr/lib for efficiency, so we symlink into tcl8.5 for now
64 mkdir -pv %{BUILDROOT}%{libdir}/%{name}%{major_ver}
65 ln -svf ../%{name}Config.sh %{BUILDROOT}%{libdir}/%{name}%{major_ver}/%{name}Config.sh
67 mkdir -pv %{BUILDROOT}%{includedir}/%{name}-private/{generic,unix}
68 find generic unix -name "*.h" -exec cp -p '{}' %{BUILDROOT}%{includedir}/%{name}-private/'{}' ';'
70 cd %{BUILDROOT}%{includedir}
72 [ -f %{BUILDROOT}%{includedir}/%{name}-private/generic/${i} ] && ln -sf ../../${i} \
73 %{BUILDROOT}%{includedir}/%{name}-private/generic;
77 # remove buildroot traces
78 sed -i -e "s|$PWD/unix|%{libdir}|; s|$PWD|%{includedir}/%{name}-private|" %{BUILDROOT}%{libdir}/%{name}Config.sh
79 rm -rf %{BUILDROOT}%{datadir}/%{name}%{major_ver}/ldAix
84 %{libdir}/lib%{name}stub%{major_ver}.a
95 package %{name}-debuginfo