Added
Link Here
|
1 |
# New ports collection makefile for: BSD licenced libdwarf |
2 |
# Date created: 16 June 2011 |
3 |
# Whom: Niclas Zeising |
4 |
# |
5 |
# $FreeBSD$ |
6 |
# |
7 |
|
8 |
PORTNAME= bsdlibdwarf |
9 |
PORTVERSION= 0.20110616 |
10 |
CATEGORIES= devel |
11 |
MASTER_SITES= ftp://ftp.lysator.liu.se/%SUBDIR%/ |
12 |
MASTER_SITE_SUBDIR= pub/${PORTNAME} |
13 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
14 |
|
15 |
MAINTAINER= niclas.zeising@gmail.com |
16 |
COMMENT= BSD licensed implementation of libdwarf |
17 |
|
18 |
USE_BZIP2= yes |
19 |
USE_LDCONFIG= yes |
20 |
|
21 |
CONFLICTS_INSTALL= libdwarf* |
22 |
|
23 |
WRKSRC= ${WRKDIR}/elftoolchain |
24 |
|
25 |
PLIST_FILES= lib/libdwarf.so \ |
26 |
lib/libdwarf.so.3 \ |
27 |
lib/libdwarf.a \ |
28 |
include/dwarf.h \ |
29 |
include/libdwarf.h |
30 |
|
31 |
MAN3= dwarf_attr.3 \ |
32 |
dwarf_attrlist.3 \ |
33 |
dwarf_attrval_signed.3 \ |
34 |
dwarf_child.3 \ |
35 |
dwarf_dealloc.3 \ |
36 |
dwarf_die_abbrev_code.3 \ |
37 |
dwarf_diename.3 \ |
38 |
dwarf_dieoffset.3 \ |
39 |
dwarf_errmsg.3 \ |
40 |
dwarf_errno.3 \ |
41 |
dwarf_expand_frame_instructions.3 \ |
42 |
dwarf_find_macro_value_start.3 \ |
43 |
dwarf_finish.3 \ |
44 |
dwarf_formaddr.3 \ |
45 |
dwarf_formblock.3 \ |
46 |
dwarf_formexprloc.3 \ |
47 |
dwarf_formflag.3 \ |
48 |
dwarf_formref.3 \ |
49 |
dwarf_formsig8.3 \ |
50 |
dwarf_formstring.3 \ |
51 |
dwarf_formudata.3 \ |
52 |
dwarf_get_AT_name.3 \ |
53 |
dwarf_get_abbrev.3 \ |
54 |
dwarf_get_abbrev_children_flag.3 \ |
55 |
dwarf_get_abbrev_code.3 \ |
56 |
dwarf_get_abbrev_entry.3 \ |
57 |
dwarf_get_abbrev_tag.3 \ |
58 |
dwarf_get_address_size.3 \ |
59 |
dwarf_get_arange.3 \ |
60 |
dwarf_get_aranges.3 \ |
61 |
dwarf_get_arange_info.3 \ |
62 |
dwarf_get_cie_index.3 \ |
63 |
dwarf_get_cie_info.3 \ |
64 |
dwarf_get_cie_of_fde.3 \ |
65 |
dwarf_get_cu_die_offset.3 \ |
66 |
dwarf_get_elf.3 \ |
67 |
dwarf_get_fde_at_pc.3 \ |
68 |
dwarf_get_fde_info_for_all_regs.3 \ |
69 |
dwarf_get_fde_info_for_all_regs3.3 \ |
70 |
dwarf_get_fde_info_for_cfa_reg3.3 \ |
71 |
dwarf_get_fde_info_for_reg.3 \ |
72 |
dwarf_get_fde_info_for_reg3.3 \ |
73 |
dwarf_get_fde_instr_bytes.3 \ |
74 |
dwarf_get_fde_list.3 \ |
75 |
dwarf_get_fde_n.3 \ |
76 |
dwarf_get_fde_range.3 \ |
77 |
dwarf_get_funcs.3 \ |
78 |
dwarf_get_globals.3 \ |
79 |
dwarf_get_macro_details.3 \ |
80 |
dwarf_get_pubtypes.3 \ |
81 |
dwarf_get_ranges.3 \ |
82 |
dwarf_get_str.3 \ |
83 |
dwarf_get_types.3 \ |
84 |
dwarf_get_vars.3 \ |
85 |
dwarf_get_weaks.3 \ |
86 |
dwarf_hasattr.3 \ |
87 |
dwarf_hasform.3 \ |
88 |
dwarf_highpc.3 \ |
89 |
dwarf_init.3 \ |
90 |
dwarf_lineno.3 \ |
91 |
dwarf_next_cu_header.3 \ |
92 |
dwarf_seterrarg.3 \ |
93 |
dwarf_set_frame_cfa_value.3 \ |
94 |
dwarf_srcfiles.3 \ |
95 |
dwarf_srclines.3 \ |
96 |
dwarf_tag.3 \ |
97 |
dwarf_whatattr.3 |
98 |
|
99 |
MLINKS+= dwarf_attrval_signed.3 dwarf_attrval_flag.3 \ |
100 |
dwarf_attrval_signed.3 dwarf_attrval_string.3 \ |
101 |
dwarf_attrval_signed.3 dwarf_attrval_unsigned.3 \ |
102 |
dwarf_child.3 dwarf_offdie.3 \ |
103 |
dwarf_child.3 dwarf_siblingof.3 \ |
104 |
dwarf_dealloc.3 dwarf_fde_cie_list_dealloc.3 \ |
105 |
dwarf_dealloc.3 dwarf_funcs_dealloc.3 \ |
106 |
dwarf_dealloc.3 dwarf_globals_dealloc.3 \ |
107 |
dwarf_dealloc.3 dwarf_pubtypes_dealloc.3 \ |
108 |
dwarf_dealloc.3 dwarf_types_dealloc.3 \ |
109 |
dwarf_dealloc.3 dwarf_vars_dealloc.3 \ |
110 |
dwarf_dealloc.3 dwarf_weaks_dealloc.3 \ |
111 |
dwarf_dealloc.3 dwarf_ranges_dealloc.3 \ |
112 |
dwarf_dealloc.3 dwarf_srclines_dealloc.3 \ |
113 |
dwarf_init.3 dwarf_elf_init.3 \ |
114 |
dwarf_dieoffset.3 dwarf_die_CU_offset.3 \ |
115 |
dwarf_dieoffset.3 dwarf_die_CU_offset_range.3 \ |
116 |
dwarf_dieoffset.3 dwarf_get_cu_die_offset_given_cu_header_offset.3 \ |
117 |
dwarf_formref.3 dwarf_global_formref.3 \ |
118 |
dwarf_formudata.3 dwarf_formsdata.3 \ |
119 |
dwarf_get_AT_name.3 dwarf_get_ACCESS_name.3 \ |
120 |
dwarf_get_AT_name.3 dwarf_get_ATE_name.3 \ |
121 |
dwarf_get_AT_name.3 dwarf_get_CC_name.3 \ |
122 |
dwarf_get_AT_name.3 dwarf_get_CFA_name.3 \ |
123 |
dwarf_get_AT_name.3 dwarf_get_CHILDREN_name.3 \ |
124 |
dwarf_get_AT_name.3 dwarf_get_DS_name.3 \ |
125 |
dwarf_get_AT_name.3 dwarf_get_DSC_name.3 \ |
126 |
dwarf_get_AT_name.3 dwarf_get_EH_name.3 \ |
127 |
dwarf_get_AT_name.3 dwarf_get_END_name.3 \ |
128 |
dwarf_get_AT_name.3 dwarf_get_FORM_name.3 \ |
129 |
dwarf_get_AT_name.3 dwarf_get_ID_name.3 \ |
130 |
dwarf_get_AT_name.3 dwarf_get_INL_name.3 \ |
131 |
dwarf_get_AT_name.3 dwarf_get_LANG_name.3 \ |
132 |
dwarf_get_AT_name.3 dwarf_get_LNE_name.3 \ |
133 |
dwarf_get_AT_name.3 dwarf_get_LNS_name.3 \ |
134 |
dwarf_get_AT_name.3 dwarf_get_MACINFO_name.3 \ |
135 |
dwarf_get_AT_name.3 dwarf_get_OP_name.3 \ |
136 |
dwarf_get_AT_name.3 dwarf_get_ORD_name.3 \ |
137 |
dwarf_get_AT_name.3 dwarf_get_TAG_name.3 \ |
138 |
dwarf_get_AT_name.3 dwarf_get_VIRTUALITY_name.3 \ |
139 |
dwarf_get_AT_name.3 dwarf_get_VIS_name.3 \ |
140 |
dwarf_get_cu_die_offset.3 dwarf_get_arange_cu_header_offset.3 \ |
141 |
dwarf_get_fde_list.3 dwarf_get_fde_list_eh.3 \ |
142 |
dwarf_get_funcs.3 dwarf_func_die_offset.3 \ |
143 |
dwarf_get_funcs.3 dwarf_func_cu_offset.3 \ |
144 |
dwarf_get_funcs.3 dwarf_func_name_offsets.3 \ |
145 |
dwarf_get_funcs.3 dwarf_funcname.3 \ |
146 |
dwarf_get_globals.3 dwarf_global_die_offset.3 \ |
147 |
dwarf_get_globals.3 dwarf_global_cu_offset.3 \ |
148 |
dwarf_get_globals.3 dwarf_global_name_offsets.3 \ |
149 |
dwarf_get_globals.3 dwarf_globname.3 \ |
150 |
dwarf_get_pubtypes.3 dwarf_pubtype_die_offset.3 \ |
151 |
dwarf_get_pubtypes.3 dwarf_pubtype_cu_offset.3 \ |
152 |
dwarf_get_pubtypes.3 dwarf_pubtype_name_offsets.3 \ |
153 |
dwarf_get_pubtypes.3 dwarf_pubtypename.3 \ |
154 |
dwarf_get_ranges.3 dwarf_get_ranges_a.3 \ |
155 |
dwarf_get_types.3 dwarf_type_die_offset.3 \ |
156 |
dwarf_get_types.3 dwarf_type_cu_offset.3 \ |
157 |
dwarf_get_types.3 dwarf_type_name_offsets.3 \ |
158 |
dwarf_get_types.3 dwarf_typename.3 \ |
159 |
dwarf_get_vars.3 dwarf_var_die_offset.3 \ |
160 |
dwarf_get_vars.3 dwarf_var_cu_offset.3 \ |
161 |
dwarf_get_vars.3 dwarf_var_name_offsets.3 \ |
162 |
dwarf_get_vars.3 dwarf_varname.3 \ |
163 |
dwarf_get_weaks.3 dwarf_weak_die_offset.3 \ |
164 |
dwarf_get_weaks.3 dwarf_weak_cu_offset.3 \ |
165 |
dwarf_get_weaks.3 dwarf_weak_name_offsets.3 \ |
166 |
dwarf_get_weaks.3 dwarf_weakname.3 \ |
167 |
dwarf_hasform.3 dwarf_whatform.3 \ |
168 |
dwarf_hasform.3 dwarf_whatform_direct.3 \ |
169 |
dwarf_highpc.3 dwarf_arrayorder.3 \ |
170 |
dwarf_highpc.3 dwarf_bitoffset.3 \ |
171 |
dwarf_highpc.3 dwarf_bitsize.3 \ |
172 |
dwarf_highpc.3 dwarf_bytesize.3 \ |
173 |
dwarf_highpc.3 dwarf_lowpc.3 \ |
174 |
dwarf_highpc.3 dwarf_srclang.3 \ |
175 |
dwarf_lineno.3 dwarf_lineaddr.3 \ |
176 |
dwarf_lineno.3 dwarf_linebeginstatement.3 \ |
177 |
dwarf_lineno.3 dwarf_lineblock.3 \ |
178 |
dwarf_lineno.3 dwarf_lineendsequence.3 \ |
179 |
dwarf_lineno.3 dwarf_lineoff.3 \ |
180 |
dwarf_lineno.3 dwarf_linesrc.3 \ |
181 |
dwarf_lineno.3 dwarf_line_srcfileno.3 \ |
182 |
dwarf_seterrarg.3 dwarf_seterrhand.3 \ |
183 |
dwarf_set_frame_cfa_value.3 dwarf_set_frame_rule_initial_value.3 \ |
184 |
dwarf_set_frame_cfa_value.3 dwarf_set_frame_rule_table_size.3 \ |
185 |
dwarf_set_frame_cfa_value.3 dwarf_set_frame_same_value.3 \ |
186 |
dwarf_set_frame_cfa_value.3 dwarf_set_frame_undefined_value.3 |
187 |
|
188 |
do-install: |
189 |
${INSTALL_LIB} ${WRKSRC}/libdwarf/libdwarf.so.3 ${PREFIX}/lib/ |
190 |
${INSTALL_LIB} ${WRKSRC}/libdwarf/libdwarf.a ${PREFIX}/lib/ |
191 |
(cd ${PREFIX}/lib && ${LN} -s libdwarf.so.3 libdwarf.so) |
192 |
|
193 |
${INSTALL_DATA} ${WRKSRC}/libdwarf/dwarf.h ${PREFIX}/include/ |
194 |
${INSTALL_DATA} ${WRKSRC}/libdwarf/libdwarf.h ${PREFIX}/include/ |
195 |
|
196 |
for f in ${MAN3}; do \ |
197 |
${INSTALL_MAN} ${WRKSRC}/libdwarf/$$f ${MANPREFIX}/man/man3/ ; \ |
198 |
done |
199 |
|
200 |
.include <bsd.port.mk> |