summaryrefslogtreecommitdiff
path: root/cross/mingw-binutils/Makefile
blob: 6d45723e720266ac8c5379f579adf397c2d6a113 (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
# $NetBSD: Makefile,v 1.7 2016/06/19 16:23:59 wiz Exp $

DISTNAME=	binutils-2.18
PKGNAME=	mingw-${DISTNAME:S/-src//}
PKGREVISION=	2
CATEGORIES=	cross
MASTER_SITES=	${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://mingw.sourceforge.net/
COMMENT=	GNU binutils for win32 cross-development

GNU_CONFIGURE=		yes
USE_TOOLS+=		pax
INFO_FILES=		yes

BUILDLINK_TRANSFORM+=	rm:-Werror

INSTALLATION_DIRS+=	cross/bin

post-install:
.for f in windres dllwrap
	${LN} -fs ${PREFIX}/cross/bin/${MINGW_TARGET}-${f} \
                ${DESTDIR}${PREFIX}/cross/${MINGW_TARGET}/bin/${f}
.endfor

.include "../../cross/mingw/Makefile.common"
.include "../../cross/mingw-w32api-bin/buildlink3.mk"
.include "../../cross/mingw-runtime-bin/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"