1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/lang/pcc/Makefile
2020-09-19 16:55:18 +00:00

56 lines
1.5 KiB
Makefile

# Created by: David O'Brien <obrien@NUXI.org>
# $FreeBSD$
PORTNAME= pcc
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://pcc.ludd.ltu.se/pub/pcc-releases/ \
http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/ \
ftp://226.net120.skekraft.net/pcc-releases/
MAINTAINER= joel@FreeBSD.org
COMMENT= Portable C Compiler
LICENSE= BSDCOMPATIBLE BSD2CLAUSE BSD3CLAUSE
LICENSE_COMB= multi
LICENSE_NAME_BSDCOMPATIBLE= BSD-style compatible licenses
LICENSE_TEXT_BSDCOMPATIBLE= The license: BSDCOMPATIBLE (${LICENSE_NAME_BSDCOMPATIBLE}),\
please read from the web: http://pcc.ludd.ltu.se/licenses/
LICENSE_PERMS_BSDCOMPATIBLE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= pcc-libs>=${PORTVERSION}:devel/pcc-libs
ONLY_FOR_ARCHS= i386 amd64
USES= gmake tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ENV= YACC=${YACC}
PLIST_FILES= bin/pcc bin/pcpp \
libexec/ccom libexec/cxxcom libexec/cpp \
man/man1/ccom.1.gz man/man1/cpp.1.gz \
man/man1/pcc.1.gz
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= THREADS
OPTIONS_DEFAULT= THREADS
THREADS_DESC= Enable Thread-local storage (TLS)
THREADS_CONFIGURE_ENABLE= tls
.include <bsd.port.pre.mk>
post-patch:
# Don't make empty directories, which created by devel/pcc-libs port
@${REINPLACE_CMD} -e '/mkdir -p.*PCC.*DIR/d' \
${WRKSRC}/cc/cc/Makefile.in
.if ${OPSYS} == FreeBSD
@${REINPLACE_CMD} -e '/targmach=amd64/s/x86_64/amd64/' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,\" MKS(TARGOSVER),${OSREL:R}\",' \
${WRKSRC}/os/freebsd/ccconfig.h
.endif
.include <bsd.port.post.mk>