summaryrefslogtreecommitdiff
path: root/sysutils/m1n1/Makefile
blob: 8631fab40121540ba458e67d39180c8985952598 (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
# $NetBSD: Makefile,v 1.3 2022/01/09 23:42:03 tnn Exp $

GITHUB_PROJECT=	m1n1
GITHUB_TAG=	4df78129aac4547231dbac662d28c3b67b13cc79
DISTNAME=	4df78129aac4547231dbac662d28c3b67b13cc79
PKGNAME=	${GITHUB_PROJECT}-20210828
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=AsahiLinux/}
EXTRACT_SUFX=	.zip
DIST_SUBDIR=	${GITHUB_PROJECT}

GITHUB_SUBMODULES=	AsahiLinux artwork \
			35626c31f5c5a8a884aaff93f864795026495742 artwork
EXTRACT_USING=		bsdtar

MAINTAINER=	port-arm@NetBSD.org
HOMEPAGE=	https://github.com/AsahiLinux/m1n1/
COMMENT=	Bootloader for Apple Silicon
LICENSE=	mit

WRKSRC=		${WRKDIR}/m1n1-4df78129aac4547231dbac662d28c3b67b13cc79
USE_TOOLS+=	gmake

TOOL_DEPENDS+=	ImageMagick-[0-9]*:../../graphics/ImageMagick

BUILD_DEPENDS+=	cross-aarch64-none-elf-gcc-[0-9]*:../../cross/aarch64-none-elf-gcc
MAKE_FLAGS+=	ARCH=${PREFIX}/cross-aarch64-none-elf/bin/aarch64-none-elf-

INSTALLATION_DIRS=	share/m1n1

post-extract:
	# XXX why?
	mv -v ${WRKSRC}/artwork/artwork-*/* ${WRKSRC}/artwork

do-install:
	${INSTALL_DATA} ${WRKSRC}/build/m1n1.macho ${DESTDIR}${PREFIX}/share/m1n1

.include "../../mk/bsd.pkg.mk"