31 lines
949 B
Makefile
31 lines
949 B
Makefile
# $NetBSD: Makefile,v 1.3 2020/12/29 14:07:34 nia Exp $
|
|
|
|
PKGNAME= deepstate-libfuzzer-${VERSION}
|
|
|
|
USE_LANGUAGES= c99 c++
|
|
USE_CMAKE= yes
|
|
AUTO_MKDIRS= yes
|
|
|
|
DEPENDS+= deepstate>=${VERSION}:../../devel/deepstate
|
|
BUILD_DEPENDS+= clang-[0-9]*:../../lang/clang
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
|
|
|
|
CONFIGURE_DIRS= build
|
|
CMAKE_ARG_PATH= ${WRKSRC}
|
|
|
|
CMAKE_ARGS+= -DPYTHON=${PREFIX}/bin/python${PYVERSSUFFIX}
|
|
CMAKE_ARGS+= -DDEEPSTATE_LIBFUZZER=ON
|
|
CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CLANGBASE:Q}/bin/clang
|
|
CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CLANGBASE:Q}/bin/clang++
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${MKDIR} ${CONFIGURE_DIRS}
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/build/libdeepstate_LF.a ${DESTDIR}${PREFIX}/lib
|
|
|
|
.include "../../mk/compiler/clang.mk"
|
|
.include "../../lang/compiler-rt/buildlink3.mk"
|
|
.include "../../devel/deepstate/Makefile.common"
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|