summaryrefslogtreecommitdiff
path: root/science/libxc/Makefile
blob: 4c7359df2714c565dffdd5d02f4c0f25a0fd3673 (plain)
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
# Created by: Johannes Dieterich <dieterich@ogolem.org>
# $FreeBSD$

PORTNAME=	libxc
PORTVERSION=	3.0.0
CATEGORIES=	science
MASTER_SITES=	http://www.tddft.org/programs/octopus/download/libxc/

MAINTAINER=	dieterich@ogolem.org
COMMENT=	Library of exchange-correlation functionals for DFT

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

USES=		fortran gmake libtool perl5
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared
USE_LDCONFIG=	yes

INSTALL_TARGET=	install-strip

post-patch:
	@${REINPLACE_CMD} -e '/^pkgconfigdir =/s,libdir),prefix)/libdata,' \
		${WRKSRC}/build/Makefile.in

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000034
LIB_DEPENDS+=	libml.so:math/ldouble
LDFLAGS+=	-lml
.endif

.include <bsd.port.post.mk>