diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-11-07 10:51:32 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-11-07 10:51:32 +0800 |
commit | 1ebc4ad12f105b32cb33671f3ed1fe6d05397665 (patch) | |
tree | 293196c1d366b4a23b461284e3df29381cc971a3 | |
parent | bd8244aac8fc356fb7067e6e266daa538e80c995 (diff) | |
download | freebsd-ports-gnome-1ebc4ad12f105b32cb33671f3ed1fe6d05397665.tar.gz freebsd-ports-gnome-1ebc4ad12f105b32cb33671f3ed1fe6d05397665.tar.zst freebsd-ports-gnome-1ebc4ad12f105b32cb33671f3ed1fe6d05397665.zip |
- Change Makefile header
- Change maintainer email to @FreeBSD.org
- Support STAGEDIR
- Simplify post-extract
Approved by: pawel / wg (mentors, implicit)
-rw-r--r-- | games/krank/Makefile | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/games/krank/Makefile b/games/krank/Makefile index 7122f988e52e..02a56b750c43 100644 --- a/games/krank/Makefile +++ b/games/krank/Makefile @@ -1,3 +1,4 @@ +# Created by: Rusmir Dusko <nemysis@FreeBSD.org> # $FreeBSD$ PORTNAME= krank @@ -6,7 +7,7 @@ PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} -MAINTAINER= nemysis@gmx.ch +MAINTAINER= nemysis@FreeBSD.org COMMENT= Little casual game LICENSE= GPLv2 @@ -23,30 +24,24 @@ PORTDOCS= CHANGELOG.txt README DESKTOP_ENTRIES="Krank" "${COMMENT}" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" false -NO_STAGE= yes -.include <bsd.port.options.mk> - post-extract: - @${FIND} ${WRKSRC} -name .cvsignore -type f -print0 -or -name .DS_Store -type f -print0 | \ - ${XARGS} -0 ${RM} -rf + @${FIND} ${WRKSRC} -name .cvsignore -delete -or -name .DS_Store -delete post-patch: ${REINPLACE_CMD} -e 's|`dirname.*|${DATADIR}|' ${WRKSRC}/${PORTNAME} do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/krank ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/krank ${STAGEDIR}${PREFIX}/bin/ - ${MKDIR} ${DATADIR} .for d in art fonts html levels sounds src - @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor - ${INSTALL_DATA} ${WRKSRC}/krank.iss ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/logo.xcf ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + ${INSTALL_DATA} ${WRKSRC}/krank.iss ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/logo.xcf ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |