summaryrefslogtreecommitdiff
path: root/tcl/Pkgfile
blob: 3aa2b12a2e6dee3e6b3d1dfd724f4a75f0fb136d (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.9
    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 --prefix=/usr
   15 	make
   16 	make install install-private-headers INSTALL_ROOT=$PKG
   17 
   18 	install -d $PKG/usr/include/tcl/{generic,unix,compat}
   19 	cp ../generic/*.h $PKG/usr/include/tcl/generic
   20 	cp ../unix/*.h $PKG/usr/include/tcl/unix
   21 	cp ../compat/*.h $PKG/usr/include/tcl/compat
   22 
   23 	sed -i \
   24 		-e "s|^TCL_BUILD_LIB_SPEC='-L.*/unix|TCL_BUILD_LIB_SPEC='-L/usr/lib|" \
   25 		-e "s|^TCL_SRC_DIR='.*'|TCL_SRC_DIR='/usr/include/tcl'|" \
   26 		-e "s|^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix|TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib|" \
   27 		-e "s|^TCL_BUILD_STUB_LIB_PATH='.*/unix|TCL_BUILD_STUB_LIB_PATH='/usr/lib|" \
   28 		$PKG/usr/lib/tclConfig.sh
   29 
   30 	ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
   31 	ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
   32 	ln -s libtclstub${version%.*}.a $PKG/usr/lib/libtclstub.a
   33 	chmod -R u+w $PKG/usr/man
   34 }

Generated by cgit