PKGNAME=texinfo
PKGDES='Utilities for viewing and generating "info" documentations'
# FIXME: DPKG trigger produces an error due to dependency loop
#        Dropping all dependencies, and hoping for the best
# dpkg: cycle found while processing triggers:
#  chain of packages whose triggers are or may be responsible:
#   texinfo -> texinfo
#  packages' pending triggers which are or may be unresolvable:
#   texinfo: /usr/share/info
# dpkg: error processing package texinfo (--configure):
#  triggers looping, abandoned
# Errors were encountered while processing:
#  texinfo
PKGRECOM="glibc ncurses gzip perl findutils"
PKGSEC=utils

# FIXME: DPKG trigger produces an error due to dependency loop 
#        Dropping all dependencies, and hoping for the best
# dpkg: cycle found while processing triggers:
#  chain of packages whose triggers are or may be responsible:
#   texinfo -> texinfo
#  packages' pending triggers which are or may be unresolvable:
#   texinfo: /usr/share/info
# dpkg: error processing package texinfo (--configure):
#  triggers looping, abandoned
# Errors were encountered while processing:
#  texinfo
PKGRECOM__RETRO="glibc ncurses gzip findutils"
PKGRECOM__ARMV4="${PKGRECOM__RETRO}"
PKGRECOM__ARMV6HF="${PKGRECOM__RETRO}"
PKGRECOM__ARMV7HF="${PKGRECOM__RETRO}"
PKGRECOM__I486="${PKGRECOM__RETRO}"
PKGRECOM__LOONGSON2F="${PKGRECOM__RETRO}"
PKGRECOM__M68K="${PKGRECOM__M68K}"
PKGRECOM__POWERPC="${PKGRECOM__RETRO}"
PKGRECOM__PPC64="${PKGRECOM__RETRO}"
BUILDDEP__RETRO="perl"
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}"

RECONF=0
AUTOTOOLS_AFTER="--enable-largefile \
                 --enable-year2038 \
                 --enable-threads=posix \
                 --disable-rpath \
                 --disable-multiplatform \
                 --enable-nls \
                 --enable-perl-xs \
                 --disable-tp-tests \
                 --enable-perl-api-texi-build \
                 --disable-pod-simple-texinfo-tests \
                 --without-included-regex \
                 --without-external-Unicode-EastAsianWidth \
                 --without-external-Text-Unidecode"

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