|
root / base / libXpm
libXpm Plain Text 56 lines 1.8 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
52
53
54
55
#!/bin/sh
# Build script for libXpm (autotools, Template A + custom).
# --disable-open-zfile per brief: avoids a gzip-helper-path probe in
# configure that has tripped on non-Linux hosts.
set -e
cd "$SRCDIR"

# GOTCHA (found 2026-07-22, Task 4a): this release's libtool-generated
# `configure` has no solaris/illumos/hammerhead arm in its dynamic-linker
# detection `case $host_os in ...` block - unmatched OS falls through to
# `*) dynamic_linker=no ;;` which forces can_build_shared=no (static-only
# .a, no .so). Patch the case arm to add hammerhead* alongside the generic
# glibc/ELF branch (same SONAME/.so.N convention applies).
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"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

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

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# libXpm - X Pixmap library (Openbox theme/icon support)
# https://gitlab.freedesktop.org/xorg/lib/libxpm

[package]
name = "libXpm"
version = "3.5.19"
release = 1
description = "X Pixmap library"
url = "https://xorg.freedesktop.org/releases/individual/lib/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

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

[[source]]
file = "libXpm-3.5.19.tar.xz"
urls = ["https://xorg.freedesktop.org/releases/individual/lib/libXpm-3.5.19.tar.xz"]
checksum = "ad3576d689221a39dc728f0e0dc02ca7bb6a0d724c9a77fd1bfa1e9af83be900"

[build]
parallel = true