contrib/tcl/Pkgfile
2009-08-19 00:10:09 +10:00

32 lines
883 B
Plaintext

# Description: A portable scripting environment for Unix, Windows, and Macintosh.
# URL: http://tcl.sourceforge.net/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Sven Dahl, dahl at c64 dot org
name=tcl
version=8.5.7
release=1
source=(http://downloads.sourceforge.net/sourceforge/$name/$name$version-src.tar.gz)
build() {
cd $name$version/unix
./configure --prefix=/usr
make
make install MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG
cp ../generic/*.h $PKG/usr/include/
cp tclUnixPort.h $PKG/usr/include/tclPort.h
cp tclUnixThrd.h $PKG/usr/include/tclThrd.h
sed -i \
-e "s|TCL_SRC_DIR='.*'|TCL_SRC_DIR='/usr/lib'|" \
-e "s|$SRC/tcl$version/unix|/usr/lib|" \
$PKG/usr/lib/tclConfig.sh
rm $PKG/usr/include/regex.h
ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
chmod -R u+w $PKG/usr/man
}