PKGNAME=w3m
PKGSEC=web
PKGDES="Text-based Web browser and pager"
PKGDEP="openssl gc ncurses imlib2"
PKGDEP__RETRO="openssl ncurses gc"

ABTYPE=autotools

# FIXME: Fails to re-generate.
#
# configure.ac:45: error: possibly undefined macro: AM_GNU_GETTEXT
#       If this token and others are legitimate, please use m4_pattern_allow.
#       See the Autoconf documentation.
# autoreconf: error: /usr/bin/autoconf failed with exit status: 1
RECONF=0

AUTOTOOLS_AFTER=(
    '--libexecdir=/usr/lib'
    '--enable-image=x11,fb'
    '--with-imagelib=imlib2'
    '--with-termlib=ncurses'
    '--disable-w3mmailer'
)
AUTOTOOLS_AFTER__RETRO=(
    "${AUTOTOOLS_AFTER[@]}"
    '--disable-image'
    '--without-imagelib'
)

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