File:  [cvs.NetBSD.org] / pkgsrc / sysutils / m1n1 / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Sun Jan 9 23:42:03 2022 UTC (2 years, 11 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, HEAD
Fix packages that use GITSUB_MODULES on SunOS and possibly others

This is annoying, but for now we must always explicitly combine
GITHUB_SUBMODULES with EXTRACT_USING+=bsdtar.

This is because mk/fetch/github.mk uses OPTS_TAR=--strip-components=1
and that is not supported by nbtar(pax), which is the default pkgsrc
tar on some platforms. We cannot override EXTRACT_USING in github.mk
because that is too late.

We should switch all platforms to bsdtar and retire pax.

# $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"

CVSweb <webmaster@jp.NetBSD.org>