PKGNAME=0ad
PKGSEC=games
PKGDEP="binutils boost curl enet libogg libpng libvorbis libxml2 openal-soft \
        sdl12-compat wxgtk3 zlib mesa glu gloox miniupnpc icu nspr fmt"
BUILDDEP="cbindgen llvm rustc"
PKGDES="RTS (Real Time Strategy) Game of Ancient Warfare"

ABTYPE=self
# FIXME: LTO build fails
# ld: undefined reference to `RustMozCrash'
# Setting USECLANG=1 does not fix this problem.
NOLTO=1

# FIXME: Fails to build with exceptions.
#
# Link: https://bugzilla.redhat.com/show_bug.cgi?id=2304756
AB_FLAGS_EXC=0

# FIXME: No premake support.
FAIL_ARCH="@(loongson3|ppc64el)"
