void-packages/srcpkgs/pcc/template

24 lines
687 B
Bash

# Template file for 'pcc'
pkgname=pcc
version=1.1.0
revision=2
build_style=gnu-configure
configure_args="--enable-tls"
hostmakedepends="flex"
makedepends="pcc-libs"
depends="pcc-libs>=${version}"
short_desc="Portable C Compiler"
homepage="http://pcc.ludd.ltu.se/"
license="BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-$version.tgz"
checksum=d9e3fed84c767dcddefb6b1f854d5da8921f3f65d8bd02997743412f41474d64
only_for_archs="i686 x86_64"
pre_configure() {
sed -i '/GNUC_MINOR/s,3,1,g' cc/cc/cc.c cc/driver/platform.c
}
post_install() {
# Rename conflicting cpp.1 manpage.
mv ${DESTDIR}/usr/share/man/man1/{cpp,pcc-cpp}.1
}