You are not logged in.

#1 2004-03-25 14:50:08

angelus
Member
From: Argentina
Registered: 2004-02-07
Posts: 18

transfig

I saw a PKGBUILD for xfig in the TURs so I made a transfig one.
Transfig is  a package that allows various format conversions, with this, the export... function in xfig works !

The package has a problem with gcc 3.3 , so I borrowed a patch found in the Gentoo ebuild big_smile. 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

Offline

Board footer

Powered by FluxBB