aboutsummaryrefslogtreecommitdiffstats
path: root/math/muparser/Makefile
blob: dbb0772fc80a7c566a9bc0bc6c4e304b74a2cf08 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$

PORTNAME=   muparser
PORTVERSION=    2.2.5
DISTVERSIONPREFIX=  v
CATEGORIES= math devel

MAINTAINER= nivit@FreeBSD.org
COMMENT=    Mathematical expressions parser library written in C++

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/License.txt

USE_GITHUB= yes
GH_ACCOUNT= beltoforion

USES=       dos2unix pathfix
USE_LDCONFIG=   yes

ALL_TARGET= lib
GNU_CONFIGURE=  yes
# otherwise it fails to build when the EXAMPLES option is ON
MAKE_JOBS_UNSAFE=   yes

OPTIONS_DEFINE=     DOXYGEN EXAMPLES

DOXYGEN_BUILD_DEPENDS=  doxygen:devel/doxygen \
            dot:graphics/graphviz
DOXYGEN_ALL_TARGET= documentation
DOXYGEN_PORTDOCS=   *
# PORTDOCS macro won't work if NOPORTDOCS is defined or if DOCS is disabled
DOXYGEN_IMPLIES=    DOCS

EXAMPLES_CONFIGURE_ENABLE=  samples
EXAMPLES_ALL_TARGET=    samples

post-patch:
    @${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
        ${WRKSRC}/Makefile.in

post-install-DOXYGEN-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/docs/html && \
    ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/samples/example1 && \
    ${INSTALL_PROGRAM} example1 ${STAGEDIR}${EXAMPLESDIR} && \
    ${INSTALL_DATA} example1.cpp ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>