freebsd-ports/devel/mipsel-linux-binutils/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

48 lines
1.5 KiB
Makefile

# New ports collection makefile for: mipsel-linux-binutils
# Date created: 13 June 2001
# Whom: Lev Serebryakov <lev@serebryakov.spb.ru>
#
# $FreeBSD$
#
PORTNAME= binutils
PORTVERSION= 2.10.91
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://lev.serebryakov.spb.ru/download/agenda/
PKGNAMEPREFIX= mipsel-linux-
DISTNAME= ${PORTNAME}-${PORTVERSION}-cvs
MAINTAINER= lev@FreeBSD.org
COMMENT= GNU binutils for mipsel-linux cross-development with SNOW ABI
WRKSRC= ${WRKDIR}/binutils-CVS/src
USE_BZIP2= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --with-gnu-ld --with-gnu-as \
--with-gcc --without-x11
USE_INC_LIBTOOL_VER= 13
LIBTOOLFILES= configure bfd/configure binutils/configure etc/configure \
gas/configure gprof/configure ld/configure opcodes/configure
MAN1= ${PKGNAMEPREFIX}ar.1 ${PKGNAMEPREFIX}nm.1 \
${PKGNAMEPREFIX}objdump.1 \
${PKGNAMEPREFIX}ranlib.1 ${PKGNAMEPREFIX}size.1 \
${PKGNAMEPREFIX}strings.1 ${PKGNAMEPREFIX}strip.1 \
${PKGNAMEPREFIX}objcopy.1 ${PKGNAMEPREFIX}addr2line.1 \
${PKGNAMEPREFIX}nlmconv.1 ${PKGNAMEPREFIX}c++filt.1 \
${PKGNAMEPREFIX}as.1 ${PKGNAMEPREFIX}ld.1
PLIST_SUB+= BINUTILS_TARG=${PKGNAMEPREFIX:S/-$//}
BINARIES= addr2line ar as c++filt gasp ld nm objcopy objdump ranlib \
readelf size strings strip
post-install:
.for F in ${BINARIES}
@${STRIP_CMD} ${PREFIX}/bin/${PKGNAMEPREFIX}$F
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}$F \
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
.endfor
.include <bsd.port.mk>