summaryrefslogtreecommitdiff
path: root/games/polyglot
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/polyglot
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/polyglot')
-rw-r--r--games/polyglot/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/games/polyglot/Makefile b/games/polyglot/Makefile
index 241ba6ec8ac..ee4c00eb168 100644
--- a/games/polyglot/Makefile
+++ b/games/polyglot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/06/17 15:24:32 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 06:59:05 jlam Exp $
#
DISTNAME= polyglot_14
@@ -11,6 +11,8 @@ MAINTAINER= rillig@NetBSD.org
HOMEPAGE= http://wbec-ridderkerk.nl/html/details/PolyGlot.html
COMMENT= UCI to WB adapter (for chess engines)
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/polyglot_14
BUILD_DIRS= src
MAKE_FILE= ${FILESDIR}/Makefile
@@ -39,8 +41,10 @@ do-build:
${CXX} ${CXXFLAGS} ${LDFLAGS} -lm -o polyglot ${SRCS}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/polyglot ${PREFIX}/bin/
- ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/polyglot/
- ${INSTALL_DATA} ${WRKSRC}/fruit.ini ${PREFIX}/share/examples/polyglot/
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/polyglot ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/readme.txt \
+ ${DESTDIR}${PREFIX}/share/doc/polyglot/
+ ${INSTALL_DATA} ${WRKSRC}/fruit.ini \
+ ${DESTDIR}${PREFIX}/share/examples/polyglot/
.include "../../mk/bsd.pkg.mk"