Fredrik Fornwall
7 years ago
2 changed files with 33 additions and 2 deletions
@ -0,0 +1,31 @@ |
|||
diff -u -r ../tty-solitaire-1.0.0/Makefile ./Makefile
|
|||
--- ../tty-solitaire-1.0.0/Makefile 2017-01-07 23:39:19.000000000 +0100
|
|||
+++ ./Makefile 2017-09-23 01:38:01.226934201 +0200
|
|||
@@ -1,14 +1,14 @@
|
|||
-CC = gcc
|
|||
-CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
|
|||
+CC ?= gcc
|
|||
+CFLAGS ?= -W -Wall -pedantic -ansi -std=c99 -g
|
|||
|
|||
-LDFLAGS = -lncursesw
|
|||
+LDFLAGS += -lncursesw
|
|||
|
|||
# OS X installs ncurses with wide character support, but not as "libncurses" |
|||
ifeq ($(shell uname -s),Darwin) |
|||
LDFLAGS = -lncurses |
|||
endif |
|||
|
|||
-PREFIX = /usr/local
|
|||
+PREFIX ?= /usr/local
|
|||
|
|||
EXECUTABLE = ttysolitaire |
|||
SRC_DIR = src |
|||
@@ -40,7 +40,7 @@
|
|||
.PHONY: test clean install uninstall |
|||
|
|||
ttysolitaire: $(SRC_OBJECTS) |
|||
- $(CC) $(CFLAGS) $(SRC) -o $(EXECUTABLE) $(SRC_OBJECTS) $(LDFLAGS)
|
|||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(SRC) -o $(EXECUTABLE) $(SRC_OBJECTS) $(LDFLAGS)
|
|||
|
|||
test: $(SRC_OBJECTS) $(TESTS_OBJECTS) |
|||
@$(CC) $(CFLAGS) $(TESTS_SRC) -o $(TESTS_EXECUTABLE) $(TESTS_OBJECTS) $(SRC_OBJECTS) $(LDFLAGS) |
@ -1,7 +1,7 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/mpereira/tty-solitaire |
|||
TERMUX_PKG_DESCRIPTION="ncurses-based klondike solitaire game." |
|||
TERMUX_PKG_DESCRIPTION="Klondike solitaire game" |
|||
TERMUX_PKG_VERSION=1.0.0 |
|||
TERMUX_PKG_SHA256=d3512beb8844ffb295cbea03bb3515fec12851bce38692e05cd55494beb2cc1f |
|||
TERMUX_PKG_SRCURL=https://github.com/mpereira/tty-solitaire/archive/v${TERMUX_PKG_VERSION}.tar.gz |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
|||
TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, ncurses-dev" |
|||
TERMUX_PKG_DEPENDS="ncurses" |
|||
|
Loading…
Reference in new issue