Changeset View
Changeset View
Standalone View
Standalone View
head/devel/elfutils/Makefile
# Created by: Conrad Meyer <cem@FreeBSD.org> | # Created by: Conrad Meyer <cem@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= elfutils | PORTNAME= elfutils | ||||
PORTVERSION= 0.174 | PORTVERSION= 0.179 | ||||
PORTREVISION= 4 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/ | MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/ | ||||
MAINTAINER= cem@FreeBSD.org | MAINTAINER= cem@FreeBSD.org | ||||
COMMENT= Library for manipulating ELF files and partial implementation of binutils | COMMENT= Library for manipulating ELF files and partial implementation of binutils | ||||
LICENSE= LGPL3 GPLv2+ GPLv3+ | LICENSE= LGPL3 GPLv2+ GPLv3+ | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING | LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING | ||||
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2 | LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2 | ||||
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 | LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 | ||||
IGNORE_FreeBSD_11= fails to build: fails to compile dwarf_abbrev_hash.c | |||||
BROKEN_armv6= fails to build: fails to compile i386_disasm.c | BROKEN_armv6= fails to build: fails to compile i386_disasm.c | ||||
BROKEN_armv7= fails to build: fails to compile i386_disasm.c | BROKEN_armv7= fails to build: fails to compile i386_disasm.c | ||||
BROKEN_sparc64= sparc patch does not apply cleanly to 0.172 | BROKEN_sparc64= sparc patch does not apply cleanly to 0.172 | ||||
LIB_DEPENDS= libargp.so:devel/argp-standalone | LIB_DEPENDS= libargp.so:devel/argp-standalone | ||||
PATCH_DEPENDS= ${NONEXISTENT}:devel/gnulib:extract | BUILD_DEPENDS= gnulib>=0:devel/gnulib | ||||
PLIST_SUB= VERSION=${PORTVERSION} | PLIST_SUB= VERSION=${PORTVERSION} | ||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= MANPAGES NLS | ||||
OPTIONS_DEFAULT= MANPAGES | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
NLS_USES_OFF= gettext # used anyway | NLS_USES_OFF= gettext # used anyway | ||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
USES= autoreconf gmake libtool tar:bzip2 | USES= autoreconf gmake libtool pkgconfig tar:bzip2 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CFLAGS+= -Wno-null-dereference -Wno-unused-value | CFLAGS+= -Wno-null-dereference -Wno-unused-value | ||||
# For GCC8: | # For GCC8: | ||||
CFLAGS+= -Wno-cast-function-type | CFLAGS+= -Wno-cast-function-type | ||||
# Give i386 a prayer of building, and we can fix the warnings later: | # Give i386 a prayer of building, and we can fix the warnings later: | ||||
CFLAGS_i386+= -Wno-error | CFLAGS_i386+= -Wno-error | ||||
# Avoid conflict with binutils / elftoolchain programs with the same names: | # Avoid conflict with binutils / elftoolchain programs with the same names: | ||||
CONFIGURE_ARGS+= --program-prefix=eu- | CONFIGURE_ARGS+= --program-prefix=eu- | ||||
# Disable debuginfod until option support can be added: | |||||
CONFIGURE_ARGS+= --disable-debuginfod | |||||
post-patch: | pre-configure: | ||||
@${LN} -s `${MAKE} -C ${PORTSDIR}/devel/gnulib -V WRKSRC` ${WRKDIR}/gnulib | |||||
@${CP} -a \ | @${CP} -a \ | ||||
${WRKDIR}/gnulib/lib/obstack.c \ | ${LOCALBASE}/share/gnulib/lib/obstack.c \ | ||||
${WRKDIR}/gnulib/lib/obstack.h \ | ${LOCALBASE}/share/gnulib/lib/obstack.h \ | ||||
${WRKDIR}/gnulib/lib/obstack_printf.c \ | ${LOCALBASE}/share/gnulib/lib/obstack_printf.c \ | ||||
${WRKSRC}/lib | ${WRKSRC}/lib | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |