summaryrefslogtreecommitdiff
path: root/lang/myrddin/Makefile
blob: b7ae299d62c4785122ffc866ae908bbec6d71ca2 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	myrddin
PORTVERSION=	0.3.1
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://myrlang.org/releases/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Myrddin Compiler
WWW=		https://myrlang.org/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	amd64

BUILD_DEPENDS=	as:devel/binutils
RUN_DEPENDS=	as:devel/binutils

USES=	gmake

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix "${PREFIX}"
ALL_TARGET=	bootstrap
TEST_TARGET=	check
WRKSRC=	${WRKDIR}/mc

OPTIONS_DEFINE=	DEBUG VIM
OPTIONS_DEFAULT=	VIM
OPTIONS_SUB=	yes

VIM_DESC=	Install Vim plugin

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

post-install-VIM-on:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/vim/vimfiles
	@cd ${WRKSRC}/support/vim && \
		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/vim/vimfiles

.include <bsd.port.mk>