Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2013 15:31:02 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334209 - head/games/sxsame
Message-ID:  <201311181531.rAIFV2lA054936@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Nov 18 15:31:02 2013
New Revision: 334209
URL: http://svnweb.freebsd.org/changeset/ports/334209

Log:
  - Add stage support

Modified:
  head/games/sxsame/Makefile
  head/games/sxsame/pkg-plist

Modified: head/games/sxsame/Makefile
==============================================================================
--- head/games/sxsame/Makefile	Mon Nov 18 15:13:06 2013	(r334208)
+++ head/games/sxsame/Makefile	Mon Nov 18 15:31:02 2013	(r334209)
@@ -20,20 +20,16 @@ COMMENT=	Tile-removing puzzle game for t
 USES=		imake
 USE_XORG=	xpm
 INSTALL_TARGET=	install install.dir
-BINOWN=		root
-BINGRP=		games
-BINMODE=	2755
-MAKE_ENV+=	BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE}
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/sxsame ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/sxsame
+	(cd ${WRKSRC}/contrib ; ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/X11/sxsame)
+	${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/sxsame/hiscore
+	@${CHMOD} 664 ${STAGEDIR}${PREFIX}/lib/X11/sxsame/hiscore
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in INSTALL.jp README.jp
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/games/sxsame/pkg-plist
==============================================================================
--- head/games/sxsame/pkg-plist	Mon Nov 18 15:13:06 2013	(r334208)
+++ head/games/sxsame/pkg-plist	Mon Nov 18 15:31:02 2013	(r334209)
@@ -1,4 +1,8 @@
+@group games
+@mode 2755
 bin/sxsame
+@mode
+@group
 lib/X11/sxsame/bomb/blun.xpm
 lib/X11/sxsame/bomb/blus.xpm
 lib/X11/sxsame/bomb/cyan.xpm
@@ -28,6 +32,8 @@ lib/X11/sxsame/snake.bmp
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL.jp
 %%PORTDOCS%%%%DOCSDIR%%/README.jp
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry lib/X11/sxsame/mono1
+@dirrmtry lib/X11/sxsame/bomb
+@dirrmtry lib/X11/sxsame
 @exec mkdir -p %D/lib/X11/sxsame
-@exec chmod 2775 %D/lib/X11/sxsame
-@unexec rm -rf %D/lib/X11/sxsame
+@exec chmod 2775 %D/lib/X11/sxsame ; chown -R root:games %D/lib/X11/sxsame



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