2003-05-19 05:27:15 +02:00
|
|
|
# New ports collection makefile for: mingw2-binutils
|
|
|
|
# Date created: 24 Oct 2002
|
|
|
|
# Whom: Lev Serebryakov <lev@serebryakov.spb.ru>
|
2000-06-26 21:19:10 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= binutils
|
2007-07-28 19:48:00 +02:00
|
|
|
PORTVERSION= ${BINUTILVERSION}
|
2003-06-28 19:50:35 +02:00
|
|
|
PORTEPOCH= 1
|
2000-06-26 21:19:10 +02:00
|
|
|
CATEGORIES= devel
|
2007-07-28 19:48:00 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
2008-01-15 14:08:32 +01:00
|
|
|
MASTER_SITE_SUBDIR= binutils/releases
|
2003-05-19 05:27:15 +02:00
|
|
|
PKGNAMEPREFIX= mingw32-
|
2007-07-28 19:48:00 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${BINUTILVERSION}
|
2003-05-19 05:27:15 +02:00
|
|
|
|
2010-01-06 05:14:32 +01:00
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
2008-01-15 14:08:32 +01:00
|
|
|
COMMENT= GNU Binutils for Windows cross-development
|
2003-05-19 05:27:15 +02:00
|
|
|
|
2010-01-07 09:52:04 +01:00
|
|
|
BINUTILVERSION= 2.20
|
2000-06-26 21:19:10 +02:00
|
|
|
|
2007-07-28 19:48:00 +02:00
|
|
|
USE_BZIP2= yes
|
2000-06-26 21:19:10 +02:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-19 05:27:15 +02:00
|
|
|
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \
|
|
|
|
--with-gcc --with-gnu-ld --with-gnu-as \
|
|
|
|
--disable-nls --disable-win32-registry \
|
2007-07-23 11:36:51 +02:00
|
|
|
--disable-shared
|
|
|
|
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
|
2000-06-26 21:19:10 +02:00
|
|
|
|
2007-07-28 19:48:00 +02:00
|
|
|
MAN1= ${PKGNAMEPREFIX}addr2line.1 ${PKGNAMEPREFIX}ar.1 \
|
|
|
|
${PKGNAMEPREFIX}as.1 ${PKGNAMEPREFIX}dlltool.1 \
|
|
|
|
${PKGNAMEPREFIX}c++filt.1 ${PKGNAMEPREFIX}gprof.1 \
|
|
|
|
${PKGNAMEPREFIX}ld.1 ${PKGNAMEPREFIX}nlmconv.1 \
|
|
|
|
${PKGNAMEPREFIX}nm.1 ${PKGNAMEPREFIX}objcopy.1 \
|
|
|
|
${PKGNAMEPREFIX}objdump.1 ${PKGNAMEPREFIX}ranlib.1 \
|
|
|
|
${PKGNAMEPREFIX}readelf.1 ${PKGNAMEPREFIX}size.1 \
|
|
|
|
${PKGNAMEPREFIX}strings.1 ${PKGNAMEPREFIX}strip.1 \
|
|
|
|
${PKGNAMEPREFIX}windmc.1 ${PKGNAMEPREFIX}windres.1
|
2003-05-19 05:27:15 +02:00
|
|
|
|
2007-07-28 19:48:00 +02:00
|
|
|
INFO= as bfd binutils ld configure gprof standards
|
2004-04-06 09:09:48 +02:00
|
|
|
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
|
|
|
|
|
2003-05-19 05:27:15 +02:00
|
|
|
PLIST_SUB+= BINUTILS_TARG=${PKGNAMEPREFIX:S/-$//}
|
|
|
|
|
2007-07-28 19:48:00 +02:00
|
|
|
BINARIES= addr2line ar as c++filt gprof ld nm objcopy objdump ranlib \
|
|
|
|
readelf size strings strip dlltool dllwrap windmc windres
|
2003-05-19 05:27:15 +02:00
|
|
|
|
2004-08-05 09:45:34 +02:00
|
|
|
pre-configure:
|
|
|
|
${CHMOD} 755 ${WRKSRC}/configure
|
|
|
|
|
2003-05-19 05:27:15 +02:00
|
|
|
post-install:
|
|
|
|
.for F in ${BINARIES}
|
|
|
|
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}$F \
|
|
|
|
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
|
|
|
|
.endfor
|
|
|
|
|
2005-04-10 16:59:32 +02:00
|
|
|
#
|
|
|
|
# UGLY HACK
|
|
|
|
#
|
|
|
|
add-plist-post:
|
2010-01-07 09:52:04 +01:00
|
|
|
@${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")
|
2010-01-07 09:52:04 +01:00
|
|
|
@${ECHO_CMD} "@unexec ${RMDIR} %D 2> /dev/null || true" >> ${TMPPLIST}
|
2005-04-10 16:59:32 +02:00
|
|
|
.else
|
|
|
|
@${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
2000-06-26 21:19:10 +02:00
|
|
|
.include <bsd.port.mk>
|