summaryrefslogtreecommitdiff
path: root/sysutils/sunxi-tools/Makefile
blob: 7791148f8399752d42661ef2ae097926867de862 (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
# $NetBSD: Makefile,v 1.3 2015/10/25 09:05:23 bouyer Exp $
#

VERSION=	20150915
DISTNAME=	sunxi-tools-${VERSION}
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=linux-sunxi/}
GITHUB_PROJECT=	sunxi-tools
GITHUB_TAG=	568c7a0e81fc5d52189710c6d832677aa8770b16

MAINTAINER=	bouyer@NetBSD.org
HOMEPAGE=	http://linux-sunxi.org/
COMMENT=	Tools to help hacking Allwinner A10 (and successors) devices
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	gmake pkg-config

INSTALLATION_DIRS=	bin libdata/sunxi-tools

do-install:
.for f in fexc fel pio bootinfo phoenix_info
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin/${f}
.endfor
.for f in bin2fex fex2bin
	${LN} ${DESTDIR}${PREFIX}/bin/fexc ${DESTDIR}${PREFIX}/bin/${f}
.endfor
.for f in fel-gpio
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin/${f}
.endfor
.for f in fel-pio.bin fel-sdboot.sunxi ramboot.scr fel-pio.nm jtag-loop.sunxi ramboot.uboot-sh
	${INSTALL_DATA} ${WRKSRC}/bin/${f} ${DESTDIR}${PREFIX}/libdata/sunxi-tools/${f}
.endfor

.include "../../devel/libusb1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"