summaryrefslogtreecommitdiff
path: root/devel/ccons/Makefile
blob: 658e55a45178873dbb213ad91855eda4c45c75ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ccons
PORTVERSION=	r251
PORTREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	danilo@FreeBSD.org
COMMENT=	Interactive Console for the C Programming Language

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	llvm-config33:${PORTSDIR}/devel/llvm33 \
		clang++33:${PORTSDIR}/lang/clang33
RUN_DEPENDS=	clang++33:${PORTSDIR}/lang/clang33
LIB_DEPENDS=	libncurses.so:${PORTSDIR}/devel/ncurses

ONLY_FOR_ARCHS=	i386 amd64
USES=		cmake libedit
CMAKE_ARGS+=	-DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config33
CXXFLAGS+=	-fno-rtti

SUB_FILES=	ccons.sh
PLIST_FILES=	bin/ccons man/man1/ccons.1.gz \
		bin/ccons-bin

WRKSRC=		${WRKDIR}/ccons

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 1000054
CXXFLAGS+=	-stdlib=libc++
.endif

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/ccons ${STAGEDIR}${PREFIX}/bin/ccons-bin
	@${INSTALL_SCRIPT} ${WRKDIR}/ccons.sh ${STAGEDIR}${PREFIX}/bin/ccons
	@${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ccons.1

.include <bsd.port.post.mk>