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
This commit is contained in:
kmos
2026-04-05 04:30:07 +00:00
parent ed28be4f44
commit 870572ef97
+6
View File
@@ -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"