1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/lang/pcc/Makefile
Kurt Jaeger 697a609b23 lang/pcc: 1.0.0 -> 1.1.0
- Add RUN_DEPENDS on devel/pcc-libs port on the same version
- Adapt PLIST_FILES
- Add THREADS option to "Enable Thread-local storage (TLS)"
- Add new patch for ${WRKSRC}/cc/cc/cc.c file, related to inverted
  MULTIARCH_PATH define check
- Replace some static patches with sed patches
- Remove unneeded patches for this version

PR:		196642
Submitted by:	Sender Ghost <lightside@gmx.com>
Approved by:	joel (maintainer)
2016-06-13 19:53:48 +00:00

55 lines
1.5 KiB
Makefile

# Created by: David O'Brien <obrien@NUXI.org>
# $FreeBSD$
PORTNAME= pcc
PORTVERSION= 1.1.0
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>