void-packages/srcpkgs/pcc/template
Juan RP dd14562d14 pcc: raise gcc compat minor version to 4.1 to make it work with glibc.
Otherwise glibc headers think that it's gcc-4.3 and supports some
attributes that aren't really supported.
2014-12-28 03:38:41 +01:00

24 lines
696 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>=${version}"
depends="pcc-libs>=${version}"
short_desc="Portable C Compiler"
homepage="http://pcc.ludd.ltu.se/"
license="BSD"
maintainer="Juan RP <xtraeme@gmail.com>"
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
}