Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2016 13:00:16 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r407625 - in head/games/sokoban: . files
Message-ID:  <201601311300.u0VD0GsZ052663@repo.freebsd.org>

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



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