COMMENT =	GNU binary utilities

DISTNAME =	binutils-2.42
EXTRACT_SUFX =	.tar.bz2
REVISION =	0

CATEGORIES =	devel

HOMEPAGE =	https://sourceware.org/binutils/

MAINTAINER =	Frederic Cambus <fcambus@openbsd.org>

# GPLv3+
PERMIT_PACKAGE =	Yes

WANTLIB += c msgpack-c z zstd

LIB_DEPENDS +=	archivers/zstd \
		devel/msgpack

SITES =		${SITE_GNU:=binutils/}

CONFIGURE_STYLE =	gnu

CONFIGURE_ARGS +=	--disable-gprof \
			--disable-ld \
			--disable-libctf \
			--disable-nls \
			--disable-install-libbfd \
			--program-prefix=g \
			--with-system-zlib

USE_GMAKE =	Yes

post-install:
	@rm ${PREFIX}/info/bfd.info	# Installed by devel/gdb
	@rm -rf ${PREFIX}/*-unknown-openbsd${OSREV}

.include <bsd.port.mk>
