57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.32 2006/10/04 21:35:58 wiz Exp $
|
|
|
|
DISTNAME= binutils-2.16.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://directory.fsf.org/binutils.html
|
|
COMMENT= GNU binary utilities
|
|
|
|
CONFLICTS= avr-binutils<2.13.2.1nb1
|
|
|
|
NOT_FOR_PLATFORM= Darwin-*-* Interix-*-*
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
REPLACE_LOCALEDIR_PATTERNS+= Make-in
|
|
|
|
USE_TOOLS+= makeinfo
|
|
TEXINFO_REQD= 4.0
|
|
MAKEFLAGS+= TEXINFO_LOCALE=no
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib'
|
|
BINUTILS_PREFIX= ${PREFIX}/${MACHINE_GNU_PLATFORM}
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.common
|
|
PLIST_SRC+= ${WRKDIR}/PLIST_DYNAMIC
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.common_end
|
|
|
|
INFO_FILES= # PLIST
|
|
|
|
# gprof (XXX: and others?) cannot be built on all platforms
|
|
#
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "IRIX"
|
|
PLIST_SUBST+= NO_GPROF="@comment "
|
|
.else
|
|
PLIST_SUBST+= NO_GPROF=""
|
|
.endif
|
|
|
|
# Prevent the need to run texi2pod.pl and pod2man hence
|
|
# the need for perl as build dependency.
|
|
#
|
|
post-configure:
|
|
.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
|
|
|
|
post-install:
|
|
${FIND} ${BINUTILS_PREFIX}/lib/ldscripts -type f -print \
|
|
| ${SORT} -r \
|
|
| ${SED} 's;${PREFIX}/;;g' \
|
|
> ${WRKDIR}/PLIST_DYNAMIC
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|