2011-02-24 12:17:13 +01:00
|
|
|
# Template file for 'pcc'
|
|
|
|
pkgname=pcc
|
2014-12-18 14:39:53 +01:00
|
|
|
version=1.1.0
|
2014-12-28 03:37:16 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-02-24 12:17:13 +01:00
|
|
|
configure_args="--enable-tls"
|
2014-12-18 14:39:53 +01:00
|
|
|
hostmakedepends="flex"
|
|
|
|
makedepends="pcc-libs>=${version}"
|
|
|
|
depends="pcc-libs>=${version}"
|
2011-02-24 12:17:13 +01:00
|
|
|
short_desc="Portable C Compiler"
|
2013-03-31 09:51:38 +02:00
|
|
|
homepage="http://pcc.ludd.ltu.se/"
|
2014-12-18 14:39:53 +01:00
|
|
|
license="BSD"
|
2011-02-24 12:17:13 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-14 11:13:30 +02:00
|
|
|
distfiles="http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-$version.tgz"
|
2014-12-18 14:39:53 +01:00
|
|
|
checksum=d9e3fed84c767dcddefb6b1f854d5da8921f3f65d8bd02997743412f41474d64
|
2014-08-27 18:07:27 +02:00
|
|
|
only_for_archs="i686 x86_64"
|
2011-02-24 12:17:13 +01:00
|
|
|
|
2014-12-28 03:37:16 +01:00
|
|
|
pre_configure() {
|
|
|
|
sed -i '/GNUC_MINOR/s,3,1,g' cc/cc/cc.c cc/driver/platform.c
|
|
|
|
}
|
2013-04-14 11:13:30 +02:00
|
|
|
post_install() {
|
2011-02-24 12:17:13 +01:00
|
|
|
# Rename conflicting cpp.1 manpage.
|
2014-12-18 14:39:53 +01:00
|
|
|
mv ${DESTDIR}/usr/share/man/man1/{cpp,pcc-cpp}.1
|
2011-02-24 12:17:13 +01:00
|
|
|
}
|