2d34c901f2
Pointy hat: acm Sponsored by: Absolight
38 lines
912 B
Makefile
38 lines
912 B
Makefile
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dsymbol
|
|
PORTVERSION= 0.2.5
|
|
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/libdparse.a:devel/libdparse \
|
|
${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers
|
|
|
|
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,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>
|