pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games/nethack-lib



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue May  9 14:12:30 UTC 2017

Modified Files:
        pkgsrc/games/nethack-lib: Makefile.common

Log Message:
Use the infrastructure to find termcap correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/games/nethack-lib/Makefile.common

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/nethack-lib/Makefile.common
diff -u pkgsrc/games/nethack-lib/Makefile.common:1.30 pkgsrc/games/nethack-lib/Makefile.common:1.31
--- pkgsrc/games/nethack-lib/Makefile.common:1.30       Thu Feb 25 13:19:47 2016
+++ pkgsrc/games/nethack-lib/Makefile.common    Tue May  9 14:12:30 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.30 2016/02/25 13:19:47 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.31 2017/05/09 14:12:30 jperkin Exp $
 #
 # used by games/nethack/Makefile
 # used by games/nethack-lib/Makefile
@@ -29,16 +29,14 @@ HAS_CONFIGURE=              yes
 CONFIGURE_SCRIPT=      ./sys/unix/setup.sh
 USE_TOOLS+=            gzip yacc lex awk
 
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/termcap.buildlink3.mk"
 
-SUBST_CLASSES.Darwin+= ttylib
-SUBST_CLASSES.Linux+=  ttylib
-SUBST_MESSAGE.ttylib=  Configuring to use ncurses
+SUBST_CLASSES+=                ttylib
+SUBST_MESSAGE.ttylib=  Configuring to use correct termcap library
 SUBST_STAGE.ttylib=    post-patch
 SUBST_FILES.ttylib=    sys/unix/Makefile.src
-SUBST_SED.ttylib=      -e 's,^WINTTYLIB = -ltermlib,WINTTYLIB = -lncurses,'
-
-.include "../../mk/curses.buildlink3.mk"
+SUBST_SED.ttylib=      -e 's!^WINTTYLIB = -ltermlib!WINTTYLIB = -L${BUILDLINK_PREFIX.termcap}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.termcap}/lib -l${BUILDLINK_LIBNAME.termcap}!'
 
 OPSYSVARS+=            NETHACK_OS
 NETHACK_OS.Linux=      SYSV



Home | Main Index | Thread Index | Old Index