Skip to content

Commit

Permalink
Tweak games/gtypist version 2.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DPorts Builder committed Nov 21, 2016
1 parent 073660c commit 7453b8b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions games/gtypist/Makefile
Expand Up @@ -12,8 +12,10 @@ LICENSE= GPLv3

USES= iconv ncurses shebangfix tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ENV= EMACS=no
CONFIGURE_ENV= EMACS=no \
ac_cv_header_ncursesw_ncurses_h=yes
CPPFLAGS+= -I${LOCALBASE}/include -I${WRKDIR}/include
CPPFLAGS+= -I${NCURSESINC}
LDFLAGS+= -L${LOCALBASE}/libs

INFO= gtypist gtypist.cs gtypist.es
Expand All @@ -26,9 +28,12 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

# wide curses header expected at <ncursesw/ncurses.h>
pre-configure:
@${MKDIR} ${WRKDIR}/include
@${LN} -sf /usr/include ${WRKDIR}/include/ncursesw
post-patch:
${REINPLACE_CMD} -e 's|<ncursesw/ncurses.h>|<ncurses.h>|' \
${WRKSRC}/src/error.c \
${WRKSRC}/src/cursmenu.c \
${WRKSRC}/src/script.c \
${WRKSRC}/src/gtypist.c \
${WRKSRC}/src/utf8.c

.include <bsd.port.mk>

0 comments on commit 7453b8b

Please sign in to comment.