aboutsummaryrefslogtreecommitdiff
path: root/science/libint/Makefile
blob: f04b13024f75e1c88a0774bd637277b10d137be3 (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
PORTNAME=	libint
DISTVERSIONPREFIX=	release-
DISTVERSION=	1-2-1-15
DISTVERSIONSUFFIX=	-gb349524
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Evaluate the integrals in modern atomic and molecular theory

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

PORTSCOUT=	limit:^1

USES=		autoreconf:build gmake libtool
USE_GITHUB=	yes
GH_ACCOUNT=	evaleev
USE_LDCONFIG=	yes
ALL_TARGET=	default

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared --with-cc-optflags="${CFLAGS}" \
		--with-cxx-optflags="${CXXFLAGS}"

OPTIONS_DEFINE=			STATIC # osa@ requested to keep static libs on 2018/08/28
OPTIONS_SUB=			yes
STATIC_CONFIGURE_ENABLE=	static

post-patch:
	@${REINPLACE_CMD} -e 's| -rpath|${LDFLAGS} -rpath|g' \
		${WRKSRC}/src/lib/MakeVars.in

pre-configure:
# Cannot run autoheader so cannot use autoreconf.
	@cd ${WRKSRC} && ${LOCALBASE}/bin/libtoolize -c -f \
		&& ${LOCALBASE}/bin/aclocal && ${LOCALBASE}/bin/autoconf

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>