49bf7bbb5d
- Introduced `r.toml` for R package configuration, including build flags and dependencies. - Added `sdl2-compat.toml` for SDL2 compatibility layer with SDL3, specifying build and runtime dependencies. - Created a patch for SDL3 to handle cases when XInput2 is not available, ensuring compatibility. - Added `sdl3.toml` for SDL3 configuration, including build flags and dependencies. - Introduced `tk.toml` for Tk configuration, detailing build flags and runtime dependencies. - Added a patch for Vala to ensure POSIX compliance in the test runner script, improving portability.
68 lines
1.8 KiB
TOML
68 lines
1.8 KiB
TOML
[build]
|
|
type = "makefile"
|
|
|
|
[build.flags]
|
|
makefile_commands = ["make"]
|
|
makefile_install_commands = [
|
|
'make pkgdir="$DESTDIR/usr" PKGMANDIR=share/man install-run install-dev',
|
|
'''echo -e '#!/bin/sh\npamditherbw $@ | pamtopnm\n' > "$DESTDIR/usr/bin/pgmtopbm"''',
|
|
]
|
|
|
|
[dependencies]
|
|
runtime = [
|
|
"sh",
|
|
"libcxx",
|
|
"libunwind",
|
|
"jbigkit",
|
|
"glibc",
|
|
"libjpeg-turbo",
|
|
"libpng",
|
|
"libtiff",
|
|
"libxml215",
|
|
"perl",
|
|
"zlib-ng",
|
|
]
|
|
|
|
[[manual_sources]]
|
|
files = [
|
|
"reproducible-man-gzip.patch",
|
|
"netpbm-security-scripts.patch",
|
|
"netpbm-security-code.patch",
|
|
"netpbm-CAN-2005-2471.patch",
|
|
]
|
|
|
|
[package]
|
|
description = "A toolkit for manipulation of graphic images"
|
|
homepage = "http://netpbm.sourceforge.net/"
|
|
license = [
|
|
"Artistic-1.0",
|
|
"GPL-2.0-only",
|
|
"LGPL-2.0-only",
|
|
"MIT",
|
|
]
|
|
name = "netpbm"
|
|
version = "10.86.48"
|
|
|
|
[[source]]
|
|
extract_dir = "$name-$version"
|
|
patches = [
|
|
"netpbm-CAN-2005-2471.patch",
|
|
"netpbm-security-code.patch",
|
|
"netpbm-security-scripts.patch",
|
|
"reproducible-man-gzip.patch",
|
|
]
|
|
post_extract = [
|
|
"cp config.mk.in config.mk",
|
|
"echo 'CFLAGS_SHLIB = -fPIC' >> config.mk",
|
|
"echo 'TIFFLIB = libtiff.so' >> config.mk",
|
|
"echo 'JPEGLIB = libjpeg.so' >> config.mk",
|
|
"echo 'PNGLIB = libpng.so' >> config.mk",
|
|
"echo 'ZLIB = libz.so' >> config.mk",
|
|
"echo 'JBIGLIB = /usr/lib/libjbig.a' >> config.mk",
|
|
"sed -i 's|misc|share/netpbm|' common.mk",
|
|
"sed -e 's|/sharedlink|/lib|' -e 's|/staticlink|/lib|' -i lib/Makefile",
|
|
"sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile",
|
|
]
|
|
sha256 = "709a98e871aeae892437274d68833c804dd41a4b8daf8fd978cac2782da4148a"
|
|
url = "https://downloads.sourceforge.net/project/netpbm/super_stable/$version/netpbm-$version.tgz"
|