svn commit: r521813 - in head/games/tty-solitaire: . files

Baptiste Daroussin bapt at FreeBSD.org
Thu Jan 2 09:23:48 UTC 2020


Author: bapt
Date: Thu Jan  2 09:23:47 2020
New Revision: 521813
URL: https://svnweb.freebsd.org/changeset/ports/521813

Log:
  Modify the makefile so we can specify the ncurses implementation from the
  command line

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

Modified: head/games/tty-solitaire/Makefile
==============================================================================
--- head/games/tty-solitaire/Makefile	Thu Jan  2 09:19:02 2020	(r521812)
+++ head/games/tty-solitaire/Makefile	Thu Jan  2 09:23:47 2020	(r521813)
@@ -17,6 +17,8 @@ GH_ACCOUNT=	mpereira
 
 USES=		gmake ncurses
 
+MAKE_ARGS=	NCURSES=-l${NCURSES_IMPL}
+
 PORTDOCS=	*
 PLIST_FILES=	bin/ttysolitaire
 

Added: head/games/tty-solitaire/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/tty-solitaire/files/patch-Makefile	Thu Jan  2 09:23:47 2020	(r521813)
@@ -0,0 +1,16 @@
+--- Makefile.orig	2018-11-10 05:00:46 UTC
++++ Makefile
+@@ -6,10 +6,11 @@ CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=
+ 
+ # OS X installs ncurses with wide character support, but not as "libncurses".
+ ifeq ($(shell uname -s),Darwin)
+-	LDFLAGS += -lncurses
++	NCURSES = -lncurses
+ else
+-	LDFLAGS += -lncursesw
++	NCURSES = -lncursesw
+ endif
++LDFLAGS += $(NCURSES)
+ 
+ PREFIX ?= /usr/local
+ 


More information about the svn-ports-head mailing list