PKGNAME=pango
PKGSEC=libs
PKGDEP="cairo fontconfig freetype harfbuzz libthai x11-lib fribidi"
BUILDDEP="gobject-introspection help2man docutils"
BUILDDEP__RETRO=""
BUILDDEP__ARMV4="${BUILDDEP__RETRO}"
BUILDDEP__ARMV6HF="${BUILDDEP__RETRO}"
BUILDDEP__ARMV7HF="${BUILDDEP__RETRO}"
BUILDDEP__I486="${BUILDDEP__RETRO}"
BUILDDEP__LOONGSON2F="${BUILDDEP__RETRO}"
BUILDDEP__M68K="${BUILDDEP__RETRO}"
BUILDDEP__POWERPC="${BUILDDEP__RETRO}"
BUILDDEP__PPC64="${BUILDDEP__RETRO}"
PKGDES="System for layout and rendering of internationalized text"

ABTYPE=meson
MESON_AFTER=(
    '-Ddocumentation=false'
    '-Dman-pages=true'
    '-Dintrospection=enabled'
    '-Dbuild-testsuite=false'
    '-Dbuild-examples=false'
    '-Dfontconfig=enabled'
    '-Dsysprof=disabled'
    '-Dlibthai=enabled'
    '-Dcairo=enabled'
    '-Dxft=enabled'
    '-Dfreetype=enabled'
)
MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dman-pages=false'
    '-Dintrospection=disabled'
)

# Note: Extra Provides for Spiral (Debian compatibility).
PKGPROV="libpango-1.0-0_spiral libpango-1.0-dev_spiral \
         libpangocairo-1.0-0_spiral libpangocairo-1.0-dev \
         libpango1.0-0_spiral"

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
