29 lines
827 B
Bash
29 lines
827 B
Bash
# Template file for 'tcc'
|
|
pkgname=tcc
|
|
version=0.9.27.20221203
|
|
revision=1
|
|
_gitrev=ab39d34dde9212c36dda2718bec4735fc0428636
|
|
build_style=configure
|
|
configure_args="--prefix=/usr --libdir=\${prefix}/lib$XBPS_TARGET_WORDSIZE"
|
|
make_check_target="test"
|
|
hostmakedepends="perl which"
|
|
short_desc="Tiny C Compiler"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://bellard.org/tcc/"
|
|
distfiles="http://repo.or.cz/tinycc.git/snapshot/${_gitrev}.tar.gz"
|
|
checksum=28c745f26754451f64b0b21824fa4f7f9113bafc28acd41efb961d5f3224fb70
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*) broken="ftbfs";;
|
|
*-musl) configure_args+=" --config-musl";;
|
|
esac
|
|
|
|
do_build() {
|
|
# Can't use (many of) our CFLAGS or LDFLAGS
|
|
# because TCC is bootstrapped with the same flags
|
|
make CFLAGS= LDFLAGS= ${makejobs}
|
|
}
|