# Template file for 'pcc' pkgname=pcc _snapshot=20190420 _distver=1.1.0 version=${_distver}.${_snapshot} revision=1 wrksrc=${pkgname}-${_distver}.BETA build_style=gnu-configure configure_args="--enable-tls --enable-native" hostmakedepends="flex" makedepends="pcc-libs" depends="binutils pcc-libs>=${version}" short_desc="Portable C Compiler" maintainer="Orphaned " license="BSD-2-clause" homepage="http://pcc.ludd.ltu.se/" distfiles="http://pcc.ludd.ltu.se/ftp/pub/pcc-beta/pcc-${_distver}.BETA-${_snapshot}.tgz" checksum=a114dfca04b8b0559ea5d67b87d2d0fcb2bae2b4d9b9ba16ebc27960b921c812 nocross=1 CFLAGS="-fcommon" pre_configure() { vsed -i '/GNUC_MINOR/s,3,1,g' cc/cc/cc.c cc/driver/platform.c } pre_build() { cp common/*.[ch] mip } post_install() { sed -n '2,27p' arch/i386/code.c > LICENSE vlicense LICENSE # Rename conflicting cpp.1 manpage. mv ${DESTDIR}/usr/share/man/man1/{cpp,pcc-cpp}.1 }