| @@ -1,68 +1,69 @@ | | | @@ -1,68 +1,69 @@ |
1 | # $NetBSD: Makefile,v 1.68 2013/02/16 11:22:34 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2014/03/18 23:28:20 gdt Exp $ |
2 | | | 2 | |
3 | DISTNAME= xfig.3.2.5b.full | | 3 | DISTNAME= xfig.3.2.5b.full |
4 | PKGNAME= xfig-3.2.5b | | 4 | PKGNAME= xfig-3.2.5b |
5 | PKGREVISION= 10 | | 5 | PKGREVISION= 10 |
6 | CATEGORIES= graphics | | 6 | CATEGORIES= graphics |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.xfig.org/ | | 10 | HOMEPAGE= http://www.xfig.org/ |
11 | COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs | | 11 | COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs |
12 | | | 12 | |
13 | DEPENDS+= transfig>=3.2.4:../../print/transfig | | 13 | DEPENDS+= transfig>=3.2.4:../../print/transfig |
14 | # if we're using Xaw3d, then we need 1.5E or newer since using that | | 14 | # if we're using Xaw3d, then we need 1.5E or newer since using that |
15 | # version means we need a patch, which is currently used unconditionally | | 15 | # version means we need a patch, which is currently used unconditionally |
16 | BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5E | | 16 | BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5E |
17 | | | 17 | |
18 | WRKSRC= ${WRKDIR}/xfig.3.2.5b | | 18 | WRKSRC= ${WRKDIR}/xfig.3.2.5b |
19 | USE_IMAKE= YES | | 19 | USE_IMAKE= YES |
20 | XAW_TYPE?= 3d | | 20 | XAW_TYPE?= 3d |
21 | | | 21 | |
22 | NO_INSTALL_MANPAGES= YES # install.all does install.man | | 22 | NO_INSTALL_MANPAGES= YES # install.all does install.man |
23 | INSTALL_TARGET= install install.all | | 23 | INSTALL_TARGET= install install.all |
24 | CFLAGS+= -I${X11PREFIX}/include/X11 | | 24 | CFLAGS+= -I${X11PREFIX}/include/X11 |
25 | | | 25 | |
26 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
27 | | | 27 | |
28 | post-extract: | | 28 | post-extract: |
29 | cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig | | 29 | cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig |
| | | 30 | ${CHMOD} 755 ${WRKSRC}/Libraries |
30 | find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \; | | 31 | find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \; |
31 | find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \; | | 32 | find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \; |
32 | find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \; | | 33 | find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \; |
33 | find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \; | | 34 | find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \; |
34 | | | 35 | |
35 | SUBST_CLASSES+= xaw | | 36 | SUBST_CLASSES+= xaw |
36 | SUBST_STAGE.xaw= post-patch | | 37 | SUBST_STAGE.xaw= post-patch |
37 | SUBST_MESSAGE.xaw= Fixing Imakefile | | 38 | SUBST_MESSAGE.xaw= Fixing Imakefile |
38 | SUBST_FILES.xaw= Imakefile | | 39 | SUBST_FILES.xaw= Imakefile |
39 | .if defined(XAW_TYPE) && ${XAW_TYPE} == "3d" | | 40 | .if defined(XAW_TYPE) && ${XAW_TYPE} == "3d" |
40 | # define XAW3D and XAW3D1_5E | | 41 | # define XAW3D and XAW3D1_5E |
41 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/' | | 42 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/' |
42 | .elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm" | | 43 | .elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm" |
43 | # define XAW3D, undef XAW3D1_5E | | 44 | # define XAW3D, undef XAW3D1_5E |
44 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D1_5E\)/XCOMM \1/' | | 45 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D1_5E\)/XCOMM \1/' |
45 | SUBST_SED.xaw+= -e t | | 46 | SUBST_SED.xaw+= -e t |
46 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/' | | 47 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/' |
47 | .else | | 48 | .else |
48 | # undef XAW3D and XAW3D1_5E | | 49 | # undef XAW3D and XAW3D1_5E |
49 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/XCOMM \1/' | | 50 | SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/XCOMM \1/' |
50 | .endif | | 51 | .endif |
51 | | | 52 | |
52 | SUBST_CLASSES+= i18n | | 53 | SUBST_CLASSES+= i18n |
53 | SUBST_STAGE.i18n= post-patch | | 54 | SUBST_STAGE.i18n= post-patch |
54 | SUBST_MESSAGE.i18n= Enabling I18N | | 55 | SUBST_MESSAGE.i18n= Enabling I18N |
55 | SUBST_FILES.i18n= Imakefile | | 56 | SUBST_FILES.i18n= Imakefile |
56 | SUBST_SED.i18n+= -e 's/XCOMM \(\#define I18N\)/\1/' | | 57 | SUBST_SED.i18n+= -e 's/XCOMM \(\#define I18N\)/\1/' |
57 | | | 58 | |
58 | XFIGDOCDIR= ${PREFIX}/share/doc/xfig | | 59 | XFIGDOCDIR= ${PREFIX}/share/doc/xfig |
59 | | | 60 | |
60 | post-install: | | 61 | post-install: |
61 | ${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${DESTDIR}${XFIGDOCDIR} | | 62 | ${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${DESTDIR}${XFIGDOCDIR} |
62 | | | 63 | |
63 | .include "../../mk/jpeg.buildlink3.mk" | | 64 | .include "../../mk/jpeg.buildlink3.mk" |
64 | .include "../../graphics/png/buildlink3.mk" | | 65 | .include "../../graphics/png/buildlink3.mk" |
65 | .include "../../x11/libXi/buildlink3.mk" | | 66 | .include "../../x11/libXi/buildlink3.mk" |
66 | .include "../../x11/libXpm/buildlink3.mk" | | 67 | .include "../../x11/libXpm/buildlink3.mk" |
67 | .include "../../mk/xaw.buildlink3.mk" | | 68 | .include "../../mk/xaw.buildlink3.mk" |
68 | .include "../../mk/bsd.pkg.mk" | | 69 | .include "../../mk/bsd.pkg.mk" |