aboutsummaryrefslogtreecommitdiffstats
path: root/math/ufc/Makefile
blob: e19453f6e2299ac4f019ca40fb14ba3fe867d9c7 (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
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$

PORTNAME=   ufc
PORTVERSION=    ${MMVERSION}.0
PORTREVISION=   1
CATEGORIES= math python
MASTER_SITES=   http://launchpad.net/${PORTNAME}/${MMVERSION}.x/${PORTVERSION}/+download/

MAINTAINER= bacon4000@gmail.com
COMMENT=    Unified framework for finite element assembly

BUILD_DEPENDS=  swig2.0:devel/swig20
LIB_DEPENDS=    libboost_math_c99.so:devel/boost-libs

# LICENSE=  public domain

USES=       cmake python:2

CMAKE_ARGS+=    -DUFC_PKGCONFIG_DIR=${PREFIX}/libdata/pkgconfig

MMVERSION=  2.2

post-patch:
    ${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|g' \
        ${WRKSRC}/CMakeLists.txt
    ${REINPLACE_CMD} -i '' -e 's|os.path.join(os.path.sep, "usr")|os.path.normpath("${PREFIX}")|' ${WRKSRC}/src/utils/python/ufc_utils/build.py

.include <bsd.port.mk>