diff options
author | obache <obache@pkgsrc.org> | 2009-11-24 06:08:48 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-11-24 06:08:48 +0000 |
commit | 7bcddebad96a4398e8f620309133e8c7cfa30d94 (patch) | |
tree | b856d599af8f2f8bb9fbd48667b0f0271771b16d /graphics | |
parent | a068eda6cd74cd9aa04a72ade3f4f678a8b19619 (diff) | |
download | pkgsrc-7bcddebad96a4398e8f620309133e8c7cfa30d94.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')
-rw-r--r-- | graphics/xfig/Makefile | 10 |
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" |