Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 2014 13:13:09 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374023 - head/games/xminehunter
Message-ID:  <201412051313.sB5DD9A3014439@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412051313.sB5DD9A3014439>