|
root / base / xauth
xauth Plain Text 52 lines 1.6 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
50
51
#!/bin/sh
# Build script for xauth (autotools, Template A verbatim).
# Note: configure.ac's PKG_CHECK_MODULES(XAUTH, x11 xau xext xmuu ...) wants
# the "xmuu" pkg-config module, which the libXmu port already ships
# alongside libXmu itself (upstream libXmu builds both libXmu.so and the
# thinner libXmuu.so + xmuu.pc) - no extra dependency needed.
set -e
cd "$SRCDIR"

if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# xauth - X authority file (cookie) manipulation tool
# Direct xlibre-server CDEPEND (>=x11-apps/xauth-1.0.3)
# https://gitlab.freedesktop.org/xorg/app/xauth

[package]
name = "xauth"
version = "1.1.5"
release = 1
description = "X authority file utility"
url = "https://xorg.freedesktop.org/releases/individual/app/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["libX11", "libXau", "libXext", "libXmu"]
build = ["libX11", "libXau", "libXext", "libXmu", "xorgproto", "util-macros"]

[[source]]
file = "xauth-1.1.5.tar.xz"
urls = ["https://xorg.freedesktop.org/releases/individual/app/xauth-1.1.5.tar.xz"]
checksum = "a4000e2f441facebf569026bedecc23ba262cc6927be52070abe0002625cfbe0"

[build]
parallel = true