# $NetBSD: Makefile,v 1.21 2000/06/22 08:18:05 itohy Exp $ # DISTNAME= xfig.3.2.3a PKGNAME= xfig-3.2.3a WRKSRC= ${WRKDIR}/${DISTNAME} CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/drawing_tools/xfig/} MAINTAINER= root@garbled.net HOMEPAGE= http://epb1.lbl.gov/BVSmith/xfig/ DEPENDS+= transfig-3.2.3:../../print/transfig DEPENDS+= xpm-3.4k:../../graphics/xpm DEPENDS+= jpeg-6b:../../graphics/jpeg USE_IMAKE= yes USE_XAW= yes .include "../../mk/bsd.prefs.mk" XAW_TYPE?= 3d .if ${XAW_TYPE} != "3d" pre-configure: cd ${WRKSRC} && \ if [ ! -f Imakefile.bak ]; then ${MV} Imakefile Imakefile.bak; fi && \ ${SED} 's/#define.XAW3D/XCOMM &/' Imakefile.bak > Imakefile .endif post-install: @${MKDIR} ${X11BASE}/share/examples/xfig @${CP} ${WRKSRC}/Examples/*.fig ${X11BASE}/share/examples/xfig @${CP} ${WRKSRC}/Examples/*.gif ${X11BASE}/share/examples/xfig @${CP} ${WRKSRC}/Examples/*.jpg ${X11BASE}/share/examples/xfig @${CP} ${WRKSRC}/Examples/*.xbm ${X11BASE}/share/examples/xfig @${CP} ${WRKSRC}/Examples/*.xpm ${X11BASE}/share/examples/xfig .include "../../mk/bsd.pkg.mk"