1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/devel/dlangui/Makefile
Jose Alonso Cardenas Marquez 5ce7c6e9c4 - Update to 0.9.178
2018-06-03 07:10:04 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= dlangui
PORTVERSION= 0.9.178
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org
COMMENT= Cross Platform GUI for D programming language
LICENSE= BSL
BUILD_DEPENDS= ldmd2:lang/ldc \
dub:devel/dub \
${LOCALBASE}/lib/d/libDerelictUtil.a:devel/derelict-util \
${LOCALBASE}/lib/d/libDerelictGL3.a:graphics/derelict-gl3 \
${LOCALBASE}/lib/d/libDerelictFT.a:print/derelict-ft \
${LOCALBASE}/lib/d/libDerelictSDL2.a:devel/derelict-sdl2 \
${LOCALBASE}/lib/d/libdlib.a:devel/dlib
USE_GITHUB= yes
GH_ACCOUNT= buggins
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 's|DIMAGE;|DLIBIMAGE;|g' ${WRKSRC}/src/dlangui/graphics/images.d
do-build:
@cd ${WRKSRC} && ${DUB_CMD}
do-install:
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
${INSTALL_DATA} ${WRKSRC}/lib/lib${PORTNAME}.a ${STAGEDIR}${D_LIB_DIR}
cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
.include <bsd.port.mk>