summaryrefslogtreecommitdiff
path: root/graphics/xfig/Makefile
diff options
context:
space:
mode:
authorobache <obache>2009-11-24 06:08:48 +0000
committerobache <obache>2009-11-24 06:08:48 +0000
commit325ded684fc5c7dfaa80cdba7bcc60489626daf3 (patch)
treeb856d599af8f2f8bb9fbd48667b0f0271771b16d /graphics/xfig/Makefile
parentbd76fda7c57a287563b2adfad3b7b3e31c63c173 (diff)
downloadpkgsrc-325ded684fc5c7dfaa80cdba7bcc60489626daf3.tar.gz
Add USE_DESTDIR support.
While here, fixes permissions for documents in post-extract stage to allow access by unprivilaged users, and it should resolve PR 42366. Bump PKGREVISION.
Diffstat (limited to 'graphics/xfig/Makefile')
-rw-r--r--graphics/xfig/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile
index 1fcd45800d4..ccd1121aa58 100644
--- a/graphics/xfig/Makefile
+++ b/graphics/xfig/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.57 2009/08/26 19:57:52 sno Exp $
+# $NetBSD: Makefile,v 1.58 2009/11/24 06:08:48 obache Exp $
DISTNAME= xfig.3.2.5b.full
PKGNAME= xfig-3.2.5b
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/}
@@ -10,6 +10,8 @@ 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
@@ -29,6 +31,8 @@ post-extract:
cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig 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
@@ -50,7 +54,7 @@ SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/XCOMM \1/'
XFIGDOCDIR= ${PREFIX}/share/doc/xfig
post-install:
- ${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${XFIGDOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${DESTDIR}${XFIGDOCDIR}
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"