aboutsummaryrefslogtreecommitdiff
path: root/games/2048
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-04-18 18:40:24 +0000
committerJohn Marino <marino@FreeBSD.org>2016-04-18 18:40:24 +0000
commit13fbe05fccf22c5162bd661e0136192c328b0097 (patch)
tree0d308feb3479cca83f5a4d8cafeae9623a97b2a4 /games/2048
parentb1fb5a15c191d1bd1552e772ad30cd281a008a2d (diff)
downloadports-13fbe05fccf22c5162bd661e0136192c328b0097.tar.gz
ports-13fbe05fccf22c5162bd661e0136192c328b0097.zip
games/2048: Restore build for ports ncurses
The LIBS Make argument no longer works; libcurses was hardcoded to the curses target in the 2048 v0.9.1 makefile. To restore the build on systems without base ncurses (e.g. DragonFly), extend the existing Makefile file to link to libncurses instead. While here, remove the non-functional MAKE_ARGS=LIBS definition. Approved by: just-fix-it / Restore DF functionality blanket
Notes
Notes: svn path=/head/; revision=413605
Diffstat (limited to 'games/2048')
-rw-r--r--games/2048/Makefile1
-rw-r--r--games/2048/files/patch-Makefile11
2 files changed, 10 insertions, 2 deletions
diff --git a/games/2048/Makefile b/games/2048/Makefile
index 4151d150a0f8..47b28551598e 100644
--- a/games/2048/Makefile
+++ b/games/2048/Makefile
@@ -18,7 +18,6 @@ GH_PROJECT= 2048-cli
USES= ncurses gmake
ALL_TARGET= curses
-MAKE_ARGS= LIBS="-lncurses"
PLIST_FILES= bin/2048 man/man1/2048.1.gz
PORTDOCS= README.md
diff --git a/games/2048/files/patch-Makefile b/games/2048/files/patch-Makefile
index 712177e9a87c..fa095ba6b3a0 100644
--- a/games/2048/files/patch-Makefile
+++ b/games/2048/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig 2016-04-08 17:50:58 UTC
+--- Makefile.orig 2016-03-30 07:46:31 UTC
+++ Makefile
@@ -1,7 +1,7 @@
CC ?= clang
@@ -9,3 +9,12 @@
CFLAGS += -DINVERT_COLORS -DVT100 -O2
LFLAGS +=
+@@ -13,7 +13,7 @@ FILTERED_C_FILES := $(filter-out src/gfx
+ all: terminal
+
+ curses: $(FILTERED_C_FILES) src/gfx_curses.c
+- $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lcurses
++ $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lncurses
+
+ terminal: $(FILTERED_C_FILES) src/gfx_terminal.c
+ $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS)