blob: 58c7bd7ddb65a07d6c9beb8d75923fd72d2506b6 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.63 2010/12/23 11:44:46 dsainty Exp $
DISTNAME= xfig.3.2.5b.full
PKGNAME= xfig-3.2.5b
PKGREVISION= 7
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.xfig.org/
COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs
PKG_DESTDIR_SUPPORT= user-destdir
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_API_DEPENDS.Xaw3d+= Xaw3d>=1.5E
WRKSRC= ${WRKDIR}/xfig.3.2.5b
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"
post-extract:
cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig
find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \;
find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \;
find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \;
find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \;
SUBST_CLASSES+= xaw
SUBST_STAGE.xaw= post-patch
SUBST_MESSAGE.xaw= Fixing Imakefile
SUBST_FILES.xaw= Imakefile
.if defined(XAW_TYPE) && ${XAW_TYPE} == "3d"
# define XAW3D and XAW3D1_5E
SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/'
.elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm"
# define XAW3D, undef XAW3D1_5E
SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D1_5E\)/XCOMM \1/'
SUBST_SED.xaw+= -e t
SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/'
.else
# undef XAW3D and XAW3D1_5E
SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/XCOMM \1/'
.endif
SUBST_CLASSES+= i18n
SUBST_STAGE.i18n= post-patch
SUBST_MESSAGE.i18n= Enabling I18N
SUBST_FILES.i18n= Imakefile
SUBST_SED.i18n+= -e 's/XCOMM \(\#define I18N\)/\1/'
XFIGDOCDIR= ${PREFIX}/share/doc/xfig
post-install:
${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${DESTDIR}${XFIGDOCDIR}
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|