Ticket #69831: nethack_curses.patch

File nethack_curses.patch, 1.4 KB (added by jnielsendotnet, 3 weeks ago)

Update Portfile and add patch file to enable curses interface

  • nethack/Portfile

    a b  
    3232
    3333patch.pre_args     -p1
    3434patchfiles         patch-gamestate-dir.diff \
    35                    patch-manpage-dir.diff
     35                   patch-manpage-dir.diff \
     36                   patch-curses-graphics.diff
    3637
    3738patchfiles-append  patch-nethack-warn-unused-result.diff
    3839
     
    5556use_parallel_build no
    5657build.args-append  CC=${configure.cc} \
    5758                   CXX=${configure.cxx} \
    58                    CPP=${configure.cpp}
     59                   CPP=${configure.cpp} \
     60                   CFLAGS="-I../include -DCURSES_GRAPHICS -DNOTPARMDECL"
    5961
    6062pre-destroot {
    6163    xinstall -d "${destroot}${prefix}/share/man/man6"
  • nethack/files/patch-curses-graphics.diff

    a b  
     1--- a/sys/unix/Makefile.src     2023-02-15 14:52:57
     2+++ b/sys/unix/Makefile.src     2024-04-25 21:21:42
     3@@ -273,7 +273,10 @@
     4 # Curses - Karl Garrison, Tangles
     5 #WINSRC = $(WINCURSESSRC)
     6 #WINOBJ = $(WINCURSESOBJ)
     7-#
     8+
     9+WINSRC = $(WINTTYSRC) $(WINCURSESSRC)
     10+WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ)
     11+
     12 # on some systems the termcap library is in -ltermcap or -lcurses
     13 # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
     14 # Sysatt uses shared library in lieu of this option