blob: 159bb8ae735b7541f483e55606cdeae3b8a370de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Conrad Meyer <cem@FreeBSD.org>
# $FreeBSD$
PORTNAME= elfutils
PORTVERSION= 0.168
CATEGORIES= devel
MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/
MAINTAINER= cem@FreeBSD.org
COMMENT= Library for manipulating ELF files and partial implementation of binutils
LICENSE= LGPL3 GPLv2 GPLv3
LICENSE_COMB= multi
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING-GPLV2
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3
LIB_DEPENDS= libargp.so:devel/argp-standalone
PATCH_DEPENDS= gnulib>=0:devel/gnulib
BROKEN_aarch64= fails to build: fatal error: linux/uio.h: No such file or directory
BROKEN_armv6= fails to build: fails to compile i386_disasm.c
BROKEN_powerpc64= fails to build: error: field 'r' has incomplete type
BROKEN_sparc64= fails to build: fails to compile dwarf_begin_elf.c
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
USES= autoreconf gmake libtool tar:bzip2
USE_GCC= 4.8 # fails to build with newer versions
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -Wno-unused-parameter
# Give i386 a prayer of building, and we can fix the warnings later:
CFLAGS_i386+= -Wno-error
# Avoid conflict with binutils / elftoolchain programs with the same names:
CONFIGURE_ARGS+= --program-prefix=eu-
post-patch:
@${CP} -a \
${LOCALBASE}/share/gnulib/lib/obstack.c \
${LOCALBASE}/share/gnulib/lib/obstack.h \
${LOCALBASE}/share/gnulib/lib/obstack_printf.c \
${WRKSRC}/lib
.include <bsd.port.mk>
|