svn commit: r407625 - in head/games/sokoban: . files

John Marino marino at FreeBSD.org
Sun Jan 31 13:00:18 UTC 2016


Author: marino
Date: Sun Jan 31 13:00:16 2016
New Revision: 407625
URL: https://svnweb.freebsd.org/changeset/ports/407625

Log:
  games/sokoban: document ncurses rqmt (USES+=ncurses), respect LDFLAGS
  
  while here:
    * unsuppress installation commands
    * regenerate another patch
    * stop linking with ancient curses libs, use ncurses instead
  
  approved by:	infrastructure blanket

Modified:
  head/games/sokoban/Makefile
  head/games/sokoban/files/patch-Makefile
  head/games/sokoban/files/patch-play.c

Modified: head/games/sokoban/Makefile
==============================================================================
--- head/games/sokoban/Makefile	Sun Jan 31 12:53:22 2016	(r407624)
+++ head/games/sokoban/Makefile	Sun Jan 31 13:00:16 2016	(r407625)
@@ -11,16 +11,17 @@ DISTNAME=		${PORTNAME}-src
 MAINTAINER=		lifanov at mail.lifanov.com
 COMMENT=		Logical game: problems with packets in cave
 
+USES=			ncurses
 WRKSRC=			${WRKDIR}/sokoban
 ALL_TARGET=
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${STAGEDIR}${PREFIX}/bin/sokoban
+	${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${STAGEDIR}${PREFIX}/bin/sokoban
 	@${MKDIR} ${STAGEDIR}${DATADIR}/screens
-	@${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${DATADIR}/screens
+	${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${DATADIR}/screens
 
 post-install:
 	@${MKDIR} ${STAGEDIR}/var/games/sokoban
-	@truncate -s 512 ${STAGEDIR}/var/games/sokoban/scores.sample
+	truncate -s 512 ${STAGEDIR}/var/games/sokoban/scores.sample
 
 .include <bsd.port.mk>

Modified: head/games/sokoban/files/patch-Makefile
==============================================================================
--- head/games/sokoban/files/patch-Makefile	Sun Jan 31 12:53:22 2016	(r407624)
+++ head/games/sokoban/files/patch-Makefile	Sun Jan 31 13:00:16 2016	(r407625)
@@ -1,5 +1,5 @@
---- ./Makefile.orig	1992-05-09 19:23:46.000000000 -0400
-+++ ./Makefile	2014-03-11 22:14:36.359748029 -0400
+--- Makefile.orig	1992-05-09 23:23:46 UTC
++++ Makefile
 @@ -1,8 +1,12 @@
 -CCOPT= -O3
 +CCOPT= ${CFLAGS}
@@ -11,7 +11,7 @@
  
  sokoban: $(OBJECTS)
 -	cc $(CCOPT) -static -o sokoban $(OBJECTS) -lcurses -ltermcap
-+	cc $(CCOPT) -o sokoban $(OBJECTS) -lcurses -ltermcap
++	cc $(CCOPT) -o sokoban $(OBJECTS) $(LDFLAGS) -lncurses
  sok.o: sok.c sokoban.h
  	cc $(CCOPT) -c sok.c
  

Modified: head/games/sokoban/files/patch-play.c
==============================================================================
--- head/games/sokoban/files/patch-play.c	Sun Jan 31 12:53:22 2016	(r407624)
+++ head/games/sokoban/files/patch-play.c	Sun Jan 31 13:00:16 2016	(r407625)
@@ -1,6 +1,6 @@
---- ./play.c.orig	1992-05-16 02:53:27.000000000 -0400
-+++ ./play.c	2014-03-11 22:14:36.546748659 -0400
-@@ -37,7 +37,7 @@
+--- play.c.orig	1992-05-16 06:53:27 UTC
++++ play.c
+@@ -37,7 +37,7 @@ static POS   tmp_ppos;
  
  short play() {
  


More information about the svn-ports-head mailing list