forked from Lainports/freebsd-ports
Upstream now provides msgpack as two separate distributions: a C version with the traditional libmsgpackc.so library, and a header-only C++ version. devel/msgpack is now devel/msgpack-c and devel/msgpack-cxx, and its consumers now point to one or both. Note that it is entirely possible for both to be required. PORTREVISION bump for all consumers. In my testing, it's not clear that the MSGPACK option in the mariadb ports actually does anything. I don't think mariadb is actually linking against msgpack, even before this commit.
37 lines
975 B
Makefile
37 lines
975 B
Makefile
PORTNAME= mmtf-cpp
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= science biology
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C++ MMTF format API, decoder and encoder, for molecular structures
|
|
WWW= https://mmtf.rcsb.org/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/include/msgpack.hpp:devel/msgpack-cxx
|
|
TEST_DEPENDS= catch>0:devel/catch
|
|
|
|
USES= cmake:testing compiler:c++11-lang localbase:ldflags
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rcsb
|
|
GH_TUPLE= rcsb:mmtf:8c88834:x/submodules/mmtf_spec
|
|
|
|
CMAKE_TESTING_ON= mmtf_build_local BUILD_TESTS
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
post-patch: # correct paths of test data to be accessible to the test executable
|
|
@${REINPLACE_CMD} -e '\
|
|
s|\.\./submodules/mmtf_spec|${WRKSRC}/submodules/mmtf_spec|g; \
|
|
s|\.\./temporary_test_data|${WRKSRC}/temporary_test_data|g' \
|
|
${WRKSRC}/tests/mmtf_tests.cpp
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}
|
|
|
|
.include <bsd.port.mk>
|