termux-packages/packages/nsnake/Makefile.patch

34 lines
1013 B
Diff
Raw Normal View History

2017-05-27 14:39:42 +02:00
--- ../cache/nSnake-3.0.1/Makefile 2014-07-31 05:02:32.000000000 +0000
+++ ./Makefile 2017-05-27 10:13:56.771649741 +0000
@@ -42,7 +42,7 @@
DATE = $(shell date "+%b%Y")
# Install dirs
-PREFIX = /usr
2019-01-27 21:09:21 +01:00
+PREFIX ?= /usr
2017-05-27 14:39:42 +02:00
EXEC_PREFIX = $(PREFIX)
DATAROOTDIR = $(PREFIX)/share
BINDIR = $(EXEC_PREFIX)/bin
@@ -63,9 +63,9 @@
# Build info
EXE = $(PACKAGE)
CDEBUG = -O2
-CXXFLAGS = $(CDEBUG) -Wall -Wextra $(CFLAGS_PLATFORM)
-LDFLAGS = -lncurses $(LDFLAGS_PLATFORM)
-INCLUDESDIR = -I"src/" -I"deps/"
2019-01-27 21:09:21 +01:00
+CXXFLAGS ?= $(CDEBUG) -Wall -Wextra $(CFLAGS_PLATFORM)
+LDFLAGS ?= -lncurses $(LDFLAGS_PLATFORM)
2017-05-27 14:39:42 +02:00
+INCLUDESDIR = -I"src/" -I"deps/" $(CPPFLAGS)
LIBSDIR =
# All source files
@@ -147,7 +147,7 @@
$(EXE): $(OBJECTS) $(COMMANDER_OBJS)
# Linking...
- $(MUTE)$(CXX) $(OBJECTS) $(COMMANDER_OBJS) -o bin/$(EXE) $(LIBSDIR) $(LDFLAGS)
+ $(MUTE)$(CXX) $(OBJECTS) $(COMMANDER_OBJS) -o bin/$(EXE) $(LIBSDIR) $(LDFLAGS) -lncurses
src/%.o: src/%.cpp
# Compiling $<...