2002-11-06 11:05:56 +01:00
|
|
|
# New ports collection makefile for: msp430-binutils
|
|
|
|
# Date created: 15 Oct 2002
|
|
|
|
# Whom: Lev Serebryakov <lev@serebryakov.spb.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= binutils
|
2003-06-25 13:16:24 +02:00
|
|
|
PORTVERSION= ${BINUTILVERSION}
|
2002-11-06 11:05:56 +01:00
|
|
|
CATEGORIES= devel
|
2003-06-25 13:16:24 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
2002-11-06 11:05:56 +01:00
|
|
|
MASTER_SITE_SUBDIR= binutils/releases
|
|
|
|
PKGNAMEPREFIX= msp430-
|
|
|
|
|
2003-06-17 15:53:45 +02:00
|
|
|
MAINTAINER= lev@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= GNU binutils for TI's msp430 MCUs cross-development
|
2002-11-06 11:05:56 +01:00
|
|
|
|
2005-09-19 14:48:52 +02:00
|
|
|
BINUTILVERSION= 2.16.1
|
2002-11-06 11:05:56 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-11 02:13:27 +01:00
|
|
|
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \
|
|
|
|
--with-gcc --with-gnu-ld --with-gnu-as \
|
2007-07-23 11:36:51 +02:00
|
|
|
--disable-nls
|
|
|
|
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
|
2002-11-06 11:05:56 +01:00
|
|
|
MAN1= ${PKGNAMEPREFIX}ar.1 ${PKGNAMEPREFIX}nm.1 \
|
2002-11-11 02:13:27 +01:00
|
|
|
${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 \
|
2003-06-25 13:16:24 +02:00
|
|
|
${PKGNAMEPREFIX}ld.1 ${PKGNAMEPREFIX}dlltool.1 \
|
|
|
|
${PKGNAMEPREFIX}readelf.1 ${PKGNAMEPREFIX}windres.1
|
2002-11-06 11:05:56 +01:00
|
|
|
|
2004-08-03 12:52:44 +02:00
|
|
|
INFO= bfd binutils standards configure as ld
|
2004-04-06 10:55:48 +02:00
|
|
|
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
|
|
|
|
|
2002-11-06 11:05:56 +01:00
|
|
|
PLIST_SUB+= BINUTILS_TARG=${PKGNAMEPREFIX:S/-$//}
|
|
|
|
|
2003-06-25 13:16:24 +02:00
|
|
|
BINARIES= addr2line ar as c++filt ld nm objcopy objdump ranlib \
|
2002-11-06 11:05:56 +01:00
|
|
|
readelf size strings strip
|
|
|
|
|
2004-08-03 12:52:44 +02:00
|
|
|
pre-configure:
|
|
|
|
${CHMOD} 755 ${WRKSRC}/configure
|
|
|
|
|
2002-11-06 11:05:56 +01:00
|
|
|
post-install:
|
|
|
|
.for F in ${BINARIES}
|
|
|
|
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}$F \
|
|
|
|
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
|
|
|
|
.endfor
|
|
|
|
|
2005-09-19 14:48:52 +02:00
|
|
|
#
|
|
|
|
# UGLY HACK
|
|
|
|
#
|
|
|
|
add-plist-post:
|
|
|
|
@${ECHO_CMD} "@unexec rmdir -p %D/${PKGNAMEPREFIX:S/-$//}/info 2> /dev/null || true" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir -p %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
.if (defined(PREFIX) && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
|
2005-09-19 14:48:52 +02:00
|
|
|
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST}
|
|
|
|
.else
|
|
|
|
@${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
2002-11-06 11:05:56 +01:00
|
|
|
.include <bsd.port.mk>
|