contrib/tcl/Pkgfile

32 lines
883 B
Plaintext
Raw Normal View History

2007-04-30 08:26:18 +02:00
# Description: A portable scripting environment for Unix, Windows, and Macintosh.
# URL: http://tcl.sourceforge.net/
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2007-04-30 08:26:18 +02:00
# Packager: Sven Dahl, dahl at c64 dot org
name=tcl
version=8.5.7
2008-08-16 14:13:08 +02:00
release=1
source=(http://downloads.sourceforge.net/sourceforge/$name/$name$version-src.tar.gz)
2007-04-30 08:26:18 +02:00
build() {
2008-07-01 12:02:11 +02:00
cd $name$version/unix
2007-12-22 04:37:50 +01:00
2007-04-30 08:26:18 +02:00
./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
2008-07-25 09:39:58 +02:00
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
2007-04-30 08:26:18 +02:00
rm $PKG/usr/include/regex.h
2008-07-25 09:39:58 +02:00
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
2007-04-30 08:26:18 +02:00
}