]> git.ipfire.org Git - ipfire-3.x.git/blob - tcl/tcl.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / tcl / tcl.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = tcl
7 major_ver = 8.6
8 version = %{major_ver}.13
9 release = 2
10 thisapp = tcl%{version}
11
12 groups = Development/Languages
13 url = https://tcl.sourceforge.net/
14 license = TCL
15 summary = Tool Command Language, pronounced tickle.
16
17 description
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.
21 end
22
23 source_dl = https://downloads.sourceforge.net/project/%{name}/Tcl/%{version}/
24 sources = tcl%{version}-src.tar.gz
25
26 build
27 requires
28 autoconf
29 automake
30 perl >= 5.14.2-9.ip3
31 zlib-devel
32 end
33
34 DIR_APP = %{DIR_SRC}/%{thisapp}/unix
35
36 # tcl fails to detect that it needs to link agains libm
37 LDFLAGS += -lm
38
39 prepare_cmds
40 # Don't build support for sqlite3.
41 rm -rf %{DIR_SRC}/%{thisapp}/pkgs/sqlite3*
42 end
43
44 configure_options += \
45 --mandir=%{mandir} \
46 --enable-threads \
47 --enable-64bit
48
49 make_install_targets += \
50 install-private-headers INSTALL_ROOT=%{BUILDROOT}
51
52 install_cmds
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
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
61
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
67
68 # Fix private shared library permissions.
69 find %{BUILDROOT}%{libdir} -type f -iname "*.so" \
70 -exec chmod -v 755 {} \;
71 end
72 end
73
74 packages
75 package %{name}
76
77 package %{name}-devel
78 template DEVEL
79
80 files += \
81 %{libdir}/libtclstub*.a
82
83 files += \
84 !%{libdir}/libtcl%{major_ver}.so
85 end
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
90 end