mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
38 lines
962 B
Makefile
38 lines
962 B
Makefile
PORTNAME= stdx-allocator
|
|
PORTVERSION= 3.0.2
|
|
PORTREVISION= 4
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Containers backed on dlang by std.experimental.allocator
|
|
WWW= https://github.com/dlang-community/stdx-allocator
|
|
|
|
LICENSE= BSL
|
|
|
|
BUILD_DEPENDS= ldmd2:lang/ldc \
|
|
dub:devel/dub \
|
|
${LOCALBASE}/lib/d/libmir-core.a:devel/mir-core
|
|
|
|
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
|
|
DC= ${PREFIX}/bin/ldmd2
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} '6d' ${WRKSRC}/dub.sdl
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} DUB_HOME=${WRKDIR}/dub_home DC=${DC} ${DUB_CMD}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
|
|
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/libstdx-allocator.a ${STAGEDIR}${D_LIB_DIR}
|
|
cd ${WRKSRC}/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
|
|
|
|
.include <bsd.port.mk>
|