pkgsrc/devel/flatbuffers/Makefile

23 lines
639 B
Makefile

# $NetBSD: Makefile,v 1.5 2020/05/09 13:46:59 mef Exp $
DISTNAME= flatbuffers-1.9.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= https://google.github.io/flatbuffers/
COMMENT= Memory efficient serialization library
LICENSE= apache-2.0
USE_CMAKE= yes
USE_LANGUAGES= c c++11
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DFLATBUFFERS_BUILD_SHAREDLIB=ON
post-install:
${RM} -f ${DESTDIR}${PREFIX}/include/flatbuffers/flatbuffers.h.orig
${RM} -f ${DESTDIR}${PREFIX}/include/flatbuffers/reflection.h.orig
.include "../../mk/bsd.pkg.mk"