summaryrefslogtreecommitdiff
path: root/sysutils/dtc/Makefile
blob: aa1456684b366ca54efef3cb1cb28ceca983e129 (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

PORTNAME=	dtc
PORTVERSION=	1.6.0
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

PATCH_SITES=	https://github.com/dgibson/dtc/commit/
PATCHFILES+=	ca19c3db2b.patch:-p1 # https://github.com/dgibson/dtc/pull/41

MAINTAINER=	uboot@FreeBSD.org
COMMENT=	Device Tree Compiler

LICENSE=	GPLv2

LIB_DEPENDS=	libyaml.so:textproc/libyaml

USES=		bison compiler:c11 gmake pkgconfig shebangfix
USE_LDCONFIG=	yes
SHEBANG_FILES=	dtdiff

TEST_TARGET=	check
TEST_ENV=	STATSZ="stat -f %Uz"

USE_GITHUB=	yes
GH_ACCOUNT=	dgibson
GH_PROJECT=	dtc

MAKE_ARGS+=	PREFIX=${PREFIX} NO_PYTHON=yes \
		INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
		INSTALL_LIB="${INSTALL_LIB}"

.include <bsd.port.mk>