#!/bin/sh # Build script for libxcvt (Meson, Template B). Dependency of # xlibre-xserver-xorg. Pure C library + `cvt` binary; no patches needed. set -e cd "$SRCDIR" export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH" # __EXTENSIONS__ + _POSIX_PTHREAD_SEMANTICS: unlock hidden POSIX/SysV prototypes # on illumos headers (meson has_function() falsely reports them present). export CFLAGS="${CFLAGS} -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS" # rpath: Meson strips rpath on install and /usr/local/lib is not on the default # ld.so path; bake -R$PREFIX/lib so installed artifacts are self-contained. export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -Wl,-R,$PREFIX/lib" meson setup build \ --prefix="$PREFIX" \ --libdir=lib \ --buildtype=release \ -Ddefault_library=shared ninja -C build -j${JOBS:-1} DESTDIR="$PKGDIR" ninja -C build install # libxcvt - VESA CVT standard timing modelines generator library # Small standalone library split out of the X server; xlibre-xserver-xorg # hard-requires it (meson.build: dependency('libxcvt', required: build_xorg)). # Pure C, no illumos-isms - a plain Meson library + the `cvt` helper binary. # https://gitlab.freedesktop.org/xorg/lib/libxcvt [package] name = "libxcvt" version = "0.1.3" release = 1 description = "Library providing VESA CVT standard timing modelines" url = "https://gitlab.freedesktop.org/xorg/lib/libxcvt" license = "MIT" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = [] build = [] [[source]] file = "libxcvt-0.1.3.tar.xz" urls = ["https://www.x.org/releases/individual/lib/libxcvt-0.1.3.tar.xz"] checksum = "a929998a8767de7dfa36d6da4751cdbeef34ed630714f2f4a767b351f2442e01" [build] parallel = true