summaryrefslogtreecommitdiff
path: root/repo/freetype2/freetype2.xibuild
blob: 8e0a28d18d91b6568744a8e8cd0f44aa86968571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

MAKEDEPS="make "
DEPS="brotli libpng which"

PKG_VER=2.12.1
SOURCE=https://downloads.sourceforge.net/freetype/freetype-$PKG_VER.tar.xz
DESC="Font rasterization library"

prepare () {
    sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&

    sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
        -i include/freetype/config/ftoption.h 
}

build () {
    ./configure --prefix=/usr --enable-freetype-config --disable-static &&
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
}