freebsd-ports/devel/ccons/Makefile
Danilo Egea Gondolfo 7fbbdd20b6 - Update from r243 to r251
- Change clang dependence to clang33
- Change maintainer email to @FreeBSD.org
- Add "Created by" line to header
- Simplify BUILD_DEPENDS
- Convert LIB_DEPENDS to new syntax
- Simplify LDFLAGS
- Use libc++ on CURRENT
- Add a patch to insert an necessary header
- Add stage support

Approved by:	wg / culot (mentors, implicit)
2013-10-05 03:26:09 +00:00

45 lines
1 KiB
Makefile

# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$
PORTNAME= ccons
PORTVERSION= r251
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
LIB_DEPENDS= libncurses.so:${PORTSDIR}/devel/ncurses
ONLY_FOR_ARCHS= i386 amd64
USES= cmake
CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config33
CXXFLAGS+= -fno-rtti
LDFLAGS+= -lclang
CXX= clang++33
CC= clang33
PLIST_FILES= bin/ccons man/man1/ccons.1.gz
WRKSRC= ${WRKDIR}/ccons
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 1000054
CXXFLAGS+= -stdlib=libc++
.endif
.if ${OSVERSION} < 900044
BROKEN= ccons does not work on FreeBSD < 9.0-RELEASE
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/ccons ${STAGEDIR}${PREFIX}/bin/ccons
@${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ccons.1
.include <bsd.port.post.mk>