diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-06-30 09:58:09 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-06-30 09:58:09 +0000 |
commit | f367f0e92edb1c00b35f89bd25fe6348fbc57f37 (patch) | |
tree | 03baca4190a4d7927aef4388772039b6c900f201 /games/nethack34/Makefile | |
parent | 5debc4773611518c40985bfb40868608aff6346a (diff) |
Add WITH_MENUCOLORS tweak for console-version:
http://www.netsonic.fi/~walker/nethack.html
PR: ports/68363
Submitted by: Jeremy Chadwick
Notes
Notes:
svn path=/head/; revision=112606
Diffstat (limited to 'games/nethack34/Makefile')
-rw-r--r-- | games/nethack34/Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/games/nethack34/Makefile b/games/nethack34/Makefile index af30e10f6e20..f7ff7b7d3317 100644 --- a/games/nethack34/Makefile +++ b/games/nethack34/Makefile @@ -7,7 +7,7 @@ PORTNAME= nethack PORTVERSION= 3.4.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES?= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -45,6 +45,11 @@ MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" GRAPHICS= GNOME_GRAPHICS .elif ${PKGNAMESUFFIX} == "-nox11" GRAPHICS= # none +.if defined(WITH_MENUCOLORS) +PATCHFILES+= nh343-menucolor.diff +PATCH_SITES+= http://www.cs.joensuu.fi/~pkalli/code/ +PATCH_DIST_STRIP= -p1 +.endif .elif ${PKGNAMESUFFIX} == "-qt" USE_QT_VER= 3 MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \ @@ -55,12 +60,14 @@ GRAPHICS= QT_GRAPHICS .endif pre-everything:: - @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" - @${ECHO_MSG} " You cannot install nethack and ${PKGBASE} in parallel " - @${ECHO_MSG} " But ${PKGBASE} read your prior nethack scores " - @${ECHO_MSG} " Don't forget to backup your nethack libdir if it's " - @${ECHO_MSG} " important for you " - @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + @if [ "${PKGBASE}" != "nethack" ]; then \ + ${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ + ${ECHO_MSG} " You cannot install nethack and ${PKGBASE} in parallel " ; \ + ${ECHO_MSG} " But ${PKGBASE} reads your prior nethack scores " ; \ + ${ECHO_MSG} " Don't forget to backup your nethack libdir if it's " ; \ + ${ECHO_MSG} " important for you " ; \ + ${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ + fi post-patch: .for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top @@ -71,6 +78,9 @@ post-patch: .if defined(WITHOUT_SHELL) @${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h .endif +.if defined(WITH_MENUCOLORS) + ${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/include/color.h +.endif pre-configure: @cd ${WRKSRC}/sys/unix; ${SH} setup.sh |