The package has a problem with gcc 3.3 , so I borrowed a patch found in the Gentoo ebuild . Thanks Gentoo.
Heres the ebuild:
# Contributor: J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar>
pkgname=transfig
pkgver=3.2.4
pkgrel=1
pkgdesc="Format conversion utitity to be used with xfig"
url="http://www.xfig.org"
depends=('libpng' 'xfree86')
source=("http://www.xfig.org/xfigdist/$pkgname.$pkgver.tar.gz")
md5sums=('742de0f7a3cae74d247bbd0c70dd9dd7')
build() {
cd $startdir/src/$pkgname.$pkgver
cp ../../Imakefile.fig2dev fig2dev/Imakefile
cp ../../Imakefile.transfig transfig/Imakefile
# Patch for gcc 3.3 taken from the Gentoo Linux ebuild ;)
patch -Np1 -i ../../$pkgname-$pkgver-gcc-3.3.patch
xmkmf || return 1
make Makefiles || return 1
make || return 1
mkdir $startdir/pkg/usr
mkdir $startdir/pkg/usr/X11R6
mkdir $startdir/pkg/usr/X11R6/lib
mkdir $startdir/pkg/usr/X11R6/lib/X11
make DESTDIR=$startdir/pkg install || return 1
}
the Imake files are in the package as well.
Hope its usefull for someone else
]]>