blob: acd4b4951fd492b2aff0435972b26d4ed8becfe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $NetBSD: Makefile,v 1.42 2005/04/11 21:46:10 tv Exp $
DISTNAME= xfig.3.2.4.full
PKGNAME= xfig-3.2.4
PKGREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ftp://www.xfig.org/xfigdist/
PATCH_SITES= ftp://ftp.visi.com/users/hawkeyd/X/
PATCHFILES= xfig-3.2.4-Xaw3d-1.5E.udiff
MAINTAINER= root@garbled.net
HOMEPAGE= http://www.xfig.org/
COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs
DEPENDS+= transfig>=3.2.4:../../print/transfig
# if we're using Xaw3d, then we need 1.5E or newer since using that
# version means we need a patch, which is currently used unconditionally
BUILDLINK_DEPENDS.Xaw3d+= Xaw3d>=1.5E
WRKSRC= ${WRKDIR}/xfig.3.2.4
USE_IMAKE= YES
XAW_TYPE?= 3d
NO_INSTALL_MANPAGES= YES # install.all does install.man
INSTALL_TARGET= install install.all
CFLAGS+= -I${X11PREFIX}/include/X11
.include "../../mk/bsd.prefs.mk"
.if defined(XAW_TYPE) && (${XAW_TYPE} != "3d" && ${XAW_TYPE} != "xpm")
pre-configure:
cd ${WRKSRC} && \
if [ ! -f Imakefile.bak ]; then ${MV} Imakefile Imakefile.bak; fi && \
${SED} 's/#define.XAW3D/XCOMM &/' Imakefile.bak > Imakefile
.endif
XFIGDOCDIR= ${PREFIX}/share/doc/xfig
post-install:
${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT* ${XFIGDOCDIR}
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|