void-packages/srcpkgs/transfig/template

35 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-05 13:13:50 +02:00
# 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
}