Changeset View
Changeset View
Standalone View
Standalone View
devel/binutils/Makefile
# Created by: Martin Matuska <mm@FreeBSD.org> | # Created by: Martin Matuska <mm@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= binutils | PORTNAME= binutils | ||||
PORTVERSION= 2.24 | PORTVERSION= 2.24 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= ${MASTER_SITE_SOURCEWARE} | MASTER_SITES= ${MASTER_SITE_SOURCEWARE} | ||||
MASTER_SITE_SUBDIR= binutils/releases | MASTER_SITE_SUBDIR= binutils/releases | ||||
MAINTAINER= zeising@FreeBSD.org | MAINTAINER= zeising@FreeBSD.org | ||||
COMMENT= GNU binary tools | COMMENT= GNU binary tools | ||||
LICENSE= GPLv3 LGPL3 | LICENSE= GPLv3 LGPL3 | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.so:${PORTSDIR}/math/gmp \ | BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.so:${PORTSDIR}/math/gmp \ | ||||
${LOCALBASE}/lib/libmpfr.so:${PORTSDIR}/math/mpfr | ${LOCALBASE}/lib/libmpfr.so:${PORTSDIR}/math/mpfr | ||||
CONFLICTS= libbfd-[0-9]* | CONFLICTS= libbfd-[0-9]* | ||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= NLS | ||||
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING3 | LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING3 | ||||
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING3.LIB | LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING3.LIB | ||||
USES= bison tar:bzip2 gmake | USES= bison gmake libtool tar:bzip2 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CFLAGS+= -I${LOCALBASE}/include | CFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
CONFIGURE_ARGS+= --with-system-zlib \ | CONFIGURE_ARGS+= --with-system-zlib \ | ||||
--with-sysroot=/ \ | --with-sysroot=/ \ | ||||
--disable-werror \ | --disable-werror \ | ||||
--with-gmp=${LOCALBASE} \ | --with-gmp=${LOCALBASE} \ | ||||
--with-mpfr=${LOCALBASE} | --with-mpfr=${LOCALBASE} | ||||
INFO= as \ | INFO= as \ | ||||
binutils \ | binutils \ | ||||
standards \ | standards \ | ||||
gprof \ | gprof \ | ||||
bfd \ | bfd \ | ||||
configure \ | configure \ | ||||
ld | ld | ||||
OPTIONS_SUB= yes | |||||
NLS_USES= gettext | |||||
NLS_CONFIGURE_ENABLE= nls | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
# Actual earliest version may differ slightly | # Actual earliest version may differ slightly | ||||
.if ${ARCH} != ia64 && ${OSVERSION} >= 900044 | .if ${ARCH} != ia64 && ${OSVERSION} >= 900044 | ||||
CONFIGURE_ARGS+= --enable-gold --enable-plugins | CONFIGURE_ARGS+= --enable-gold --enable-plugins | ||||
PLIST_SUB+= GOLD="" | PLIST_SUB+= GOLD="" | ||||
.else | .else | ||||
PLIST_SUB+= GOLD="@comment " | PLIST_SUB+= GOLD="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MNLS} | |||||
USES+= gettext | |||||
PLIST_SUB+= NLS="" | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-nls | |||||
PLIST_SUB+= NLS="@comment " | |||||
.endif | |||||
.if ${ARCH} == "amd64" | .if ${ARCH} == "amd64" | ||||
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} | CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} | ||||
.else | .else | ||||
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} | CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
.if ${OSVERSION} >= 900044 | .if ${OSVERSION} >= 900044 | ||||
${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h ${STAGEDIR}${PREFIX}/include/ | ${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h ${STAGEDIR}${PREFIX}/include/ | ||||
.endif | .endif | ||||
@${FIND} -ds ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} ! -type d | \ | @${FIND} -ds ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} ! -type d | \ | ||||
${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} | ${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} | ||||
@${FIND} -ds ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} -type d | \ | @${FIND} -ds ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} -type d | \ | ||||
${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} | ${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} | ||||
${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h | ${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h | ||||
${REINPLACE_CMD} '/#include "ansidecl.h"/d' ${STAGEDIR}${PREFIX}/include/bfd.h | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |