# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)

PKG_NAME="font-misc-misc"
PKG_VERSION="1.1.2"
PKG_SHA256="b8e77940e4e1769dc47ef1805918d8c9be37c708735832a07204258bacc11794"
PKG_LICENSE="OSS"
PKG_SITE="http://www.X.org"
PKG_URL="http://xorg.freedesktop.org/archive/individual/font/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_TARGET="toolchain util-macros font-util font-cursor-misc"
PKG_LONGDESC="A misc. public domain font."

PKG_CONFIGURE_OPTS_TARGET="--with-fontrootdir=/usr/share/fonts \
                           --disable-silent-rules \
                           --enable-iso8859-1 \
                           --enable-iso8859-2 \
                           --disable-iso8859-3 \
                           --disable-iso8859-4 \
                           --enable-iso8859-5 \
                           --enable-iso8859-7 \
                           --enable-iso8859-8 \
                           --enable-iso8859-9 \
                           --disable-iso8859-10 \
                           --disable-iso8859-11 \
                           --disable-iso8859-13 \
                           --enable-iso8859-14 \
                           --enable-iso8859-15 \
                           --disable-iso8859-16 \
                           --disable-koi8-r \
                           --disable-jisx0201"

PKG_MAKE_OPTS_TARGET="UTIL_DIR=$SYSROOT_PREFIX/usr/share/fonts/util/"

makeinstall_target() {
  mkdir -p $INSTALL/usr/share/fonts/misc
    cp 6x13-ISO8859-1.pcf.gz $INSTALL/usr/share/fonts/misc
}

post_install() {
  mkfontdir $INSTALL/usr/share/fonts/misc
  mkfontscale $INSTALL/usr/share/fonts/misc
}
