1
0
Fork 0
frozenports/archivers/zlib/SCHEMATIC

34 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-01-22 10:46:08 +00:00
#!/bin/sh
name="zlib"
short_desc="A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
desc="zlib is designed to be a free, general-purpose, legally unencumbered -- that is,
not covered by any patents -- lossless data-compression library for use on
virtually any computer hardware and operating system. The zlib data format is
itself portable across platforms. Unlike the LZW compression method used in Unix
compress(1) and in the GIF image format, the compression method currently used
in zlib essentially never expands the data. (LZW can double or triple the file
size in extreme cases.) zlib's memory footprint is also independent of the input
data and can be reduced, if necessary, at some cost in compression.
WWW: http://zlib.net/"
category="archivers"
version="1.3"
maintainer="ffqq@danwin1210.de"
www="http://zlib.net"
master_site="http://zlib.net"
source_name="$name-$version.tar.xz"
license_logic="or" # accepted values: single, and, or
licenses=("zlib" "libpng")
build_dependencies=("lang/gcc" "devel/gmake")
run_dependencies=("system/glibc")
build_process() {
cd $name-$version || exit 1
./configure --prefix=/usr || exit 1
make -j$(nproc)
make DESTDIR="$TAMANDUA_STAGE_DIR" install
ln -s /usr/lib/libz.so.$VERSION $TAMANDUA_STAGE_DIR/usr/lib/libz.so.1
rm -fv $TAMANDUA_STAGE_DIR/usr/lib/libz.a
}