diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
commit | 3b0d97b0de8516db29699676c860489da3f7f0e1 (patch) | |
tree | bb388f6b2532587595653e67cce25229ed050cb8 /games/blindmine | |
parent | 10abca39942a8f34d088f39ccc073fee44271274 (diff) | |
download | pkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'games/blindmine')
-rw-r--r-- | games/blindmine/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/games/blindmine/Makefile b/games/blindmine/Makefile index 7fd79330387..a4f57cd97dd 100644 --- a/games/blindmine/Makefile +++ b/games/blindmine/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2006/06/12 16:28:07 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2008/06/20 01:09:19 joerg Exp $ # DISTNAME= blindmine-0.3-src @@ -12,6 +12,8 @@ MAINTAINER= fox9@netb.co.kr HOMEPAGE= http://blindmine.kldp.net/ COMMENT= Minesweeper clone that you can play with your eyes closed +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${PKGBASE} NO_CONFIGURE= yes NO_BUILD= yes @@ -24,24 +26,23 @@ SUBST_SED.path= -e 's,/usr/bin/env python,${PYTHONBIN},g' PYCOMPILEALL= ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py +INSTALLATION_DIRS= bin share/doc/blindmine share/blindmine/data + .include "../../devel/py-game/buildlink3.mk" .include "../../lang/python/application.mk" post-extract: ( ${ECHO} "#!${SH}"; \ - ${ECHO} "cd ${PREFIX}/share/${PKGBASE} && ${PYTHONBIN} blindmine.py > /dev/null" \ + ${ECHO} "cd ${PREFIX}/share/blindmine && ${PYTHONBIN} blindmine.py > /dev/null" \ ) > ${WRKSRC}/blindmine ${CHMOD} +x ${WRKSRC}/blindmine do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/blindmine ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE} - ${INSTALL_DATA} ${WRKSRC}/howto.txt ${PREFIX}/share/doc/${PKGBASE} - ${INSTALL_DATA_DIR} ${PREFIX}/share/${PKGBASE} - ${INSTALL_DATA} ${WRKSRC}/*.py ${PREFIX}/share/${PKGBASE} - ${INSTALL_DATA_DIR} ${PREFIX}/share/${PKGBASE}/data - ${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/share/${PKGBASE}/data - ${PYTHONBIN} ${PYCOMPILEALL} ${PREFIX}/share/${PKGBASE} - ${PYTHONBIN} -O ${PYCOMPILEALL} ${PREFIX}/share/${PKGBASE} + ${INSTALL_SCRIPT} ${WRKSRC}/blindmine ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/howto.txt ${DESTDIR}${PREFIX}/share/doc/blindmine + ${INSTALL_DATA} ${WRKSRC}/*.py ${DESTDIR}${PREFIX}/share/blindmine + ${INSTALL_DATA} ${WRKSRC}/data/* ${DESTDIR}${PREFIX}/share/blindmine/data + ${PYTHONBIN} ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine + ${PYTHONBIN} -O ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine .include "../../mk/bsd.pkg.mk" |