void-packages/srcpkgs/tcc/template
2020-01-02 18:20:22 +01:00

35 lines
924 B
Bash

# Template file for 'tcc'
pkgname=tcc
_distver=0.9.27
_voidver=20191027.1
version=${_distver}.${_voidver}
revision=1
_gitrev=a4997bf3d952f904bce824ee3e8f3e12e8524071
wrksrc=tinycc-${_gitrev:0:7}
build_style=gnu-configure
make_check_target="test"
hostmakedepends="perl"
short_desc="Tiny C Compiler"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1"
homepage="http://bellard.org/tcc/"
distfiles="http://repo.or.cz/tinycc.git/snapshot/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=24b34f5ff46694cc3da7db5df6f6180e8cba908e6e3691577f01dd17f4f1a6b4
nopie=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="ftbfs";;
*-musl) configure_args="--config-musl";;
esac
pre_configure() {
# Replace lib64 with lib
sed -i configure -e "s;lib64;lib;g"
}
do_build() {
# Can't use (many of) our CFLAGS or LDFLAGS
# because TCC is bootstrapped with the same flags
make CFLAGS= LDFLAGS= ${makejobs}
}