games/kajaani-kombat: USES+= ncurses, respect LDFLAGS

While here, change specification from -lcurses to -lncurses.
The former does not exist in ports ncurses package and it is an alias
for libncurses in base.
This commit is contained in:
John Marino 2016-01-31 09:04:46 +00:00
parent d4aa3d5478
commit 18bb4f1139
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407595
2 changed files with 24 additions and 1 deletions

View File

@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
USES= gmake iconv
USES= gmake iconv ncurses
USE_SDL= sdl image mixer net ttf
ALL_TARGET= client server

View File

@ -0,0 +1,23 @@
--- Makefile.orig 2005-01-31 18:57:14 UTC
+++ Makefile
@@ -47,7 +47,7 @@ endif
INS=/usr/bin/install
client_libs = `sdl-config --libs` -lSDL_net -lSDL_image -lSDL_ttf -lSDL_mixer
-server_libs = `sdl-config --libs` -lSDL_net -lcurses
+server_libs = `sdl-config --libs` -lSDL_net -lncurses
client_objs = game_obj.o terrain.o msg.o rotozoom.o gfx.o game_client.o main.o coord.o block.o \
particle_efects.o animation.o gfx_functions.o gui.o gui_screens.o game_server.o audio.o\
@@ -85,9 +85,9 @@ connects.o: connects.h connects.cpp msg.
client_net.o: client_net.h client_net.cpp globals.h monitor_queue.h msg.h
client: $(client_objs)
- $(CXX) $(client_objs) -o kajaani-kombat $(client_libs)
+ $(CXX) $(client_objs) -o kajaani-kombat $(LDFLAGS) $(client_libs)
server: $(server_objs)
- $(CXX) $(server_objs) -o kajaani-kombat-server $(server_libs)
+ $(CXX) $(server_objs) -o kajaani-kombat-server $(LDFLAGS) $(server_libs)
.PHONY: all clean client server install