summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2021-05-10 16:04:11 +0200
committerAdriaan de Groot <adridg@FreeBSD.org>2021-07-19 15:57:02 +0200
commit62fb8fa415e89d736decc94be35507337fe4f1ab (patch)
treeea461e3a93d1ab3ded6bdcaa48edad04b73f4930
parentemulators/yaze-ag: update to version 2.51.0 (diff)
devel/elf-dissector: New port, GUI Tools for ELF inspection
ELF-Dissector is a tool from the KDE Community for doing visually pleasing inspections of, and optimizations on, ELF files, including whole applications. The tool is at an early stage of development (and needs work on FreeBSD), but is, in itself, quite useful for chasing unused dependencies and the like.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/elf-dissector/Makefile28
-rw-r--r--devel/elf-dissector/distinfo3
-rw-r--r--devel/elf-dissector/pkg-descr11
-rw-r--r--devel/elf-dissector/pkg-plist11
5 files changed, 54 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 777738e5e0c2..f45d9b0ee978 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -537,6 +537,7 @@
SUBDIR += egypt
SUBDIR += eiffelstudio
SUBDIR += electron12
+ SUBDIR += elf-dissector
SUBDIR += elf
SUBDIR += elfio
SUBDIR += elfkickers
diff --git a/devel/elf-dissector/Makefile b/devel/elf-dissector/Makefile
new file mode 100644
index 000000000000..f5d1b8a1c1d3
--- /dev/null
+++ b/devel/elf-dissector/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= elf-dissector
+DISTVERSION= 0.0.1
+CATEGORIES= devel kde
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Tools for inspecting, analyzing and optimizing ELF files
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libcapstone.so:devel/capstone4
+
+BUILD_DEPENDS= gnulibiberty>=2.33.1:devel/gnulibiberty \
+ binutils>=2.33.1:devel/binutils
+
+USES= cmake compiler:c++17-lang \
+ kde:5 pkgconfig qt:5
+
+USE_QT= core \
+ buildtools_build qmake_build testlib_build
+USE_KDE= itemmodels \
+ doctools_build ecm_build
+
+KDE_INVENT= 92497fd2b887ff9ba1484450788db3910440213e sdk
+
+.include <bsd.port.mk>
+
+
diff --git a/devel/elf-dissector/distinfo b/devel/elf-dissector/distinfo
new file mode 100644
index 000000000000..8b5d80d8f58a
--- /dev/null
+++ b/devel/elf-dissector/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1626701595
+SHA256 (sdk-elf-dissector-92497fd2b887ff9ba1484450788db3910440213e_GL0.tar.gz) = 3ea3fb9a59b161de8f0ab97dab53281d36f6e3d888b319cf5f46626b1a1aa947
+SIZE (sdk-elf-dissector-92497fd2b887ff9ba1484450788db3910440213e_GL0.tar.gz) = 168293
diff --git a/devel/elf-dissector/pkg-descr b/devel/elf-dissector/pkg-descr
new file mode 100644
index 000000000000..089fcf3b1427
--- /dev/null
+++ b/devel/elf-dissector/pkg-descr
@@ -0,0 +1,11 @@
+ELF Dissector: Static analysis tool for ELF libraries and executables.
+
+ELF Dissector is useful if you need to do one or more of the following:
+
+- Inspecting forward and backward dependencies, on library
+ and symbol level.
+- Identifying load-time performance bottlenecks such as expensive
+ static constructors or excessive relocations.
+- Size profiling of ELF files.
+
+WWW: https://invent.kde.org/sdk/elf-dissector
diff --git a/devel/elf-dissector/pkg-plist b/devel/elf-dissector/pkg-plist
new file mode 100644
index 000000000000..7f8fd2b74893
--- /dev/null
+++ b/devel/elf-dissector/pkg-plist
@@ -0,0 +1,11 @@
+bin/elf-deadcodefinder
+bin/elf-depcheck
+bin/elf-dissector
+bin/elf-optimizer
+bin/elf-packcheck
+bin/elf-rtticheck
+bin/ldbenchmark-runner
+share/applications/org.kde.elf-dissector.desktop
+share/icons/hicolor/16x16/apps/elf-dissector.svg
+share/icons/hicolor/32x32/apps/elf-dissector.svg
+share/metainfo/org.kde.elf-dissector.appdata.xml