Makefile 696 Bytes
Newer Older
acm's avatar
acm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $FreeBSD$

PORTNAME=	dub
PORTVERSION=	1.2.1
CATEGORIES=	devel
MASTER_SITES=	https://github.com/dlang/dub/archive/
DISTFILES=	v${PORTVERSION}.tar.gz
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Package and build manager for D applications and libraries

BUILD_DEPENDS=	ldmd2:lang/ldc
LIB_DEPENDS=	libcurl.so:ftp/curl

LICENSE_FILE=	${WRKSRC}/LICENSE.txt

PLIST_FILES=	bin/${PORTNAME} \
		%%DATADIR%%/LICENSE

do-build:
	@cd ${WRKSRC} && ${SH} build.sh

do-install:
	@${MKDIR} ${STAGEDIR}/${DATADIR}
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}/${DATADIR}/LICENSE

.include <bsd.port.mk>