2012-01-26 12:08:11 +00:00
|
|
|
# New ports collection makefile for: clay
|
|
|
|
# Date created: 2012-01-24
|
|
|
|
# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= clay
|
2012-07-25 05:13:12 +00:00
|
|
|
PORTVERSION= 0.1.2
|
2012-01-26 12:08:11 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= https://github.com/jckarter/${PORTNAME}/tarball/v${PORTVERSION}/
|
|
|
|
DISTNAME= jckarter-${PORTNAME}-v${PORTVERSION}-0-g${GITVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= jyyou@cs.nctu.edu.tw
|
|
|
|
COMMENT= A language designed for generic programming
|
|
|
|
|
|
|
|
LICENSE= BSD
|
|
|
|
|
2012-07-21 18:03:59 +00:00
|
|
|
BUILD_DEPENDS= llvm>=3.1:${PORTSDIR}/devel/llvm
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= BINDGEN
|
|
|
|
BINDGEN_DESC= Build with binding generator
|
|
|
|
OPTIONS_DEFAULT= BINDGEN
|
2012-01-26 12:08:11 +00:00
|
|
|
|
2012-07-25 05:13:12 +00:00
|
|
|
GITVERSION= 751ebe3
|
2012-01-26 12:08:11 +00:00
|
|
|
FETCH_ARGS= -pRr
|
|
|
|
WRKSRC= ${WRKDIR}/jckarter-${PORTNAME}-${GITVERSION}
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
|
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_ARGS+= -G "Unix Makefiles" -DBUILD_FIX=false
|
|
|
|
|
2012-02-02 22:22:06 +00:00
|
|
|
CC= clang
|
|
|
|
CXX= clang++
|
2012-03-02 16:10:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2012-02-02 22:22:06 +00:00
|
|
|
|
2012-07-21 18:03:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MBINDGEN}
|
|
|
|
PLIST_SUB+= BINDGEN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= BINDGEN="@comment "
|
|
|
|
CMAKE_ARGS+= -DBUILD_BINDGEN=false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 900044 || ${PORT_OPTIONS:MBINDGEN}
|
|
|
|
BUILD_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang
|
|
|
|
RUN_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang
|
2012-01-26 12:08:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's|install(DIRECTORY doc/ DESTINATION share/doc/clay)||' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|