|
root / base / feh
feh Plain Text 51 lines 1.9 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
#!/bin/sh
# Build script for feh (plain Makefile - no configure, no pkg-config use).
# Deps: imlib2, libX11, libXinerama, libpng - all under $PREFIX.
# feh's config.mk hardcodes LDLIBS (-lm -lpng -lX11 -lImlib2) with no -I/-L
# of its own, relying on the compiler's default search paths - which does
# NOT include $PREFIX/include or $PREFIX/lib on Hammerhead. Supply those
# via CFLAGS/LDFLAGS in the environment (config.mk's CFLAGS uses `?=`/`+=`
# so an exported CFLAGS is picked up as the base and appended to).
# curl=0 exif=0 per the task brief (no libcurl/libexif ports); xinerama=1
# (libXinerama is ported).
#
# verscmp=0: feh defaults verscmp=1 (assumes glibc's GNU strverscmp()),
# but illumos libc has no strverscmp() at all (not even hidden behind
# __EXTENSIONS__ - it's a pure GNU extension). With verscmp=0 feh's own
# Makefile pulls in its bundled strverscmp.c fallback implementation
# instead, avoiding the "implicit declaration of function 'strverscmp'"
# build failure.
set -e
cd "$SRCDIR"

export CFLAGS="-I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="-L$PREFIX/lib -R$PREFIX/lib"

gmake CC=gcc PREFIX="$PREFIX" curl=0 exif=0 xinerama=1 verscmp=0

gmake PREFIX="$PREFIX" DESTDIR="$PKGDIR" curl=0 exif=0 xinerama=1 verscmp=0 install
# feh - fast, lightweight image viewer (also used for wallpaper-setting)
# https://feh.finalrewind.org/

[package]
name = "feh"
version = "3.12.2"
release = 1
description = "Fast, lightweight X11 image viewer"
url = "https://feh.finalrewind.org/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["imlib2", "libX11", "libXinerama", "libpng"]
build = ["imlib2", "libX11", "libXinerama", "libpng"]

[[source]]
file = "feh-3.12.2.tar.bz2"
urls = ["https://feh.finalrewind.org/feh-3.12.2.tar.bz2"]
checksum = "7ce358b18a7f37bcc97a09b4efd89fdadd54cd8e7032db345f61e66dd04b1c3f"

[build]
parallel = true