1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/science/coordgenlibs/Makefile

35 lines
1.0 KiB
Makefile
Raw Normal View History

PORTNAME= coordgenlibs
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.3
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:testing compiler:c++11-lang localbase:ldflags
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= schrodinger
DATADIR= ${LOCALBASE}/share/coordgen
CMAKE_ON= COORDGEN_USE_MAEPARSER
CMAKE_OFF= COORDGEN_BUILD_TESTS COORDGEN_BUILD_EXAMPLE
CMAKE_TESTING_ON= 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>