2022-06-28 13:30:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2022/06/28 11:31:14 wiz Exp $
|
2014-03-31 11:46:57 +02:00
|
|
|
#
|
|
|
|
# GNU binutils snapshot, configured to target MIPS (NetBSD/playstation2)
|
|
|
|
|
2015-03-23 17:01:27 +01:00
|
|
|
BINUTILS_VER= 2.25
|
2014-03-31 11:46:57 +02:00
|
|
|
|
|
|
|
DISTNAME= binutils-${BINUTILS_VER}
|
|
|
|
PKGNAME= binutils-mips-${BINUTILS_VER}
|
2022-06-28 13:30:51 +02:00
|
|
|
PKGREVISION= 3
|
2014-03-31 11:46:57 +02:00
|
|
|
CATEGORIES= cross lang
|
2014-07-02 14:53:06 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
|
2014-03-31 11:46:57 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= martin@NetBSD.org
|
2020-01-19 00:30:13 +01:00
|
|
|
HOMEPAGE= https://www.gnu.org/
|
2014-03-31 11:46:57 +02:00
|
|
|
COMMENT= binutils for NetBSD/playstation2
|
2014-07-02 14:53:06 +02:00
|
|
|
PLATFORM= mipsel--netbsd
|
2014-03-31 11:46:57 +02:00
|
|
|
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
|
|
|
|
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
|
|
|
|
2015-03-23 17:01:27 +01:00
|
|
|
USE_TOOLS+= gm4 pod2man yacc gmake
|
2014-03-31 11:46:57 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-04-05 12:07:11 +02:00
|
|
|
CONFIGURE_ARGS+= --target=${PLATFORM}
|
2014-03-31 11:46:57 +02:00
|
|
|
|
|
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS}"
|
|
|
|
|
2019-06-08 12:53:26 +02:00
|
|
|
PLIST_SUBST+= LOCALBASE=${PREFIX}
|
2014-03-31 11:46:57 +02:00
|
|
|
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
|
|
|
|
# Prevent the need to run texi2pod.pl and pod2man hence
|
|
|
|
# the need for perl as build dependency.
|
|
|
|
post-patch:
|
|
|
|
.for _file_ in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi gas/doc/as.1
|
|
|
|
if [ -f ${WRKSRC}/${_file_} ]; then \
|
|
|
|
${TOUCH} ${WRKSRC}/${_file_}; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
${RM} -rf ${WRKSRC}/etc
|
|
|
|
|
|
|
|
# we use MKDIR, not INSTALL_PROGRAM_DIR, deliberately.
|
|
|
|
do-install:
|
2014-07-02 14:53:06 +02:00
|
|
|
${MKDIR} -p ${DESTDIR}${BINDIR} ${DESTDIR}${PREFIX}/lib/ldscripts ${DESTDIR}${PREFIX}/include
|
2014-04-05 12:07:11 +02:00
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/addr2line ${DESTDIR}${BINDIR}/${PLATFORM}-addr2line
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/gas/as-new ${DESTDIR}${BINDIR}/${PLATFORM}-as
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ar ${DESTDIR}${BINDIR}/${PLATFORM}-ar
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/cxxfilt ${DESTDIR}${BINDIR}/${PLATFORM}-cxxfilt
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/nm-new ${DESTDIR}${BINDIR}/${PLATFORM}-nm
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objcopy ${DESTDIR}${BINDIR}/${PLATFORM}-objcopy
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objdump ${DESTDIR}${BINDIR}/${PLATFORM}-objdump
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ranlib ${DESTDIR}${BINDIR}/${PLATFORM}-ranlib
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/readelf ${DESTDIR}${BINDIR}/${PLATFORM}-readelf
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/size ${DESTDIR}${BINDIR}/${PLATFORM}-size
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strings ${DESTDIR}${BINDIR}/${PLATFORM}-strings
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strip-new ${DESTDIR}${BINDIR}/${PLATFORM}-strip
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/sysinfo ${DESTDIR}${BINDIR}/${PLATFORM}-sysinfo
|
|
|
|
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/ld/ld-new ${DESTDIR}${BINDIR}/${PLATFORM}-ld
|
2014-03-31 11:46:57 +02:00
|
|
|
for f in ${WRKSRC}/ld/ldscripts/*; do ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/lib/ldscripts; done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|