]>
Commit | Line | Data |
---|---|---|
85e9e990 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
85e9e990 SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = tcl |
011732f5 MT |
7 | major_ver = 8.6 |
8 | version = %{major_ver}.13 | |
fb4b78cd | 9 | release = 2 |
98d0d559 | 10 | thisapp = tcl%{version} |
85e9e990 | 11 | |
802ea3af | 12 | groups = Development/Languages |
011732f5 | 13 | url = https://tcl.sourceforge.net/ |
802ea3af MT |
14 | license = TCL |
15 | summary = Tool Command Language, pronounced tickle. | |
85e9e990 | 16 | |
802ea3af | 17 | description |
fb4b78cd SS |
18 | The Tcl (Tool Command Language) provides a powerful platform for |
19 | creating integration applications that tie together diverse | |
85e9e990 | 20 | applications, protocols, devices, and frameworks. |
802ea3af | 21 | end |
85e9e990 | 22 | |
011732f5 | 23 | source_dl = https://downloads.sourceforge.net/project/%{name}/Tcl/%{version}/ |
802ea3af | 24 | sources = tcl%{version}-src.tar.gz |
85e9e990 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
28 | autoconf | |
29 | automake | |
98d0d559 | 30 | perl >= 5.14.2-9.ip3 |
011732f5 | 31 | zlib-devel |
802ea3af MT |
32 | end |
33 | ||
ba5912cd SS |
34 | DIR_APP = %{DIR_SRC}/%{thisapp}/unix |
35 | ||
011732f5 MT |
36 | # tcl fails to detect that it needs to link agains libm |
37 | LDFLAGS += -lm | |
802ea3af | 38 | |
98d0d559 | 39 | prepare_cmds |
0f91f52d SS |
40 | # Don't build support for sqlite3. |
41 | rm -rf %{DIR_SRC}/%{thisapp}/pkgs/sqlite3* | |
98d0d559 | 42 | end |
85e9e990 | 43 | |
011732f5 | 44 | configure_options += \ |
0f91f52d | 45 | --mandir=%{mandir} \ |
011732f5 MT |
46 | --enable-threads \ |
47 | --enable-64bit | |
48 | ||
ba5912cd SS |
49 | make_install_targets += \ |
50 | install-private-headers INSTALL_ROOT=%{BUILDROOT} | |
98d0d559 | 51 | |
ba5912cd | 52 | install_cmds |
98d0d559 MT |
53 | ln -svf tclsh%{major_ver} %{BUILDROOT}/usr/bin/tclsh |
54 | ||
55 | # for linking with -lib%{name} | |
56 | ln -svf lib%{name}%{major_ver}.so %{BUILDROOT}%{libdir}/lib%{name}.so | |
57 | ||
0f91f52d | 58 | # paths don't look at /usr/lib for efficiency, so we symlink into tcl8.6 for now |
98d0d559 MT |
59 | mkdir -pv %{BUILDROOT}%{libdir}/%{name}%{major_ver} |
60 | ln -svf ../%{name}Config.sh %{BUILDROOT}%{libdir}/%{name}%{major_ver}/%{name}Config.sh | |
61 | ||
0f91f52d SS |
62 | # Install tcl m4 macros for aclocal. |
63 | install -Dm644 tcl.m4 -t %{BUILDROOT}/usr/share/aclocal | |
64 | ||
65 | # Fix permissions. | |
66 | chmod 644 %{BUILDROOT}%{libdir}/libtclstub%{major_ver}.a | |
fb4b78cd SS |
67 | |
68 | # Fix private shared library permissions. | |
69 | find %{BUILDROOT}%{libdir} -type f -iname "*.so" \ | |
70 | -exec chmod -v 755 {} \; | |
802ea3af MT |
71 | end |
72 | end | |
d9befb1f | 73 | |
802ea3af MT |
74 | packages |
75 | package %{name} | |
1f9bc2f0 | 76 | |
98d0d559 MT |
77 | package %{name}-devel |
78 | template DEVEL | |
0f91f52d SS |
79 | |
80 | files += \ | |
81 | %{libdir}/libtclstub*.a | |
82 | ||
83 | files += \ | |
84 | !%{libdir}/libtcl%{major_ver}.so | |
98d0d559 MT |
85 | end |
86 | ||
1f9bc2f0 MT |
87 | package %{name}-debuginfo |
88 | template DEBUGINFO | |
89 | end | |
802ea3af | 90 | end |