summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-08 16:03:35 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-08 16:03:35 +0000
commit68f8bdd1ce15ae822eebf87da1ccd57e6f02e8d1 (patch)
treeeabd668e7f320ab269afd4e1b95e2d9b4ce12f42 /cad
parent011c09ed135f8347015618d805c628ffb29c3a15 (diff)
downloadpkgsrc-68f8bdd1ce15ae822eebf87da1ccd57e6f02e8d1.tar.gz
user-destdir support
Diffstat (limited to 'cad')
-rw-r--r--cad/xcircuit/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/cad/xcircuit/Makefile b/cad/xcircuit/Makefile
index 441e342e115..9bdbfa3a980 100644
--- a/cad/xcircuit/Makefile
+++ b/cad/xcircuit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2007/06/03 23:27:23 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2009/07/08 16:03:35 joerg Exp $
DISTNAME= xcircuit-3.4.26
CATEGORIES= cad graphics
@@ -9,6 +9,8 @@ MAINTAINER= shaun@inerd.com
HOMEPAGE= http://opencircuitdesign.com/xcircuit/
COMMENT= Drawing program for X11 (especially for circuits)
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_TOOLS+= gs:run
GNU_CONFIGURE= yes
@@ -30,15 +32,15 @@ LDFLAGS+= -L${LOCALBASE}/lib
BUILD_TARGET= tcl
INSTALL_TARGET= install-tcl
+INSTALLATION_DIRS= ${PKGMANDIR}/man1 share/examples/xcircuit
post-extract:
${MV} -f ${WRKSRC}/examples/.xcircuitrc ${WRKSRC}/examples/xcircuitrc
${TOUCH} ${WRKSRC}/menudep.h
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xcircuit
- ${INSTALL_DATA} ${WRKSRC}/examples/*.* ${PREFIX}/share/examples/xcircuit/
- ${INSTALL_DATA} ${WRKSRC}/examples/xcircuitrc ${PREFIX}/share/examples/xcircuit/
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.* ${DESTDIR}${PREFIX}/share/examples/xcircuit/
+ ${INSTALL_DATA} ${WRKSRC}/examples/xcircuitrc ${DESTDIR}${PREFIX}/share/examples/xcircuit/
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"