pkgsrc/sysutils/sunxi-tools/Makefile
2015-10-25 09:05:23 +00:00

36 lines
1.1 KiB
Makefile

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