void-packages/srcpkgs/gatling/template
Jürgen Buchmüller d86d2ac159 gatling: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:32 +02:00

27 lines
778 B
Bash

# Template file for 'gatling'
pkgname=gatling
version=0.15
revision=9
build_style=gnu-makefile
makedepends="libowfat libressl-devel zlib-devel"
short_desc="High performance web server"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2"
homepage="http://www.fefe.de/$pkgname/"
distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
checksum=6fa329d0ced0c80deb8dde5460e9d9e984bee94f265043d7fdec0e253dce9aa4
make_build_target="gatling dl getlinks"
make_install_args="prefix=/usr MANDIR=/usr/share/man"
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
}