summaryrefslogtreecommitdiff
path: root/graphics/glx-utils
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 15:39:09 +0000
committerjlam <jlam>2008-03-04 15:39:09 +0000
commitd6b91adeba5668a57b81a911d8eddf78028e44dc (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/glx-utils
parent6dad5f5dc8c5cabc58dcc1203ff3621136e16ddf (diff)
downloadpkgsrc-d6b91adeba5668a57b81a911d8eddf78028e44dc.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/glx-utils')
-rw-r--r--graphics/glx-utils/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/glx-utils/Makefile b/graphics/glx-utils/Makefile
index ce0f59afa0f..dac16edf246 100644
--- a/graphics/glx-utils/Makefile
+++ b/graphics/glx-utils/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.2 2006/08/01 21:40:20 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 15:39:10 jlam Exp $
DISTNAME= MesaDemos-${MESA_VERSION}
PKGNAME= glx-utils-${MESA_VERSION}
CATEGORIES= x11 graphics
COMMENT= OpenGL glxgears and glxinfo
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../graphics/Mesa/Makefile.common"
INSTALLATION_DIRS= bin
@@ -23,7 +25,9 @@ do-build:
-L../../lib -lGLU -lGL -lm -lXext ${PTHREAD_LIBS} -o glxinfo
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxgears ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxinfo ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxgears \
+ ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxinfo \
+ ${DESTDIR}${PREFIX}/bin/
.include "../../mk/bsd.pkg.mk"