# vim: ft=make ts=4 sw=4 noet

NAME    = binutils
VERSION = 2.45
GARTYPE = v2

DESCRIPTION = GNU binary utilities
define BLURB
  GNU binutils: assembler, linker, and binary tools.
endef

MASTER_SITES  = http://ftp.gnu.org/gnu/binutils/
DISTFILES    += $(DISTNAME).tar.gz

LICENSE = COPYING

PACKAGES                 += OZSWbinutils
SPKG_DESC_OZSWbinutils   = GNU binary utilities (as, ld, etc.)
CATALOGNAME_OZSWbinutils = binutils
PKGFILES_OZSWbinutils    = .*

# OZSWzlib provides zlib; avoid the system /usr/lib/libz.so
RUNTIME_DEP_PKGS_OZSWbinutils += OZSWzlib
BUILD_DEP_PKGS += OZSWzlib

CONFIGURE_ARGS  = --prefix=$(prefix)
CONFIGURE_ARGS += --with-zlib=$(BUILD_PREFIX)

include gar/category.mk
