games/eduke32: Fix build and datadir

Fix building with clang17: mimalloc-override.h replaces malloc() and
friends using macros which interfere with C++ standard headers.
-> disable mimalloc usage.

Fix setting DATADIR, upstream source changed here.
2024Q2
Felix Palmen 2024-04-03 08:12:49 +02:00 committed by Piotr Kubaj
parent 16395161ef
commit 02122c50a2
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= eduke32
PORTVERSION= 20240316
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://dukeworld.com/eduke32/synthesis/${PORTVERSION}-${GITREVISION}/:eduke32 \
LOCAL/pkubaj/:erp \
@ -38,7 +39,7 @@ GITREVISION= 10564-0bc78c53d
DATADIR= ${PREFIX}/share/duke3d
SUB_FILES= pkg-message
MAKEFILE= GNUmakefile
MAKE_ARGS= CC=${CC} CXX=${CXX} CLANG=1
MAKE_ARGS= CC=${CC} CXX=${CXX} CLANG=1 PRETTY_OUTPUT=0 USE_MIMALLOC=0
PLIST_FILES= bin/eduke32 bin/mapster32
PORTEXAMPLES= *
@ -92,7 +93,8 @@ post-extract-SHAREWARE-on:
@cd ${WRKDIR} && ${UNZIP_NATIVE_CMD} -qo DN3DSW13.SHR
post-patch:
@${REINPLACE_CMD} 's|/usr/share/games/eduke32|${DATADIR}|' \
@${REINPLACE_CMD} \
's|"/usr/local/share/games/" APPBASENAME|"${DATADIR}"|' \
${WRKSRC}/source/duke3d/src/common.cpp
do-install: