New package: transfig-3.2.5e

This commit is contained in:
Christian Neukirchen 2015-06-05 13:13:50 +02:00
parent 569a135445
commit 00fdc55b54
1 changed files with 34 additions and 0 deletions

34
srcpkgs/transfig/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'transfig'
pkgname=transfig
version=3.2.5e
revision=1
wrksrc="${pkgname}.${version}"
hostmakedepends="imake xorg-cf-files"
makedepends="libpng-devel libXpm-devel"
depends="bc"
short_desc="Utilities for converting XFig figure files"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT-like"
homepage="http://www.xfig.org"
distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}.${version}.tar.gz"
checksum=8ec5a8f13254dd155622ed3ee0fda1382b1e2b5882d83b9aca1871f12a3e7744
post_extract() {
sed -i 's/XCOMM USELATEX2E/USELATEX2E/' transfig/Imakefile
sed -i 's/XCOMM USEINLINE/USEINLINE/' fig2dev/Imakefile
}
do_configure() {
xmkmf
}
do_build() {
make FIG2DEV_LIBDIR=/usr/share/fig2dev Makefiles
make ${makejobs} CCOPTIONS="$CFLAGS" LOCAL_LDFLAGS="$LDFLAGS" \
FIG2DEV_LIBDIR=/usr/share/fig2dev XFIGLIBDIR=/usr/share/xfig
}
do_install() {
make DESTDIR="${DESTDIR}" XFIGLIBDIR=/usr/share/xfig \
FIG2DEV_LIBDIR=/usr/share/fig2dev MANPATH=/usr/share/man \
install install.man
mv "${DESTDIR}/usr/bin/fig2ps2tex.sh" "${DESTDIR}/usr/bin/fig2ps2tex"
vlicense README LICENSE
}