summaryrefslogtreecommitdiff
path: root/games/exchess
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-29 20:26:04 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-29 20:26:04 +0000
commit79177f21cedbc5c731c2dddd1d2d6ce9a2c46ece (patch)
tree509ff22a1862a329ce3962586f04eba03cd3aa4e /games/exchess
parentafed6d9ef3476470bb406641b823fdaf56726788 (diff)
downloadpkgsrc-79177f21cedbc5c731c2dddd1d2d6ce9a2c46ece.tar.gz
DESTDIR support
Diffstat (limited to 'games/exchess')
-rw-r--r--games/exchess/Makefile13
-rw-r--r--games/exchess/files/Makefile9
2 files changed, 10 insertions, 12 deletions
diff --git a/games/exchess/Makefile b/games/exchess/Makefile
index 51d49f536f7..aea0467985f 100644
--- a/games/exchess/Makefile
+++ b/games/exchess/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/10/04 21:43:00 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2010/01/29 20:29:26 joerg Exp $
DISTNAME= EXCH314S
# 5.01beta available
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://personal.denison.edu/~homand/EXchess.htm
COMMENT= Experimental chess engine
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= c++
NO_CONFIGURE= yes
@@ -27,8 +29,11 @@ post-build:
${SED} -e "s,@PREFIX@,${PREFIX},g" \
< ${WRKSRC}/search.par.in > ${WRKSRC}/search.par
-post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCDIR}
+INSTALLATION_DIRS+= bin lib/exchess ${DOCDIR}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/exchess ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/search.par ${DESTDIR}${PREFIX}/lib/exchess
+ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/games/exchess/files/Makefile b/games/exchess/files/Makefile
index bc746ed77f9..3db776cb520 100644
--- a/games/exchess/files/Makefile
+++ b/games/exchess/files/Makefile
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/10/25 08:40:00 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2010/01/29 20:29:26 joerg Exp $
-BINDIR= ${PREFIX}/bin
LIBDIR= ${PREFIX}/lib/exchess
CPPFLAGS= -DEXCHESS_DIR=\"${LIBDIR}/\"
@@ -14,12 +13,6 @@ all: exchess
exchess: ${OBJS}
${CXX} -o ${.TARGET} ${OBJS} -lm
-install: exchess
- ${BSD_INSTALL_PROGRAM_DIR} ${BINDIR}
- ${BSD_INSTALL_PROGRAM} exchess ${BINDIR}
- ${BSD_INSTALL_DATA_DIR} ${LIBDIR}
- ${BSD_INSTALL_DATA} search.par ${LIBDIR}
-
.SUFFIXES: .cpp
.cpp.o: