Import libdwarf-20160115.

Library to access the DWARF debugging file format which supports source level
debugging of a number of procedural languages, such as C, C++, and Fortran.
See http://www.dwarfstd.org for DWARF specification.

It also provides the dwarfdump tool.

req. by and ok mpi@
This commit is contained in:
ajacoutot 2016-03-26 12:53:30 +00:00
parent 8e394a0545
commit 0f16a7b099
5 changed files with 77 additions and 0 deletions

47
devel/libdwarf/Makefile Normal file
View File

@ -0,0 +1,47 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/03/26 12:53:30 ajacoutot Exp $
COMMENT= library to access the DWARF debugging file format
V= 20160115
DISTNAME= libdwarf-${V}
WRKDIST= ${WRKDIR}/dwarf-${V}
SHARED_LIBS= dwarf 0.0
CATEGORIES= devel
HOMEPAGE= https://www.prevanders.net/dwarf.html
# GPLv2 - LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c elf z
MASTER_SITES= https://www.prevanders.net/
LIB_DEPENDS= devel/libelf
NO_TEST= Yes
FLAGS= $$(pkg-config --cflags libelf)
CFLAGS= ${FLAGS}
CXXFLAGS= ${FLAGS}
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="${FLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-shared
pre-configure:
${SUBST_CMD} ${WRKSRC}/libdwarf/Makefile.in
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/libdwarf
${INSTALL_DATA} ${WRKBUILD}/libdwarf/{,lib}dwarf.h \
${PREFIX}/include/libdwarf/
${INSTALL_DATA} ${WRKBUILD}/libdwarf/libdwarf.{a,so.${LIBdwarf_VERSION}} \
${PREFIX}/lib/
${INSTALL_PROGRAM} ${WRKBUILD}/dwarfdump/dwarfdump \
${PREFIX}/bin/
.include <bsd.port.mk>

2
devel/libdwarf/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (libdwarf-20160115.tar.gz) = 6NrzAxgZU3UfCkdhtrBaI46AJjXgjX/IN+RG4mshLzM=
SIZE (libdwarf-20160115.tar.gz) = 1538930

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-libdwarf_Makefile_in,v 1.1.1.1 2016/03/26 12:53:31 ajacoutot Exp $
--- libdwarf/Makefile.in.orig Sat Mar 26 13:42:10 2016
+++ libdwarf/Makefile.in Sat Mar 26 13:43:05 2016
@@ -123,12 +123,12 @@ OBJS= dwarf_abbrev.o \
pro_weaks.o
-all: @build_shared@ @build_nonshared@
+all: libdwarf.so.${LIBdwarf_VERSION} @build_nonshared@
libdwarf.a: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o
$(AR) $(ARFLAGS) $@ $(OBJS) dwarf_names.o > ar-output-temp
-libdwarf.so: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o
+libdwarf.so.${LIBdwarf_VERSION}: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o
$(CC) $(CFLAGS) -shared $(OBJS) dwarf_names.o $(dwfzlib) -o $@
none:

3
devel/libdwarf/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Library to access the DWARF debugging file format which supports source level
debugging of a number of procedural languages, such as C, C++, and Fortran.
See http://www.dwarfstd.org for DWARF specification.

7
devel/libdwarf/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/03/26 12:53:31 ajacoutot Exp $
@bin bin/dwarfdump
include/libdwarf/
include/libdwarf/dwarf.h
include/libdwarf/libdwarf.h
lib/libdwarf.a
@lib lib/libdwarf.so.${LIBdwarf_VERSION}