diff options
author | Cem Keylan <cem@ckyln.com> | 2020-10-04 22:51:57 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-10-04 22:51:57 +0300 |
commit | bd36e113fed47de6ac33e411daf7a0b2a34bcbf6 (patch) | |
tree | af403d84dc696fe517683cd563a5bbb3fdccac29 /extra/freetype-harfbuzz | |
parent | 7bc852f77943f4f92a548b3a0f43d6a0a303b585 (diff) | |
download | repository-bd36e113fed47de6ac33e411daf7a0b2a34bcbf6.tar.gz |
move non xorg specific packages to extra
Diffstat (limited to 'extra/freetype-harfbuzz')
-rwxr-xr-x | extra/freetype-harfbuzz/build | 50 | ||||
-rw-r--r-- | extra/freetype-harfbuzz/checksums | 2 | ||||
-rw-r--r-- | extra/freetype-harfbuzz/depends | 18 | ||||
-rw-r--r-- | extra/freetype-harfbuzz/sources | 2 | ||||
-rw-r--r-- | extra/freetype-harfbuzz/version | 1 |
5 files changed, 73 insertions, 0 deletions
diff --git a/extra/freetype-harfbuzz/build b/extra/freetype-harfbuzz/build new file mode 100755 index 00000000..9fb13d97 --- /dev/null +++ b/extra/freetype-harfbuzz/build @@ -0,0 +1,50 @@ +#!/bin/sh -e + +build_freetype() ( + cd freetype + + CFLAGS="$CFLAGS -DDEFAULT_TT_INTERPRETER_VERSION=TT_INTERPRETER_VERSION_40" \ + ./configure \ + --prefix=/usr \ + --enable-freetype-config \ + --with-harfbuzz="$2" + + make + make DESTDIR="$1" install +) + +build_harfbuzz() ( + + # Point Harfbuzz to the Freetype files. + export CFLAGS="$CFLAGS -I$1/usr/include/freetype2" + export CXXFLAGS="$CXXFLAGS -I$1/usr/include/freetype2" + export LDFLAGS="$LDFLAGS -L$1/usr/lib" + + cd harfbuzz + + export DESTDIR="$1" + meson \ + --prefix=/usr \ + -Dglib=enabled \ + -Dfreetype=enabled \ + -Ddefault_library=both \ + -Dicu=disabled \ + -Dbenchmark=disabled \ + -Dtests=disabled \ + -Dpkg_config_path="$1/usr/lib/pkgconfig" \ + . output + + ninja -C output + ninja -C output install +) + +build_freetype "$1" no + + +build_harfbuzz "$1" + +# Point Freetype to the Harfbuzz files. +export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src" +export HARFBUZZ_LIBS="-L$PWD/harfbuzz/output/src -lharfbuzz" + +build_freetype "$1" yes diff --git a/extra/freetype-harfbuzz/checksums b/extra/freetype-harfbuzz/checksums new file mode 100644 index 00000000..00208fd7 --- /dev/null +++ b/extra/freetype-harfbuzz/checksums @@ -0,0 +1,2 @@ +1543d61025d2e6312e0a1c563652555f17378a204a61e99928c9fcef030a2d8b freetype-2.10.2.tar.xz +8ec112ee108642477478b75fc7906422abed404d7530e47ba0a4875f553f1b59 2.7.2.tar.gz diff --git a/extra/freetype-harfbuzz/depends b/extra/freetype-harfbuzz/depends new file mode 100644 index 00000000..3a0f0083 --- /dev/null +++ b/extra/freetype-harfbuzz/depends @@ -0,0 +1,18 @@ +bzip2 +expat +glib +libX11 +libXau +libXdamage +libXext +libXfixes +libXrender +libXxf86vm +libdrm +libpng +libxcb +libxshmfence +mesa +meson make +pixman +zlib diff --git a/extra/freetype-harfbuzz/sources b/extra/freetype-harfbuzz/sources new file mode 100644 index 00000000..f2c0ad34 --- /dev/null +++ b/extra/freetype-harfbuzz/sources @@ -0,0 +1,2 @@ +https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.10.2.tar.xz freetype +https://github.com/harfbuzz/harfbuzz/archive/2.7.2.tar.gz harfbuzz diff --git a/extra/freetype-harfbuzz/version b/extra/freetype-harfbuzz/version new file mode 100644 index 00000000..c41e37fc --- /dev/null +++ b/extra/freetype-harfbuzz/version @@ -0,0 +1 @@ +2.10.2+2.7.2 1 |