freebsd-ports/science/libxc/Makefile

34 lines
750 B
Makefile
Raw Normal View History

# Created by: Johannes Dieterich <dieterich@ogolem.org>
# $FreeBSD$
PORTNAME= libxc
PORTVERSION= 2.1.2
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>