summaryrefslogtreecommitdiff
path: root/sysutils/u-boot/u-boot.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/u-boot/u-boot.mk')
-rw-r--r--sysutils/u-boot/u-boot.mk20
1 files changed, 16 insertions, 4 deletions
diff --git a/sysutils/u-boot/u-boot.mk b/sysutils/u-boot/u-boot.mk
index 6e4e60c5cc0..ca464adc54f 100644
--- a/sysutils/u-boot/u-boot.mk
+++ b/sysutils/u-boot/u-boot.mk
@@ -1,4 +1,4 @@
-# $NetBSD: u-boot.mk,v 1.1 2017/08/12 14:23:43 jmcneill Exp $
+# $NetBSD: u-boot.mk,v 1.2 2017/08/12 16:44:33 jmcneill Exp $
UBOOT_VERSION?= 2017.07
PKGNAME= u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
@@ -6,17 +6,28 @@ DISTNAME?= u-boot-${UBOOT_VERSION}
DISTINFO_FILE?= ${.CURDIR}/../../sysutils/u-boot/distinfo
CATEGORIES= sysutils
EXTRACT_SUFX= .tar.bz2
+PATCHDIR= ${.CURDIR}/../../sysutils/u-boot/patches
HOMEPAGE?= https://www.denx.de/wiki/U-Boot
MASTER_SITES?= ftp://ftp.denx.de/pub/u-boot/
-BUILD_DEPENDS+= dtc>=1.4.2:../../sysutils/dtc
+TOOL_DEPENDS+= dtc>=1.4.2:../../sysutils/dtc
+TOOL_DEPENDS+= swig>=1.3:../../devel/swig
COMMENT= Das U-Boot, the Universal Boot Loader (${UBOOT_CONFIG})
LICENSE= gnu-gpl-v2
-USE_LANGUAGES= c c++
-USE_TOOLS+= gmake
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake gsed pkg-config
+PYTHON_FOR_BUILD_ONLY= yes
+
+REPLACE_INTERPRETER+= python2
+REPLACE.python2.old= .*/usr/bin/env.*python2*
+REPLACE.python2.new= ${PYTHONBIN}
+REPLACE_FILES.python2= scripts/fill_scrapyard.py \
+ tools/binman/binman.py \
+ tools/genboardscfg.py \
+ tools/moveconfig.py
MAKE_ENV+= ${UBOOT_ENV}
@@ -33,4 +44,5 @@ do-install:
${DESTDIR}${PREFIX}/share/u-boot/${UBOOT_TARGET}
.endfor
+.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"