void-packages/srcpkgs/pcc/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

24 lines
684 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@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
}