Files
kmos 870572ef97 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
2026-04-05 04:30:07 +00:00

34 lines
663 B
Makefile

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
GH_PROJECT = libmpq
GH_COMMIT = b78d66c6fee6a501cc9b95d8556a129c68841b05
# GPLv2+
PERMIT_PACKAGE = Yes
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"
AUTOCONF_VERSION = 2.71
AUTOMAKE_VERSION = 1.16
post-extract:
touch ${WRKSRC}/ChangeLog
.include <bsd.port.mk>