summaryrefslogtreecommitdiff
path: root/science/coordgenlibs/Makefile
blob: 16605f3df2a63671def267f6277b02a2b8ba9e76 (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

PORTNAME=	coordgenlibs
DISTVERSIONPREFIX=	v
DISTVERSION=	1.4.2
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Schrodinger-developed 2D coordinate generation

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/include/boost/dynamic_bitset.hpp:devel/boost-libs
LIB_DEPENDS=	libmaeparser.so:science/maeparser

USES=		cmake compiler:c++11-lang localbase:ldflags
USE_GITHUB=	yes
GH_ACCOUNT=	schrodinger
USE_LDCONFIG=	yes

DATADIR=	${LOCALBASE}/share/coordgen

CMAKE_ON=	COORDGEN_USE_MAEPARSER
CMAKE_OFF=	COORDGEN_BUILD_TESTS COORDGEN_BUILD_EXAMPLE

post-patch: # see https://github.com/schrodinger/coordgenlibs/issues/64
	@${REINPLACE_CMD} 's|return getTempFileProjDir() + suffix;|return "${DATADIR}/templates.mae";|' ${WRKSRC}/sketcherMinimizer.cpp

post-install: # see https://github.com/schrodinger/coordgenlibs/issues/64
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/templates.mae ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>