svn commit: r366582 - head/devel/binutils
Baptiste Daroussin
bapt at FreeBSD.org
Fri Aug 29 23:22:54 UTC 2014
Author: bapt
Date: Fri Aug 29 23:22:53 2014
New Revision: 366582
URL: http://svnweb.freebsd.org/changeset/ports/366582
QAT: https://qat.redports.org/buildarchive/r366582/
Log:
Make the port ready to have slave ports for cross building targets
Modified:
head/devel/binutils/Makefile
Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile Fri Aug 29 22:31:57 2014 (r366581)
+++ head/devel/binutils/Makefile Fri Aug 29 23:22:53 2014 (r366582)
@@ -3,13 +3,13 @@
PORTNAME= binutils
PORTVERSION= 2.24
-PORTREVISION= 1
+PORTREVISION?= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= binutils/releases
MAINTAINER= bapt at FreeBSD.org
-COMMENT= GNU binary tools
+COMMENT?= GNU binary tools
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
@@ -27,14 +27,18 @@ LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING3.L
USES= bison gmake libtool tar:bzip2
GNU_CONFIGURE= yes
+.if defined(PKGNAMEPREFIX)
+OPTIONS_EXCLUDE= NLS
+INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
+CONFIGURE_ARGS+= --disable-shared \
+ --target=${PKGNAMEPREFIX}${OPSYS:tl}
+.else
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-system-zlib \
--with-sysroot=/ \
- --disable-werror \
--with-gmp=${LOCALBASE} \
--with-mpfr=${LOCALBASE}
-
INFO= as \
binutils \
standards \
@@ -42,6 +46,9 @@ INFO= as \
bfd \
configure \
ld
+.endif
+
+CONFIGURE_ARGS+= --disable-werror
OPTIONS_SUB= yes
NLS_USES= gettext
@@ -50,7 +57,7 @@ NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.options.mk>
# Actual earliest version may differ slightly
-.if ${ARCH} != ia64 && ${OSVERSION} >= 900044
+.if ${ARCH} != ia64 && ${OSVERSION} >= 900044 && !defined(PKGNAMEPREFIX)
CONFIGURE_ARGS+= --enable-gold --enable-plugins
PLIST_SUB+= GOLD=""
.else
@@ -64,6 +71,7 @@ CONFIGURE_TARGET= ${ARCH}-portbld-freebs
.endif
post-install:
+.if !defined(PKGNAMEPREFIX)
.if ${OSVERSION} >= 900044
${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h ${STAGEDIR}${PREFIX}/include/
.endif
@@ -73,5 +81,8 @@ post-install:
${SED} -e 's,^${STAGEDIR}${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h
${REINPLACE_CMD} '/#include "ansidecl.h"/d' ${STAGEDIR}${PREFIX}/include/bfd.h
+.else
+ ${RM} -rf ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}
+.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list