freebsd-ports/devel/psptoolchain-binutils/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

38 lines
1.2 KiB
Makefile

# Created by: Tassilo Philipp <tphilipp@potion-studios.com>
# $FreeBSD$
PORTNAME= binutils
PORTVERSION= 2.22
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.gnu.org/pub/gnu/${PORTNAME}/ \
SOURCEWARE/${PORTNAME}/releases
PKGNAMEPREFIX= psptoolchain-
MAINTAINER= tphilipp@potion-studios.com
COMMENT= PlayStation Portable development toolchain ${PORTNAME}
USES= gmake tar:bzip2 libtool
HAS_CONFIGURE= yes
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/:S/armv6/arm/}-unknown-${OPSYS:tl}${OSREL}
CONFIGURE_ARGS= --prefix=${PREFIX} \
--target="psp" \
--enable-install-libbfd \
--disable-werror \
--disable-nls \
--mandir=${PREFIX}/man
PLIST_SUB= CONFIGURE_TARGET="${CONFIGURE_TARGET}"
# Disable installation of .info files and libiberty.
post-patch:
@${REINPLACE_CMD} -E 's/^(install-data-am:)(.*)install-info-am(.*)/\1 \2 \3/' \
${WRKSRC}/ld/Makefile.in
@${REINPLACE_CMD} -E 's/^(install-info:)(.*install-info-am.*)/\1#\2/' \
${WRKSRC}/gas/doc/Makefile.in \
${WRKSRC}/bfd/doc/Makefile.in \
${WRKSRC}/binutils/doc/Makefile.in
@${REINPLACE_CMD} -E 's/^(install:)(.*)/\1#\2/' ${WRKSRC}/libiberty/Makefile.in
@${REINPLACE_CMD} -E 's,^(install.*:)(.*)install-info(.*),\1 \2 \3,' ${WRKSRC}/etc/Makefile.in
.include <bsd.port.mk>