diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-14 20:51:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-14 20:51:23 +0000 |
commit | 8ad57375bf7583dc8d8d1569e07671b43a8be50f (patch) | |
tree | e43e532283452ff450c507d4009e47781ac897cc /games/sjeng | |
parent | 7c12b9b9e5af4f5be0f9b7c5dbaebb4f31489b5b (diff) | |
download | pkgsrc-8ad57375bf7583dc8d8d1569e07671b43a8be50f.tar.gz |
DESTDIR support
Diffstat (limited to 'games/sjeng')
-rw-r--r-- | games/sjeng/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/games/sjeng/Makefile b/games/sjeng/Makefile index e9665348089..4d0db919445 100644 --- a/games/sjeng/Makefile +++ b/games/sjeng/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/06/05 16:02:51 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2010/02/14 21:08:23 joerg Exp $ DISTNAME= Sjeng-Free-11.0 PKGNAME= sjeng-11.0 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.sjeng.org/ COMMENT= Engine for chess variations (bughouse, suicide, etc.) +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES USE_LANGUAGES= c c++ LIBS+= -lm # floor() @@ -36,14 +38,13 @@ post-build: ${MV} -f $${file}.fixed $${file}; \ done +INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} ${BOOKDIR} + post-install: - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR} - ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR} ${CAT} ${WRKSRC}/sjeng.rc | ${TR} -d "\015" > ${WRKDIR}/sample.sjengrc - ${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${EGDIR} - ${INSTALL_DATA_DIR} ${BOOKDIR} - ${INSTALL_DATA} ${WRKSRC}/books/*.opn ${BOOKDIR} + ${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/books/*.opn ${DESTDIR}${BOOKDIR} .include "../../databases/gdbm/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |