blob: 728dbab6f32c4195440ebfa6ae4f9a6bca9f51ef (
plain)
1 # Description: A portable scripting environment for Unix, Windows, and Macintosh.
2 # URL: http://tcl.sourceforge.net/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Sven Dahl, dahl at c64 dot org
5
6 name=tcl
7 version=8.5.7
8 release=1
9 source=(http://downloads.sourceforge.net/sourceforge/$name/$name$version-src.tar.gz)
10
11 build() {
12 cd $name$version/unix
13
14 ./configure --prefix=/usr
15 make
16 make install MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG
17
18 cp ../generic/*.h $PKG/usr/include/
19 cp tclUnixPort.h $PKG/usr/include/tclPort.h
20 cp tclUnixThrd.h $PKG/usr/include/tclThrd.h
21
22 sed -i \
23 -e "s|TCL_SRC_DIR='.*'|TCL_SRC_DIR='/usr/lib'|" \
24 -e "s|$SRC/tcl$version/unix|/usr/lib|" \
25 $PKG/usr/lib/tclConfig.sh
26
27 rm $PKG/usr/include/regex.h
28 ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
29 ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
30 chmod -R u+w $PKG/usr/man
31 }
|