aboutsummaryrefslogblamecommitdiff
path: root/devel/dsymbol/Makefile
blob: 8cf5518610bc11692e93f345e4646e6754327ac6 (plain) (tree)
1
2
3
4
5
6



                                                       
                           
                     






                                                   


                                                                        
 

                               
                                             
 



                                                          


                                                      









                                                                                        
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	dsymbol
DISTVERSION=	0.3.0-beta1
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/libdparse.a:devel/libdparse \
		${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers

USE_GITHUB=	yes
GH_ACCOUNT=	dlang-community
GH_TAGNAME=	v${DISTVERSION:S/beta/beta./}

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,10d' ${WRKSRC}/dub.json

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 <bsd.port.mk>