summaryrefslogtreecommitdiff
path: root/tcl/Pkgfile
blob: fb9a6f65f019c70086de1e2433731779da395bbf (plain)
    1 # Description: The Tcl scripting language.
    2 # URL: http://www.tcl.tk/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Packager: Sven Dahl, dahl at c64 dot org
    5 
    6 name=tcl
    7 version=8.6.6
    8 release=1
    9 source=(http://downloads.sourceforge.net/project/$name/Tcl/$version/$name$version-src.tar.gz)
   10 
   11 build() {
   12 	cd $name$version/unix
   13 
   14 	./configure \
   15 		--prefix=/usr \
   16 		--mandir=/usr/share/man \
   17 		--without-tzdata \
   18 		--enable-64bit
   19 
   20 	make
   21 	make INSTALL_ROOT=$PKG install install-private-headers
   22 
   23 	install -d $PKG/usr/include/tcl/{generic,unix,compat}
   24 	cp ../generic/*.h $PKG/usr/include/tcl/generic
   25 	cp ../unix/*.h $PKG/usr/include/tcl/unix
   26 	cp ../compat/*.h $PKG/usr/include/tcl/compat
   27 
   28 	ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
   29 	ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
   30 	ln -s libtclstub${version%.*}.a $PKG/usr/lib/libtclstub.a
   31 
   32 	# remove $SRC traces
   33 	sed \
   34 		-e "s|$SRC/tcl$version/unix|/usr/lib|g" \
   35 		-e "s|$SRC/tcl$version|/usr/include|g" \
   36 		-i $PKG/usr/lib/tclConfig.sh
   37 
   38 	local tdbcver=tdbc1.0.4
   39 	sed \
   40 		-e "s|$SRC/tcl$version/unix/pkgs/$tdbcver|/usr/lib/$tdbcver|g" \
   41 		-e "s|$SRC/tcl$version/pkgs/$tdbcver/generic|/usr/include|g" \
   42 		-e "s|$SRC/tcl$version/pkgs/$tdbcver/library|/usr/lib/tcl${version%.*}|g" \
   43 		-e "s|$SRC/tcl$version/pkgs/$tdbcver|/usr/include|g" \
   44 		-i $PKG/usr/lib/$tdbcver/tdbcConfig.sh
   45 
   46 	local itclver=itcl4.0.5
   47 	sed \
   48 		-e "s|$SRC/tcl$version/unix/pkgs/$itclver|/usr/lib/$itclver|g" \
   49 		-e "s|$SRC/tcl$version/pkgs/$itclver/generic|/usr/include|g" \
   50 		-e "s|$SRC/tcl$version/pkgs/$itclver|/usr/include|g" \
   51 		-i $PKG/usr/lib/$itclver/itclConfig.sh
   52 }

Generated by cgit