# Description: xorg font font-misc-misc
# URL: http://xorg.freedesktop.org
# Maintainer: Tilman Sauerbeck tilman at crux dot nu
# Arch Maintainer: CRUX-ARM System Team crux-arm at mikeux dot dyndns dot org
# Depends on: xorg-font-util xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale

name=xorg-font-misc-misc
version=1.0.0
release=2
source=(http://xorg.freedesktop.org/releases/individual/font/font-misc-misc-$version.tar.bz2)

build() {
  cd font-misc-misc-$version

  export DEFAULT_LIBS="-L$CLFS/usr/lib"
  export DEFAULT_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
  export MAPS_LIBS="$DEFAULT_LIBS"
  export MAPS_CFLAGS="$DEFAULT_CFLAGS"

  ./configure --build=$CHOST \
              --host=$CTARGET \
              --prefix=/usr

  make BDFTOPCF="bdftopcf" \
       MKFONTDIR="mkfontdir" \
       MKFONTSCALE="mkfontscale" \
       UCS2UTIL="ucs2util" \
       UTIL_DIR="/usr/lib/X11/fonts/util"

  make DESTDIR=$PKG install

  rm -f $PKG/usr/lib/X11/fonts/misc/fonts.{dir,scale}
}