summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2018-04-04 17:40:23 +0000
committertron <tron@pkgsrc.org>2018-04-04 17:40:23 +0000
commit7c64532fb5428997572afd9c824ab8a2f552719f (patch)
tree525bfbe370275de97acffa76c9c36dc3ee4b1cca
parenta24dadff41c9fa1ba960be1ecfbe86057be752f2 (diff)
downloadpkgsrc-7c64532fb5428997572afd9c824ab8a2f552719f.tar.gz
hexchat: Fix package list for macOS
Shared objects use the extension ".dylib" and ".so" under macOS. Adapt the package list dynamically as necessary
-rw-r--r--chat/hexchat/Makefile7
-rw-r--r--chat/hexchat/PLIST14
2 files changed, 13 insertions, 8 deletions
diff --git a/chat/hexchat/Makefile b/chat/hexchat/Makefile
index 5f9ea620283..5ec43452f1e 100644
--- a/chat/hexchat/Makefile
+++ b/chat/hexchat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2018/03/17 11:56:15 tnn Exp $
+# $NetBSD: Makefile,v 1.24 2018/04/04 17:40:23 tron Exp $
DISTNAME= hexchat-2.14.1
CATEGORIES= chat
@@ -33,6 +33,11 @@ REPLACE_PYTHON+= plugins/perl/generate_header.py
REPLACE_PYTHON+= src/common/make-te.py
REPLACE_PYTHON+= meson_post_install.py
+OPSYSVARS+= SOEXT
+SOEXT.Darwin= dylib
+SOEXT.*= so
+PLIST_SUBST+= SOEXT=${SOEXT}
+
.include "../../devel/py-meson/build.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
diff --git a/chat/hexchat/PLIST b/chat/hexchat/PLIST
index 208f64a0208..b435c52435c 100644
--- a/chat/hexchat/PLIST
+++ b/chat/hexchat/PLIST
@@ -1,13 +1,13 @@
-@comment $NetBSD: PLIST,v 1.3 2018/03/17 11:56:15 tnn Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/04/04 17:40:23 tron Exp $
${PLIST.gtk2}bin/hexchat
bin/hexchat-text
include/hexchat-plugin.h
-lib/hexchat/plugins/checksum.so
-${PLIST.fishlim}lib/hexchat/plugins/fishlim.so
-${PLIST.lua}lib/hexchat/plugins/lua.so
-${PLIST.perl}lib/hexchat/plugins/perl.so
-${PLIST.python}lib/hexchat/plugins/python.so
-${PLIST.libpci}lib/hexchat/plugins/sysinfo.so
+lib/hexchat/plugins/checksum.${SOEXT}
+${PLIST.fishlim}lib/hexchat/plugins/fishlim.${SOEXT}
+${PLIST.lua}lib/hexchat/plugins/lua.${SOEXT}
+${PLIST.perl}lib/hexchat/plugins/perl.${SOEXT}
+${PLIST.python}lib/hexchat/plugins/python.${SOEXT}
+${PLIST.libpci}lib/hexchat/plugins/sysinfo.${SOEXT}
lib/pkgconfig/hexchat-plugin.pc
${PLIST.gtk2}man/man1/hexchat.1
${PLIST.gtk2}share/applications/io.github.Hexchat.desktop