|
root / base / libxcvt
libxcvt Plain Text 50 lines 1.7 KB
 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
#!/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 <chris.tusa@leafscale.com>"
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