31 lines
849 B
Bash
31 lines
849 B
Bash
# Template file for 'gatling'
|
|
pkgname=gatling
|
|
version=0.16
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
make_build_target="gatling dl getlinks"
|
|
make_install_args="MANDIR=/usr/share/man"
|
|
makedepends="libowfat openssl-devel zlib-devel"
|
|
short_desc="High performance web server"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.fefe.de/gatling"
|
|
distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
|
|
checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
|
|
|
|
pre_build() {
|
|
vsed -i GNUmakefile \
|
|
-e "s;^CFLAGS=.*;CFLAGS=${CFLAGS};" \
|
|
-e "s;\$(CC) \$(LDFLAGS);\$(CC) \$(CFLAGS) \$(LDFLAGS);"
|
|
}
|
|
|
|
pre_install() {
|
|
vmkdir usr/share/man/man1
|
|
}
|