svn commit: r334209 - head/games/sxsame

Danilo Egea Gondolfo danilo at FreeBSD.org
Mon Nov 18 15:31:03 UTC 2013


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 @@
+ at group games
+ at mode 2755
 bin/sxsame
+ at mode
+ at 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%%
+ at dirrmtry lib/X11/sxsame/mono1
+ at dirrmtry lib/X11/sxsame/bomb
+ at dirrmtry lib/X11/sxsame
 @exec mkdir -p %D/lib/X11/sxsame
- at exec chmod 2775 %D/lib/X11/sxsame
- at unexec rm -rf %D/lib/X11/sxsame
+ at exec chmod 2775 %D/lib/X11/sxsame ; chown -R root:games %D/lib/X11/sxsame


More information about the svn-ports-all mailing list