aboutsummaryrefslogtreecommitdiffstats
path: root/science/harminv/Makefile
blob: 5dba0ecfc8a6c6c176eb8ef6b5739b788c6ef326 (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
# Created by: Stas Timokhin <devel@stasyan.com>
# $FreeBSD$

PORTNAME=   harminv
PORTVERSION=    1.3.1
PORTREVISION=   2
CATEGORIES= science
MASTER_SITES=   http://ab-initio.mit.edu/harminv/

MAINTAINER= devel@stasyan.com
COMMENT=    Solver of harmonic inversion

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_FORTRAN=    yes
USE_GCC=    yes
CPPFLAGS+=  -I${LOCALBASE}/include
LD_LIBRARY_PATH=    -L${LOCALBASE}/lib -L/usr/lib
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV+= LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
USE_LDCONFIG=   yes

MAN1=   harminv.1

LIB_DEPENDS+=   guile.21:${PORTSDIR}/lang/guile \
        blas.2:${PORTSDIR}/math/blas \
        lapack.4:${PORTSDIR}/math/lapack

NO_STAGE=   yes
post-patch:
    ${REINPLACE_CMD} -e 's#%%PKGDIR%%#${PREFIX}/libdata#g' \
        ${WRKSRC}/Makefile.in

.include <bsd.port.mk>