blob: d269ffc1e3ae44d3a0e835cac5df2a8b8e37d56e (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $NetBSD: Makefile,v 1.3 2014/10/30 21:54:03 mef Exp $
DISTNAME= binutils-2.24
PKGNAME= cross-freemint-${DISTNAME}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://vincent.riviere.free.fr/soft/m68k-atari-mint/
COMMENT= Cross binutils for FreeMiNT
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
PATCH_SITES= http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/
PATCHFILES= binutils-2.24-mint-20131217.patch.bz2
PATCH_DIST_STRIP= -p1
FREEMINT_PREFIX= ${PREFIX}/cross-freemint
USE_TOOLS+= gmake makeinfo
GNU_CONFIGURE= yes
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ${WRKSRC}/configure
GNU_CONFIGURE_PREFIX= ${FREEMINT_PREFIX}
CONFIGURE_ARGS+= --disable-werror --target=m68k-atari-mint
INFO_FILES= yes
INSTALLATION_DIRS+= bin ${FREEMINT_PREFIX}
# follows to devel/binutils
# PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
USE_TOOLS+= ksh
CONFIG_SHELL= ksh
.endif
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}
${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}
post-install:
for f in m68k-atari-mint-addr2line m68k-atari-mint-ar \
m68k-atari-mint-as m68k-atari-mint-c++filt \
m68k-atari-mint-gprof m68k-atari-mint-ld \
m68k-atari-mint-nm m68k-atari-mint-objcopy \
m68k-atari-mint-objdump m68k-atari-mint-ranlib \
m68k-atari-mint-readelf m68k-atari-mint-size \
m68k-atari-mint-strings m68k-atari-mint-strip ; do \
${LN} -s ${FREEMINT_PREFIX}/bin/"$$f" \
${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
done
# copy libiberty.a under the different name from compiler
# PATH differs between clang and gcc:
for d in ${MACHINE_ARCH}/libiberty.a libiberty.a; do \
if [ -f ${DESTDIR}${FREEMINT_PREFIX}/lib/$$d ]; then \
${MV} ${DESTDIR}${FREEMINT_PREFIX}/lib/$$d \
${DESTDIR}${FREEMINT_PREFIX}/lib/libiberty_binutils.a; \
break; \
fi; \
done
.include "../../mk/bsd.pkg.mk"
|