]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - tcl/tcl.nm
Merge remote-tracking branch 'stevee/vim'
[people/ms/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.5
8 version = %{major_ver}.11
9 release = 2
10 thisapp = tcl%{version}
11
12 groups = Development/Languages
13 url = http://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 = http://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 end
32
33 CFLAGS += -DTCL_NO_STACK_CHECK=1
34 make_extra = TCL_LIBRARY=%{datadir}/%{name}%{major_ver}
35
36 configure_options += \
37 --disable-threads \
38 --enable-symbols \
39 --enable-shared
40
41 prepare_cmds
42 cd unix && autoconf
43 end
44
45 build
46 cd unix
47 ./configure \
48 %{configure_options}
49
50 make %{PARALLELISMFLAGS} %{make_extra}
51 end
52
53 install
54 cd unix
55 make install %{make_extra} INSTALL_ROOT=%{BUILDROOT}
56 cd ..
57
58 ln -svf tclsh%{major_ver} %{BUILDROOT}/usr/bin/tclsh
59
60 # for linking with -lib%{name}
61 ln -svf lib%{name}%{major_ver}.so %{BUILDROOT}%{libdir}/lib%{name}.so
62
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
66
67 mkdir -pv %{BUILDROOT}%{includedir}/%{name}-private/{generic,unix}
68 find generic unix -name "*.h" -exec cp -p '{}' %{BUILDROOT}%{includedir}/%{name}-private/'{}' ';'
69 (
70 cd %{BUILDROOT}%{includedir}
71 for i in *.h; do
72 [ -f %{BUILDROOT}%{includedir}/%{name}-private/generic/${i} ] && ln -sf ../../${i} \
73 %{BUILDROOT}%{includedir}/%{name}-private/generic;
74 done
75 )
76
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
80
81 # Fix library permissions.
82 chmod 755 %{BUILDROOT}%{libdir}/libtcl*.so*
83 end
84
85 # Keep libtclstub*.a.
86 keep_libraries
87 %{libdir}/lib%{name}stub%{major_ver}.a
88 end
89 end
90
91 packages
92 package %{name}
93
94 package %{name}-devel
95 template DEVEL
96 end
97
98 package %{name}-debuginfo
99 template DEBUGINFO
100 end
101 end