From 68f8bdd1ce15ae822eebf87da1ccd57e6f02e8d1 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 8 Jul 2009 16:03:35 +0000 Subject: user-destdir support --- cad/xcircuit/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cad/xcircuit') 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" -- cgit v1.2.3