2013-07-08 11:50:41 +00:00
|
|
|
# Created by: Zhihao Yuan <lichray@gmail.com>
|
2011-03-21 06:14:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pure
|
2013-11-06 22:50:21 +00:00
|
|
|
PORTVERSION= 0.58
|
2011-03-21 06:14:38 +00:00
|
|
|
CATEGORIES= lang
|
2013-11-06 22:50:21 +00:00
|
|
|
MASTER_SITES= https://cdn.bitbucket.org/purelang/pure-lang/downloads/
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-docs-${PORTVERSION}.tar.gz
|
|
|
|
DIST_SUBDIR= pure
|
2011-03-21 06:14:38 +00:00
|
|
|
|
|
|
|
MAINTAINER= lichray@gmail.com
|
2013-08-09 13:43:59 +00:00
|
|
|
COMMENT= Modern-style functional programming language
|
2011-03-21 06:14:38 +00:00
|
|
|
|
2012-06-06 22:04:55 +00:00
|
|
|
LICENSE= GPLv3 LGPL3
|
|
|
|
LICENSE_COMB= dual
|
2012-01-26 11:18:51 +00:00
|
|
|
|
2013-08-09 13:43:59 +00:00
|
|
|
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
|
|
|
|
libmpfr.so:${PORTSDIR}/math/mpfr
|
2013-11-06 22:50:21 +00:00
|
|
|
BUILD_DEPENDS= llvm>=3.2:${PORTSDIR}/devel/llvm
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2011-03-21 06:14:38 +00:00
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
USES= gmake iconv pathfix pkgconfig
|
2011-04-09 19:21:47 +00:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2011-03-21 06:14:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-11-06 22:50:21 +00:00
|
|
|
CONFIGURE_ARGS= --with-libgmp-prefix=${LOCALBASE} --enable-release
|
2012-01-26 20:12:37 +00:00
|
|
|
USE_LDCONFIG= yes
|
2011-03-21 06:14:38 +00:00
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
MAKE_ARGS+= prefix=${PREFIX} mandir=${PREFIX}/man \
|
|
|
|
CC=${CC} CFLAGS="${CFLAGS}" \
|
|
|
|
CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
CPPFLAGS+=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS+=-L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EMACS ETC EXAMPLES
|
2011-03-21 06:14:38 +00:00
|
|
|
|
2012-10-10 21:02:04 +00:00
|
|
|
EMACS_DESC= Compile pure-mode.el with Emacs
|
2013-11-06 22:50:21 +00:00
|
|
|
ETC_DESC= Copy Pure syntax highlighting to ${DATADIR}/etc
|
2011-04-09 19:21:47 +00:00
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
OPTIONS_DEFAULT= ETC
|
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
EMACS_CONFIGURE_ENABLE= --with-elisp
|
|
|
|
EMACS_CONFIGURE_DISABLE= --without-elisp
|
2013-08-09 13:43:59 +00:00
|
|
|
|
2011-03-21 06:14:38 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-06-06 22:04:55 +00:00
|
|
|
.if ${PORT_OPTIONS:MEMACS}
|
2011-04-09 19:21:47 +00:00
|
|
|
USE_EMACS= yes
|
|
|
|
MAKE_ARGS+= emacs_prefix=${PREFIX}
|
2013-11-06 22:50:21 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 900014
|
|
|
|
SUB_LIST+= NOCLANG=""
|
2011-04-09 19:21:47 +00:00
|
|
|
.else
|
2013-11-06 22:50:21 +00:00
|
|
|
SUB_LIST+= NOCLANG="@comment "
|
2011-04-09 19:21:47 +00:00
|
|
|
.endif
|
|
|
|
|
2012-03-22 13:18:26 +00:00
|
|
|
# automatically disable readline support if editline support is available
|
|
|
|
.if exists(/usr/include/edit/readline/readline.h)
|
|
|
|
CONFIGURE_ARGS+= --without-readline
|
|
|
|
.endif
|
|
|
|
|
2011-03-21 06:14:38 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd
|
|
|
|
.endif
|
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:METC}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/etc/
|
|
|
|
@(cd ${WRKSRC} && ${RM} -f etc/*.in && ${COPYTREE_SHARE} etc/ ${STAGEDIR}${DATADIR})
|
2011-03-21 06:14:38 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKDIR}/${PORTNAME}-docs-${PORTVERSION} && ${RM} -f Makefile && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
${LN} -sf ${DOCSDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/docs
|
2012-06-06 22:04:55 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2011-03-21 06:14:38 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-06 22:50:21 +00:00
|
|
|
.include <bsd.port.mk>
|