35 lines
816 B
Makefile
35 lines
816 B
Makefile
PORTNAME= derelict-util
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 5
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= The base library for all Derelict packages
|
|
WWW= https://github.com/DerelictOrg/DerelictUtil
|
|
|
|
LICENSE= BSL
|
|
|
|
BUILD_DEPENDS= ldmd2:lang/ldc \
|
|
dub:devel/dub
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= DerelictOrg
|
|
GH_PROJECT= DerelictUtil
|
|
|
|
DUB_CMD= ${LOCALBASE}/bin/dub build --build=release
|
|
D_INCLUDE_DIR= ${PREFIX}/include/d
|
|
D_LIB_DIR= ${PREFIX}/lib/d
|
|
DC= ${PREFIX}/bin/ldmd2
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && DC=${DC} ${DUB_CMD}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
|
|
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libDerelictUtil.a ${STAGEDIR}${D_LIB_DIR}
|
|
cd ${WRKSRC}/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
|
|
|
|
.include <bsd.port.mk>
|