Skip to content

Commit

Permalink
readpe: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed May 17, 2024
1 parent a52dd80 commit b499dab
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
37 changes: 37 additions & 0 deletions sysutils/readpe/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0
PortGroup makefile 1.0

github.setup mentebinaria readpe 0.84 v
github.tarball_from archive
revision 0
categories sysutils devel
license GPL-2+
maintainers {makr @mohd-akram} openmaintainer

description toolkit to analyze PE (Portable Executable) binaries

long_description Open source, full-featured, multiplatform command line \
toolkit to work with and analyze PE (Portable Executable) \
binaries.

checksums rmd160 fc31a223b974c58358cd5b9da26031f9661c6dd5 \
sha256 2d0dc383735802db62234297ae1703ccbf4b6d2f2754e284eb90d6f0a57aa670 \
size 642372

depends_lib path:lib/libssl.dylib:openssl

patchfiles patch-lib-libpe-makefile.diff

build.args prefix=${prefix}
destroot.args prefix=${prefix}

post-destroot {
set bash_dir ${prefix}/share/bash-completion/completions
set zsh_dir ${prefix}/share/zsh/site-functions
xinstall -d ${destroot}${bash_dir} ${destroot}${zsh_dir}
copy ${worksrcpath}/completion/bash/${name} ${destroot}${bash_dir}
copy ${worksrcpath}/completion/zsh/_${name} ${destroot}${zsh_dir}
}
11 changes: 11 additions & 0 deletions sysutils/readpe/files/patch-lib-libpe-makefile.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- lib/libpe/Makefile.orig 2024-02-01 07:39:11
+++ lib/libpe/Makefile 2024-05-17 10:24:36
@@ -106,7 +106,7 @@
$(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^ $(LIBS)
else ifeq ($(PLATFORM_OS), Darwin)
$(LINK) -headerpad_max_install_names -dynamiclib \
- -flat_namespace -install_name $(LIBNAME).$(VERSION).dylib \
+ -flat_namespace -install_name $(libdir)/$(LIBNAME).$(VERSION).dylib \
-current_version $(VERSION) -compatibility_version $(VERSION) \
$(LDFLAGS) -o $(LIBNAME).dylib $^ $(LIBS)
else ifeq ($(PLATFORM_OS), CYGWIN)

0 comments on commit b499dab

Please sign in to comment.