svn commit: r458783 - in head/games/ascii-invaders: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Jan 11 20:05:36 UTC 2018
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 at 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
+
More information about the svn-ports-all
mailing list