42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'xfig'
|
|
pkgname=xfig
|
|
version=3.2.5c
|
|
revision=2
|
|
wrksrc="${pkgname}.${version}"
|
|
patch_args="-Np1"
|
|
hostmakedepends="imake xorg-cf-files"
|
|
makedepends="libpng-devel libjpeg-turbo-devel libXaw-devel libXi-devel"
|
|
depends="gsfonts"
|
|
short_desc="An interactive drawing tool"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="MIT-like"
|
|
homepage="http://www.xfig.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}.${version}.full.tar.gz"
|
|
checksum=ea628f975b79ab175ab29220cc118274466497f6217f2989928317be2993a1f9
|
|
nocross=yes
|
|
|
|
post_extract() {
|
|
find . -type d -perm 0700 -print0 | xargs -0 chmod 0755
|
|
find . -type f -perm 0700 -print0 | xargs -0 chmod 0644
|
|
sed -i -e '/define XAW3D/s/^/XCOMM /' \
|
|
-e '/USEINLINE/s/^XCOMM //' \
|
|
-e '/define I18N/s/^XCOMM //' \
|
|
-e '/XAW_INTERN/s/^XCOMM //' \
|
|
Imakefile
|
|
sed -i 's/__FreeBSD__/__linux__/g' w_keyboard.c
|
|
}
|
|
do_configure() {
|
|
xmkmf
|
|
}
|
|
do_build() {
|
|
make ${makejobs} CCOPTIONS="$CFLAGS" LOCAL_LDFLAGS="$LDFLAGS" \
|
|
LIBDIR=/usr/share XAPPLOADDIR=/usr/share/X11/app-defaults
|
|
}
|
|
do_install() {
|
|
make ${makejobs} DESTDIR="$DESTDIR" LIBDIR=/usr/share \
|
|
MANDIR=/usr/share/man/man1 \
|
|
XAPPLOADDIR=/usr/share/X11/app-defaults \
|
|
install install.man install.libs
|
|
rm ${DESTDIR}/usr/share/app-defaults
|
|
vlicense README LICENSE
|
|
}
|