aboutsummaryrefslogtreecommitdiffstats
path: root/math/pure-mpfr/Makefile
blob: 0230df15cf1965a13f793c1bfdbc4c4648d0f8a3 (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
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$

PORTNAME=   pure-mpfr
PORTVERSION=    0.5
CATEGORIES= math
MASTER_SITES=   https://bitbucket.org/purelang/pure-lang/downloads/
DIST_SUBDIR=    pure

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multiprecision floats for Pure

LICENSE=    LGPL3+
LICENSE_FILE=   ${WRKSRC}/COPYING.LESSER

DEPRECATED= Depends on expiring devel/llvm35
EXPIRATION_DATE=2019-08-31

USES=       pkgconfig pure
MAKE_ARGS=  libdir="${PREFIX}/lib"

PORTDOCS=   README
PORTEXAMPLES=   *
PLIST_FILES=    lib/pure/mpfr.pure \
        lib/pure/mpfr.so

OPTIONS_DEFINE= DOCS EXAMPLES

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pure/mpfr.so

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>