Skip to content

Commit

Permalink
games/pacmanarena: unbreak the build in the -fno-common mode
Browse files Browse the repository at this point in the history
Remove needless ``char *keyboard_map'' definition from the header file
to unbreak the build against modern compilers, e.g. Clang 11 and GCC 10.

PR:	256555
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jun 15, 2021
1 parent 9041a8a commit 5b4e16b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions games/pacmanarena/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ COMMENT= Pacman clone in full 3D with a few surprises
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING

BROKEN_FreeBSD_13= ld: error: duplicate symbol: keyboard_map
BROKEN_FreeBSD_14= ld: error: duplicate symbol: keyboard_map

WRKSRC= ${WRKDIR}/${PORTNAME:S/arena//}

USES= gnome sdl
Expand All @@ -39,6 +36,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|@prefix@|${DATADIR}|; \
s|@datadir@/pacman|${DATADIR}|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/keyboard_map/,+1d' \
${WRKSRC}/include/input.h

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/arena//} \
Expand Down

0 comments on commit 5b4e16b

Please sign in to comment.