summaryrefslogtreecommitdiff
path: root/games/polyglot
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 06:59:03 +0000
committerjlam <jlam>2008-03-04 06:59:03 +0000
commita5ad2f881e519990668be04e718e20f1b24c9005 (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/polyglot
parent5797bfbd52d9b106c2e38ccceb177a47bad034f3 (diff)
downloadpkgsrc-a5ad2f881e519990668be04e718e20f1b24c9005.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"