svn commit: r407584 - in head/games/trojka: . files

John Marino marino at FreeBSD.org
Sun Jan 31 08:21:32 UTC 2016


Author: marino
Date: Sun Jan 31 08:21:30 2016
New Revision: 407584
URL: https://svnweb.freebsd.org/changeset/ports/407584

Log:
  games/trojka: Respect LDFLAGS, document ncurses requirement
  
  Also specific libncurses rather the libcurses (it's the same thing
  on FreeBSD so that's a no-op).
  
  This port could use some TLC, modern GCC spews easily fixed warnings
  everywhere.

Modified:
  head/games/trojka/Makefile
  head/games/trojka/files/patch-Makefile

Modified: head/games/trojka/Makefile
==============================================================================
--- head/games/trojka/Makefile	Sun Jan 31 08:20:01 2016	(r407583)
+++ head/games/trojka/Makefile	Sun Jan 31 08:21:30 2016	(r407584)
@@ -16,4 +16,6 @@ LICENSE_NAME=	Trojka Copyright
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
+USES=		ncurses
+
 .include <bsd.port.mk>

Modified: head/games/trojka/files/patch-Makefile
==============================================================================
--- head/games/trojka/files/patch-Makefile	Sun Jan 31 08:20:01 2016	(r407583)
+++ head/games/trojka/files/patch-Makefile	Sun Jan 31 08:21:30 2016	(r407584)
@@ -1,6 +1,6 @@
 --- Makefile.orig	1995-10-20 21:17:43 UTC
 +++ Makefile
-@@ -6,14 +6,24 @@
+@@ -6,21 +6,31 @@
  #
  
  
@@ -27,7 +27,15 @@
  
  clean:
  	rm -f $(PROGS) *.o core a.out trojka.scores
-@@ -53,3 +63,5 @@ hpux:	
+ 
+ trojka: $(OBJS)
+ #	$(CC) $(CFLAGS) $(OBJS) -lcurses -ltermlib -o trojka
+-	$(CC) $(CFLAGS) $(OBJS) -lcurses -o trojka
++	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -lncurses -o trojka
+ 
+ 
+ # patch for HP-UX, need 'codelibs'
+@@ -53,3 +63,5 @@ hpux:
  
  linux:
  	make trojka "CFLAGS=-DLINUX"


More information about the svn-ports-head mailing list