From 870572ef97530225a35203cc27d8bf2a596b71e2 Mon Sep 17 00:00:00 2001 From: kmos Date: Sun, 5 Apr 2026 04:30:07 +0000 Subject: [PATCH] Move archivers/libmpq to ports-gcc because it uses builtins (__builtin_bswap16/32/64) that end up missing during linking of consumers such as games/devilutionx. Switching to ports-gcc produces a library that allows consumers such as games/devilutionx to link successfully. Patch provided by Brad Smith --- archivers/libmpq/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archivers/libmpq/Makefile b/archivers/libmpq/Makefile index c584b3e6abe..26e65935819 100644 --- a/archivers/libmpq/Makefile +++ b/archivers/libmpq/Makefile @@ -2,6 +2,8 @@ COMMENT = extract, create or manipulate MoPaQ mpq archives DISTNAME = libmpq-0.4.2pl20230224 CATEGORIES = archivers +REVISION = 0 + SHARED_LIBS += mpq 0.0 # 0.0 GH_ACCOUNT = diasurgical @@ -15,6 +17,10 @@ WANTLIB += bz2 z LIB_DEPENDS += archivers/bzip2 +# builtins +COMPILER = base-clang ports-gcc +COMPILER_LANGS = c + CONFIGURE_STYLE = autoreconf CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"