1
0
Fork 0
frozenports/devel/libbsd/SCHEMATIC

27 lines
1.1 KiB
Bash

#!/bin/sh
name="libbsd"
short_desc="BSD utility functions"
desc="libbsd provides useful functions commonly found on BSD systems, and lacking on others like GNU systems,
thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and
over again on each project."
category="devel"
version="0.11.8"
maintainer="ffqq@danwin1210.de"
www="https://libbsd.freedesktop.org/wiki/"
master_site="https://libbsd.freedesktop.org/releases"
source_name="$name-$version.tar.xz"
license_logic="single" # accepted values: single, and, or
licenses=("BSD-3-CLAUSE")
build_dependencies=("devel/gmake" "lang/gcc" "devel/libmd")
run_dependencies=("system/glibc" "devel/libmd")
build_process() {
cd $name-$version
./configure --prefix=/usr
make -j$(nproc)
make DESTDIR="$TAMANDUA_STAGE_DIR" install
# libbsd.pc is to be deprecated, link libbsd-overlay.pc to libbsd.pc for compat
rm -f $TAMANDUA_STAGE_DIR/usr/lib/pkgconfig/libbsd.pc
ln -s /usr/lib/pkgconfig/libbsd-overlay.pc $TAMANDUA_STAGE_DIR/usr/lib/pkgconfig/libbsd.pc
}