summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2022-07-10 02:55:02 +0000
committerkhorben <khorben@pkgsrc.org>2022-07-10 02:55:02 +0000
commit977fe6e6a3c18a62a9e453d586468c75f3833e15 (patch)
treed297462180e9dd17f4ab2d0a244f2088aed89dd2
parent2858aece8f5b418cba4a1b1edfa0b910eeb58c78 (diff)
downloadpkgsrc-977fe6e6a3c18a62a9e453d586468c75f3833e15.tar.gz
pev: fix building on macOS
Tested on NetBSD/amd64, macOS/amd64.
-rw-r--r--security/pev/Makefile7
-rw-r--r--security/pev/PLIST12
2 files changed, 12 insertions, 7 deletions
diff --git a/security/pev/Makefile b/security/pev/Makefile
index f44a8e0d6af..d8e088eaa39 100644
--- a/security/pev/Makefile
+++ b/security/pev/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2021/05/30 00:49:51 khorben Exp $
+# $NetBSD: Makefile,v 1.11 2022/07/10 02:55:02 khorben Exp $
.include "../../security/libpe/Makefile.common"
@@ -15,5 +15,10 @@ MAKE_FLAGS+= DESTDIR=${DESTDIR}
MAKE_FLAGS+= prefix=${PREFIX}
MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
+OPSYSVARS+= SOEXT
+SOEXT.Darwin= dylib
+SOEXT.*= so
+PLIST_SUBST+= SOEXT=${SOEXT}
+
.include "../../security/libpe/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/pev/PLIST b/security/pev/PLIST
index 2c6d8db8a3c..a348c3fca2a 100644
--- a/security/pev/PLIST
+++ b/security/pev/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2021/05/29 23:28:36 khorben Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/07/10 02:55:02 khorben Exp $
bin/ofs2rva
bin/pedis
bin/pehash
@@ -10,11 +10,11 @@ bin/pesec
bin/pestr
bin/readpe
bin/rva2ofs
-lib/pev/plugins/csv_plugin.so
-lib/pev/plugins/html_plugin.so
-lib/pev/plugins/json_plugin.so
-lib/pev/plugins/text_plugin.so
-lib/pev/plugins/xml_plugin.so
+lib/pev/plugins/csv_plugin.${SOEXT}
+lib/pev/plugins/html_plugin.${SOEXT}
+lib/pev/plugins/json_plugin.${SOEXT}
+lib/pev/plugins/text_plugin.${SOEXT}
+lib/pev/plugins/xml_plugin.${SOEXT}
man/man1/ofs2rva.1
man/man1/pedis.1
man/man1/pehash.1