mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
e72ecdc34d
PRs: ports/114427, ports/115694 (Scot Hetzel and cokane@)
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# New ports collection makefile for: gccxml
|
|
# Date created: 2003-07-16
|
|
# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gccxml
|
|
PORTVERSION= 0.6.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.gccxml.org/files/v0.6/
|
|
|
|
MAINTAINER= vs@FreeBSD.org
|
|
COMMENT= XML output extension to GCC
|
|
|
|
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
|
|
|
|
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-build
|
|
|
|
MAN1= gccxml.1
|
|
|
|
PLIST_SUB= PORTVERSION=0.6
|
|
|
|
post-extract:
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
do-configure:
|
|
${CP} ${TEMPLATES}/config.guess ${WRKSRC}/../gccxml-0.6.0/GCC/
|
|
${CP} ${TEMPLATES}/config.sub ${WRKSRC}/../gccxml-0.6.0/GCC/
|
|
${REINPLACE_CMD} -e "s,x86_64,amd64," \
|
|
${WRKSRC}/../gccxml-0.6.0/GCC/gcc/config.gcc
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} \
|
|
${LOCALBASE}/bin/cmake ../${DISTNAME} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
|
|
-DGCCXML_MAN_DIR:PATH="/man"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "alpha"
|
|
BROKEN= Build fails on alpha
|
|
.elif ${OSVERSION} >= 700000
|
|
# GCC-XML has some constructs that GCC 4.2 does not like. Namely,
|
|
# the use of casted-pointer-dereferences as an lvalue to post-increment
|
|
# operations.
|
|
USE_GCC= 3.4
|
|
CONFIGURE_ENV+= CC=${LOCALBASE}/bin/gcc34 \
|
|
CPP="${CC} -E" \
|
|
CXX=${LOCALBASE}/bin/g++34
|
|
MAKE_ENV+= CC=${LOCALBASE}/bin/gcc34 \
|
|
CPP="${CC} -E" \
|
|
CXX=${LOCALBASE}/bin/g++34
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|