blob: fb9b7591115176e4cf2f248a7539081dce1bbf52 (
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
52
53
54
55
56
57
58
59
60
|
PORTNAME= dwarves
DISTVERSION= 1.19
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://fedorapeople.org/~acme/dwarves/
MAINTAINER= cem@FreeBSD.org
COMMENT= Debugging Information Manipulation Tools (pahole & friends)
WWW= https://acmel.wordpress.com
LICENSE= BSD2CLAUSE GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/lib/bpf/LICENSE.BSD-2-Clause
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL21= ${WRKSRC}/lib/bpf/LICENSE.LPGL-2.1
BUILD_DEPENDS= gnulib>=0:devel/gnulib
LIB_DEPENDS= libargp.so:devel/argp-standalone \
libdw.so:devel/elfutils
USES= cmake gettext python:env shebangfix tar:xz
USE_GCC= yes
USE_LDCONFIG= yes
SHEBANG_FILES= btfdiff fullcircle ostra/ostra-cg ostra/python/ostra.py
CFLAGS+= -I${WRKSRC} -Wno-attributes
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
post-patch:
${REINPLACE_CMD} -e 's,#include <malloc.h>,#include <stdlib.h>,' \
${WRKSRC}/*.c
@${MKDIR} ${WRKSRC}/asm \
${WRKSRC}/bits \
${WRKSRC}/linux
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/asm/bitsperlong.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/asm/errno.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/asm/posix_types.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/asm/types.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/asm/unistd.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/bits/reg.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/endian.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/exitfail.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/gettext.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/linux/limits.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/linux/types.h
${LN} -s ${WRKSRC}/freebsd_compat.h ${WRKSRC}/vasnprintf.h
pre-configure:
${CP} -a \
${LOCALBASE}/share/gnulib/lib/obstack.c \
${LOCALBASE}/share/gnulib/lib/obstack.h \
${WRKSRC}
${REINPLACE_CMD} -e 's,_GL_ATTRIBUTE_PURE,__attribute__((pure)),g' \
${WRKSRC}/obstack.c ${WRKSRC}/obstack.h
.include <bsd.port.mk>
|