Index: head/games/unnethack/Makefile =================================================================== --- head/games/unnethack/Makefile (revision 456884) +++ head/games/unnethack/Makefile (revision 456885) @@ -1,52 +1,56 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= unnethack DISTVERSION= 5.1.0-20131208 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R} MAINTAINER= knu@FreeBSD.org COMMENT= New variant of NetHack -BROKEN= does not build: ./vaults.des: line 110, pos 9 : Core function 'level.depth' has unknown return type 'i'. +LICENSE= nethack +LICENSE_NAME= NETHACK GENERAL PUBLIC LICENSE +LICENSE_FILE= ${WRKSRC}/dat/license +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept GNU_CONFIGURE= yes USES= gmake groff ncurses MAKE_JOBS_UNSAFE= yes VARDIR_REL= var/games/${PORTNAME} VARDIR= ${PREFIX}/${VARDIR_REL} CONFIGURE_ARGS= --datadir="${DATADIR:H}" \ --localstatedir="${VARDIR:H}" \ --docdir="${DOCSDIR:H}" \ --with-owner=no \ --with-group=no \ --enable-data-librarian \ LFLAGS="${LDFLAGS}" MAKE_ARGS= MANPREFIX="${STAGEDIR}${MANPREFIX}" INSTALL_TARGET= install manpages PKGDEINSTALL= ${WRKDIR}/pkg-deinstall SUB_FILES= pkg-deinstall SUB_LIST= VARDIR="${VARDIR}" PLIST_SUB= VARDIR="${VARDIR_REL}" OPTIONS_DEFINE= DOCS post-patch: ${MV} ${WRKSRC}/doc/nethack.6 ${WRKSRC}/doc/${PORTNAME}.6 post-install: cd ${STAGEDIR}${PREFIX}/man/man6; \ for f in ${WRKSRC}/doc/*.6; do \ fn=$${f##*/}; \ case $$fn in \ unnethack.6) ;; \ *) ${MV} $$fn unnethack_$$fn ;; \ esac; \ done post-install-DOCS-on: ${INSTALL_DATA} ${FILESDIR}/sample.unnethackrc ${STAGEDIR}${DOCSDIR} .include Index: head/games/unnethack/files/patch-util_lev__comp.l =================================================================== --- head/games/unnethack/files/patch-util_lev__comp.l (nonexistent) +++ head/games/unnethack/files/patch-util_lev__comp.l (revision 456885) @@ -0,0 +1,24 @@ + [clang] Declare core_func_retval() + + This fixes the clang build failure + + ./vaults.des: line 110, pos 9 : Core function 'level.depth' has + unknown return type 'i'. + ./vaults.des: line 110, pos 9 : syntax error at level.depth + + Because core_func_retval() wasn't declared, it was defaulting to + return type **int**. So you could get, for instance, return + value 361 (which is 'i' + 256 .. high bits of the return value + were being kept, instead of discarded as they might for a narrower type). + +--- util/lev_comp.l.orig 2017-12-20 08:11:18 UTC ++++ util/lev_comp.l +@@ -80,6 +80,8 @@ void FDECL(savetoken, (char *)); + void NDECL(newline); + void FDECL(advancepos, (char *)); + ++extern char FDECL(core_func_retval, (int idx)); ++ + /* + * This doesn't always get put in lev_comp.h + * (esp. when using older versions of bison). Property changes on: head/games/unnethack/files/patch-util_lev__comp.l ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/unnethack/pkg-plist =================================================================== --- head/games/unnethack/pkg-plist (revision 456884) +++ head/games/unnethack/pkg-plist (revision 456885) @@ -1,28 +1,29 @@ @owner games @group games @mode 2755 bin/unnethack @mode %%DATADIR%%/nhdat %%DATADIR%%/recover %%DATADIR%%/unnethack +%%DATADIR%%/unnethackrc.default @mode 664 %%VARDIR%%/logfile %%VARDIR%%/perm %%VARDIR%%/record %%VARDIR%%/xlogfile @owner @group @mode man/man6/unnethack_dgn_comp.6.gz man/man6/unnethack_dlb.6.gz man/man6/unnethack_lev_comp.6.gz man/man6/unnethack_recover.6.gz man/man6/unnethack.6.gz %%DOCSDIR%%/Guidebook.txt %%DOCSDIR%%/license %%PORTDOCS%%%%DOCSDIR%%/sample.unnethackrc @dir(games,games,) %%DATADIR%% @dir(games,games,775) %%VARDIR%%/bones @dir(games,games,775) %%VARDIR%%/level @dir(games,games,775) %%VARDIR%%/saves