svn commit: r374023 - head/games/xminehunter
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Dec 5 13:13:09 UTC 2014
Author: amdmi3
Date: Fri Dec 5 13:13:08 2014
New Revision: 374023
URL: https://svnweb.freebsd.org/changeset/ports/374023
QAT: https://qat.redports.org/buildarchive/r374023/
Log:
- Add LICENSE (tricky to extract, but it's needed as license is non-commercial only)
- Pet portlint (whitespace fix)
- Strip binary
Modified:
head/games/xminehunter/Makefile
Modified: head/games/xminehunter/Makefile
==============================================================================
--- head/games/xminehunter/Makefile Fri Dec 5 13:13:03 2014 (r374022)
+++ head/games/xminehunter/Makefile Fri Dec 5 13:13:08 2014 (r374023)
@@ -10,6 +10,11 @@ MASTER_SITES= XCONTRIB/games
MAINTAINER= ports at FreeBSD.org
COMMENT= Motif minesweeper game
+LICENSE= XMINEHUNTER
+LICENSE_NAME= xminehunter license
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
+
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= motif
@@ -22,6 +27,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
DESKTOP_ENTRIES="XMineHunter" "" "${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
"${PORTNAME}" "" ""
+post-extract:
+ @${HEAD} -10 < ${WRKSRC}/xminehunter.cc > ${WRKSRC}/LICENSE
+
post-patch:
@${REINPLACE_CMD} -e \
'/^INSTALL_BIN/s|=.*|= $${PREFIX}/bin| ; \
@@ -34,7 +42,7 @@ post-patch:
s|$${CC}|$${CXX}| ; \
s|$${CFLAGS}|$${CXXFLAGS}| ; \
s| \($${INSTALL_SCORE_PATH}\)| $${DESTDIR}\1| ; \
- s|chmod 333|chmod 633| ; \
+ s|chmod 333|chmod 633| ; \
s|cp |$${BSD_INSTALL_DATA} | ; \
s| \($${INSTALL_BIN_PATH}\)| $${DESTDIR}\1|' \
${WRKSRC}/${MAKEFILE}
@@ -42,5 +50,6 @@ post-patch:
post-install:
(cd ${WRKSRC}/bitmaps && ${INSTALL_DATA} normal.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.xpm)
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list