From 2454f737809d40eb95d0e32685564fc3cb6c38d9 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Tue, 9 Jan 2024 22:24:19 +0200 Subject: [PATCH] new file: projects/x.org/xft/package.yml new file: projects/x.org/xft/test.c --- projects/x.org/xft/package.yml | 33 +++++++++++++++++++++++++++++++++ projects/x.org/xft/test.c | 6 ++++++ 2 files changed, 39 insertions(+) create mode 100644 projects/x.org/xft/package.yml create mode 100644 projects/x.org/xft/test.c diff --git a/projects/x.org/xft/package.yml b/projects/x.org/xft/package.yml new file mode 100644 index 00000000..9584952b --- /dev/null +++ b/projects/x.org/xft/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://www.x.org/archive/individual/lib/libXft-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://www.x.org/archive/individual/lib/ + match: /libXft-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^libXft-/ + - /\.tar\.xz/ +dependencies: + freedesktop.org/fontconfig: ^2.14 + x.org/xrender: ^0.9 + sourceware.org/bzip2: ^1 + zlib.net: ^1 +build: + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install + env: + ARGS: + - --prefix={{prefix}} + - --sysconfdir={{prefix}}/etc + - --localstatedir={{prefix}}/var + - --disable-dependency-tracking + - --disable-silent-rules +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: + - cc test.c $(pkg-config --cflags fontconfig) -o test + - ./test + - pkg-config --modversion xft | grep {{version}} diff --git a/projects/x.org/xft/test.c b/projects/x.org/xft/test.c new file mode 100644 index 00000000..fe7f72ec --- /dev/null +++ b/projects/x.org/xft/test.c @@ -0,0 +1,6 @@ +#include "X11/Xft/Xft.h" + +int main(int argc, char* argv[]) { + XftFont font; + return 0; +} \ No newline at end of file