# Template file for 'tcc' pkgname=tcc version=0.9.27 revision=4 _gitrev=a4997bf3d952f904bce824ee3e8f3e12e8524071 wrksrc=tinycc-${_gitrev:0:7} build_style=gnu-configure make_check_target="test" hostmakedepends="perl" short_desc="Tiny C Compiler" maintainer="Juan RP " 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 *-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} }