svn commit: r408082 - head/games/block

John Marino marino at FreeBSD.org
Thu Feb 4 19:30:00 UTC 2016


Author: marino
Date: Thu Feb  4 19:29:58 2016
New Revision: 408082
URL: https://svnweb.freebsd.org/changeset/ports/408082

Log:
  games/block: USES+=ncurses, USES+=tar, respect LDFLAGS
  
  Also link exclusively with libncurses (not libtermcap).
  Also respect 80 columns.

Modified:
  head/games/block/Makefile

Modified: head/games/block/Makefile
==============================================================================
--- head/games/block/Makefile	Thu Feb  4 19:26:39 2016	(r408081)
+++ head/games/block/Makefile	Thu Feb  4 19:29:58 2016	(r408082)
@@ -5,14 +5,15 @@ PORTNAME=	block
 PORTVERSION=	0.6
 CATEGORIES=	games
 MASTER_SITES=	SUNSITE/games/strategy
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Small text based maze game
 
+USES=		ncurses tar:tgz
 WRKSRC=		${WRKDIR}/blocks
 MAKEFILE=	makefile
 ALL_TARGET=	block bed
+MAKE_ARGS=	LL="${LDFLAGS} -lncurses" CLL="${LDFLAGS} -lncurses"
 
 post-extract:
 	@${RM} -f ${WRKSRC}/block
@@ -25,7 +26,8 @@ do-install:
 	${INSTALL_MAN} ${WRKSRC}/bed.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 .for file in 1 2 3 4 5 6
-	${INSTALL_DATA} ${WRKSRC}/${file}.block ${STAGEDIR}${DATADIR}/${file}.block
+	${INSTALL_DATA} ${WRKSRC}/${file}.block \
+		${STAGEDIR}${DATADIR}/${file}.block
 .endfor
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list