You are not logged in.

#1 2005-03-31 23:14:54

bardo
Member
Registered: 2004-12-06
Posts: 96

otcl/tclcl/ns/nam

Hi all!
I'm trying to build ns/nam, a network simulation suite, and to do this I need otcl and tclcl (you can find them here). The former gave me many, many problems, and I needed a couple of hacks to make it compile correctly.

Since they are pretty trivial, I usually don't post my builds here, but this has been a tough one, so I thought it could be useful...

Here it is!

pkgname=otcl
pkgver=1.9
pkgrel=1
pkgdesc="Object oriented TCL extension"
url="http://otcl-tclcl.sourceforge.net"
license=""
depends=(tcl tk)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://switch.dl.sourceforge.net/sourceforge/otcl-tclcl/otcl-1.9.tar.gz)
md5sums=('d17331ef65912f43c530c57565f85600')

build() {
  mkdir -p $startdir/pkg/usr/{bin,lib,local/lib,include}
  cd $startdir/src/$pkgname-$pkgver
  reg_expr="s|@prefix@|`echo ${startdir}`/pkg@prefix@|"
  sed -i $reg_expr Makefile.in
  reg_expr="s|@INST_OLIBSH@|`echo ${startdir}`/pkg@INST_OLIBSH@|"
  sed -i $reg_expr Makefile.in
  ./configure --prefix=/usr --includedir=/usr/include/tcl
  make || return 1
  make DESTDIR=$startdir/pkg install
}

When I'll write the other PKGBUILDs I'll post them here, so everyone interested can take them all together.


dreaming in digital / living in realtime / thinking in binary / talking in ip / welcome to our world

Offline

Board footer

Powered by FluxBB