aboutsummaryrefslogblamecommitdiff
path: root/devel/dlib/Makefile
blob: 6c9e51f9ff62ffc1ac2497e4cfe3fe9f06089d38 (plain) (tree)
1
2
3
4
5
6
7
8
9
                    
                     
                 
                         
                     


                                                                        
                                                 





                                


                         


                                                          
                                   

         
                                            







                                                                                                            
PORTNAME=	dlib
PORTVERSION=	1.1.0
PORTREVISION=	3
DISTVERSIONPREFIX=	v
CATEGORIES=	devel

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Math, XML, I/O streams, image and audio processing for D
WWW=		https://github.com/gecko0307/dlib

LICENSE=	BSL

BUILD_DEPENDS=	ldmd2:lang/ldc \
		dub:devel/dub

USE_GITHUB=	yes
GH_ACCOUNT=	gecko0307

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}/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
	${INSTALL_DATA} ${WRKSRC}/libdlib.a ${STAGEDIR}${D_LIB_DIR}
	cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR}/${PORTNAME} "-name *\.d"

.include <bsd.port.mk>