# $FreeBSD: head/devel/isfreedesktop/Makefile 494907 2019-03-07 06:26:39Z acm $ PORTNAME= isfreedesktop PORTVERSION= 0.1.1 PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= acm@FreeBSD.org COMMENT= D programming to test if target platform is freedesktop LICENSE= BSL BUILD_DEPENDS= ldmd2:lang/ldc \ dub:devel/dub USE_GITHUB= yes GH_ACCOUNT= FreeSlave DUB_CMD= ${LOCALBASE}/bin/dub build --build=release D_INCLUDE_DIR= ${PREFIX}/include/d D_LIB_DIR= ${PREFIX}/lib/d do-build: @cd ${WRKSRC} && ${DUB_CMD} do-install: @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} @${MKDIR} ${STAGEDIR}${D_LIB_DIR} ${INSTALL_DATA} ${WRKSRC}/lib/libisfreedesktop.a ${STAGEDIR}${D_LIB_DIR} cd ${WRKSRC}/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" .include