aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ccons/Makefile
blob: 28d67b5dbbe1196bfe021b4706417f2b22d37975 (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
44
45
46
47
48
# $FreeBSD$

PORTNAME=   ccons
PORTVERSION=    r236
CATEGORIES= devel
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= danilogondolfo@gmail.com
COMMENT=    Interactive Console for the C Programming Language

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${LOCALBASE}/bin/llvm-config:${PORTSDIR}/devel/llvm \
        ${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang \
        ${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils
LIB_DEPENDS=    ncurses:${PORTSDIR}/devel/ncurses

ONLY_FOR_ARCHS= i386 amd64
USE_CMAKE=  yes
CMAKE_ARGS+=    -DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config

CXX=    ${LOCALBASE}/bin/clang++
CXXFLAGS+=  -fno-rtti
LDFLAGS+=   -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
        -lclangCodeGen -lclangParse -lclangSema -lclangStaticAnalyzerCheckers \
        -lclangStaticAnalyzerCore -lclangAnalysis -lclang -lclangAST -lclangLex \
        -lclangBasic -ledit -lm ${PTHREAD_LIBS}

PLIST_FILES=    bin/ccons

WRKSRC= ${WRKDIR}/ccons

MAKE_JOBS_SAFE= yes

MAN1=   ccons.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 900044
BROKEN= ccons does not work on FreeBSD < 9.0-RELEASE
.endif

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

.include <bsd.port.post.mk>