# Created by: Alonso Cardenas Marquez # $FreeBSD: head/devel/dsymbol/Makefile 494900 2019-03-07 06:16:17Z acm $ PORTNAME= dsymbol PORTVERSION= 0.6.2 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= acm@FreeBSD.org COMMENT= Symbol lookup support for libdparse LICENSE= BSL BUILD_DEPENDS= ldmd2:lang/ldc \ dub:devel/dub \ ${LOCALBASE}/lib/d/libmir-core.a:devel/mir-core \ ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse \ ${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers \ ${LOCALBASE}/lib/d/libstdx-allocator.a:devel/stdx-allocator USES= pkgconfig USE_GITHUB= yes GH_ACCOUNT= dlang-community DUB_CMD= ${LOCALBASE}/bin/dub build --build=release D_INCLUDE_DIR= ${PREFIX}/include/d D_LIB_DIR= ${PREFIX}/lib/d post-patch: ${REINPLACE_CMD} -e '7,11d' ${WRKSRC}/dub.json ${REINPLACE_CMD} -e 's@cache.clear@cache.destroy@g' \ ${WRKSRC}/src/dsymbol/modulecache.d do-build: @cd ${WRKSRC} && ${DUB_CMD} do-install: @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} @${MKDIR} ${STAGEDIR}${D_LIB_DIR} ${INSTALL_DATA} ${WRKSRC}/libdsymbol.a ${STAGEDIR}${D_LIB_DIR} cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" .include