miktex-kiss-repo

KISS Linux repo for MiKTeX
git clone git://bvnf.space/miktex-kiss-repo.git
Log | Files | Refs | README | LICENSE

build (1339B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
#!/bin/sh -e

# miktex requires harfbuzz to be built with graphite and ICU.
# This build tries to add the graphite integration to a system already using
# freetype in its harfbuzz.

# Point Harfbuzz to the Freetype files.
export CFLAGS="$CFLAGS -I/usr/include/freetype2"
export CXXFLAGS="$CXXFLAGS -I/usr/include/freetype2"
export LDFLAGS="$LDFLAGS -L/usr/lib"

# Will store the built package's files to
# allow us to cherry-pick the graphite and ICU related files.
mkdir -p tmp
export DESTDIR="$PWD/tmp"

meson \
    --prefix=/usr \
    -Dpkg_config_path=/usr/lib/pkgconfig \
    -Ddefault_library=both \
    -Dglib=enabled \
    -Dfreetype=enabled \
    -Dicu=enabled \
    -Dicu_builtin=false \
    -Dbenchmark=disabled \
    -Dcairo=disabled \
    -Ddocs=disabled \
    -Dtests=disabled \
    -Dgraphite=enabled \
    . output

ninja -C output
ninja -C output install

mkdir -p \
    "$1/usr/include/harfbuzz" \
    "$1/usr/lib/pkgconfig" \
    "$1/usr/lib/cmake/harfbuzz"

cp  tmp/usr/include/harfbuzz/hb-graphite2.h \
    tmp/usr/include/harfbuzz/hb-icu.h \
    "$1/usr/include/harfbuzz"

cp  tmp/usr/lib/pkgconfig/harfbuzz.pc \
    tmp/usr/lib/pkgconfig/harfbuzz-icu.pc \
    "$1/usr/lib/pkgconfig"

cp  tmp/usr/lib/cmake/harfbuzz/harfbuzz-config.cmake \
    "$1/usr/lib/cmake/harfbuzz"

cp -P tmp/usr/lib/libharfbuzz* "$1/usr/lib"