1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/lang/pure/Makefile
Wen Heping 250a152ffc Pure is a modern-style functional programming language based on term
rewriting. It offers equational definitions with pattern matching, full
symbolic rewriting capabilities, dynamic typing, eager and lazy evaluation,
lexical closures, built-in list and matrix support and an easy-to-use C
interface. The interpreter uses LLVM as a backend to JIT-compile Pure
programs to fast native code.

WWW:    https://code.google.com/p/pure-lang/

PR:		ports/155647
Submitted by:	Zhihao Yuan <lichray@gmail.com>
2011-03-21 06:14:38 +00:00

77 lines
1.6 KiB
Makefile

# New ports collection makefile for: pure
# Date created: 2011-03-17
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure
PORTVERSION= 0.46
CATEGORIES= lang
MASTER_SITES= http://pure-lang.googlecode.com/files/
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-docs-${PORTVERSION}.tar.gz
MAINTAINER= lichray@gmail.com
COMMENT= A modern-style functional programming language
LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp
BUILD_DEPENDS+= llvm>=2.6:${PORTSDIR}/devel/llvm
RUN_DEPENDS+= llvm>=2.6:${PORTSDIR}/devel/llvm
MAN1= pure.1
LICENSE= LGPL3
SUB_FILES= pkg-message
USE_GCC= 4.2+
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --with-libgmp-prefix=${LOCALBASE} --enable-release
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
CONFIGURE_TARGET= x86_64-portbld-freebsd
.endif
PORTDATA= *
PORTEXAMPLES= *
PORTDOCS= *
.if !defined(NOPORTDATA)
SUB_LIST+= ETC=""
.else
SUB_LIST+= ETC="@comment "
.endif
.if !defined(NOPORTDOCS)
PLIST_SUB+= DOCS=""
.else
PLIST_SUB+= DOCS="@comment "
.endif
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDATA)
@${MKDIR} ${DATADIR}/etc/
(cd ${WRKSRC} && ${COPYTREE_SHARE} etc/ ${DATADIR}/)
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKDIR}/${PORTNAME}-docs-${PORTVERSION} && ${RM} -f Makefile && ${COPYTREE_SHARE} \* ${DOCSDIR})
${LN} -fs ${DOCSDIR} ${PREFIX}/lib/${PORTNAME}/docs
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>