Files
ports/devel/libbfd/Makefile
Adriaan de Groot 1e1462eb29 devel/libbfd: bring up-to-date wrt devel/binutils
Match the versions of libiberty and binutils. These come
from the same tarball upstream, so it's a bit odd to have
mismatched versions to start with; in addition the libiberty
version is years out-of-date.

Approved by:    joerg@ (maintainer)
2021-05-11 20:47:31 +02:00

43 lines
1.4 KiB
Makefile

# Created by: Joerg Wunsch <joerg@FreeBSD.org>
PORTNAME= libbfd
PORTVERSION= 2.33.1
CATEGORIES= devel
MASTER_SITES= SOURCEWARE/binutils/releases
DISTNAME= binutils-${PORTVERSION}
MAINTAINER= joerg@FreeBSD.org
COMMENT= Universal BFD library from GNU binutils
BROKEN_aarch64= Fails to configure: machine aarch64-portbld not recognized
BROKEN_armv6= Fails to configure: BFD does not support target armv6-portbld-freebsd12.0
BROKEN_armv7= Fails to configure: BFD does not support target armv7-portbld-freebsd12.0
BROKEN_mips64= Fails to configure: BFD does not support target mips64-portbld-freebsd12.0
BROKEN_riscv64= Fails to configure: machine riscv64-portbld not recognized
CONFLICTS= mingw-binutils-[0-9]* binutils-[0-9]*
WRKSRC= ${WRKDIR}/binutils-${PORTVERSION}/bfd
USES= libtool tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-install-libbfd \
--disable-nls \
--enable-shared \
--enable-targets=all \
--disable-werror
CONFIGURE_TARGET=${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}
INFO= bfd
pre-configure:
# Configure and build pic version of libiberty
(cd ${WRKSRC}/../libiberty && \
${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" CPP="${CPP}" \
CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
LIBS="${LIBS}" ${CONFIGURE_ENV} ./configure \
${CONFIGURE_ARGS} --build=${CONFIGURE_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS})
.include <bsd.port.mk>