Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 20:05:34 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458783 - in head/games/ascii-invaders: . files
Message-ID:  <201801112005.w0BK5Y76006156@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Jan 11 20:05:34 2018
New Revision: 458783
URL: https://svnweb.freebsd.org/changeset/ports/458783

Log:
  - Fix dependency on ncurses and respect it properly

Added:
  head/games/ascii-invaders/files/
  head/games/ascii-invaders/files/patch-Makefile   (contents, props changed)
Modified:
  head/games/ascii-invaders/Makefile

Modified: head/games/ascii-invaders/Makefile
==============================================================================
--- head/games/ascii-invaders/Makefile	Thu Jan 11 20:01:45 2018	(r458782)
+++ head/games/ascii-invaders/Makefile	Thu Jan 11 20:05:34 2018	(r458783)
@@ -4,6 +4,7 @@
 PORTNAME=	ascii-invaders
 PORTVERSION=	1.0.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -14,6 +15,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	macdice
+
+USES=		ncurses
+
+CFLAGS+=	-isystem${LOCALBASE}/include -isystem${NCURSESINC}
+LDFLAGS+=	-L${NCURSESLIB} -ltinfo
 
 PLIST_FILES=	bin/ascii_invaders
 

Added: head/games/ascii-invaders/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ascii-invaders/files/patch-Makefile	Thu Jan 11 20:05:34 2018	(r458783)
@@ -0,0 +1,16 @@
+--- Makefile.orig	2016-12-09 02:53:39 UTC
++++ Makefile
+@@ -1,5 +1,5 @@
+ CFLAGS+=-Wall
+-LIBS=-lcurses
++LIBS=	-lncurses
+ 
+ all:	ascii_invaders
+ 
+@@ -7,5 +7,5 @@ clean:
+ 	rm -f invaders.o ascii_invaders
+ 
+ ascii_invaders: invaders.o
+-	$(CC) $(CFLAGS) $(LIBS) invaders.o -o ascii_invaders
++	$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) invaders.o -o ascii_invaders
+ 



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