Tue Apr 20 00:48:02 2021 UTC ()
hexchat: fix Python plugin-enabled builds

Whether Python is required strictly as a build tool or also at runtime
is determined in options.mk, and PYTHON_FOR_BUILD_ONLY is set there, if
needed. (And pyversion.mk is included via tool.mk now.)


(gutteridge)
diff -r1.50 -r1.51 pkgsrc/chat/hexchat/Makefile

cvs diff -r1.50 -r1.51 pkgsrc/chat/hexchat/Makefile (expand / switch to unified diff)

--- pkgsrc/chat/hexchat/Makefile 2021/04/19 13:51:17 1.50
+++ pkgsrc/chat/hexchat/Makefile 2021/04/20 00:48:02 1.51
@@ -1,49 +1,48 @@ @@ -1,49 +1,48 @@
1# $NetBSD: Makefile,v 1.50 2021/04/19 13:51:17 pgoyette Exp $ 1# $NetBSD: Makefile,v 1.51 2021/04/20 00:48:02 gutteridge Exp $
2 2
3DISTNAME= hexchat-2.14.3 3DISTNAME= hexchat-2.14.3
4PKGREVISION= 7 4PKGREVISION= 7
5CATEGORIES= chat 5CATEGORIES= chat
6MASTER_SITES= https://dl.hexchat.net/hexchat/ 6MASTER_SITES= https://dl.hexchat.net/hexchat/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://hexchat.github.io/ 10HOMEPAGE= https://hexchat.github.io/
11COMMENT= IRC client based on XChat 11COMMENT= IRC client based on XChat
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND mit 12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND mit
13 13
14USE_TOOLS+= pkg-config msgfmt xgettext 14USE_TOOLS+= pkg-config msgfmt xgettext
15 15
16PYTHON_FOR_BUILD_ONLY= tool 
17.include "../../lang/python/tool.mk" 
18 
19USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
20 17
21# XXX fails without GNU msgfmt 18# XXX fails without GNU msgfmt
22_TOOLS_USE_PKGSRC.msgfmt= yes 19_TOOLS_USE_PKGSRC.msgfmt= yes
23 20
24MESON_ARGS+= -Dwith-text=true 21MESON_ARGS+= -Dwith-text=true
25MESON_ARGS+= -Dwith-appdata=false 22MESON_ARGS+= -Dwith-appdata=false
26 23
27REPLACE_PYTHON+= plugins/perl/generate_header.py 24REPLACE_PYTHON+= plugins/perl/generate_header.py
28REPLACE_PYTHON+= src/common/make-te.py 25REPLACE_PYTHON+= src/common/make-te.py
29 26
30OPSYSVARS+= SOEXT 27OPSYSVARS+= SOEXT
31SOEXT.Darwin= dylib 28SOEXT.Darwin= dylib
32SOEXT.*= so 29SOEXT.*= so
33PLIST_SUBST+= SOEXT=${SOEXT} 30PLIST_SUBST+= SOEXT=${SOEXT}
34 31
35LDFLAGS.SunOS+= -lsocket -lnsl 32LDFLAGS.SunOS+= -lsocket -lnsl
36 33
37PKGCONFIG_OVERRIDE+= data/pkgconfig/hexchat-plugin.pc.in 34PKGCONFIG_OVERRIDE+= data/pkgconfig/hexchat-plugin.pc.in
38 35
39.include "options.mk" 36.include "options.mk"
40.include "../../devel/meson/build.mk" 37.include "../../devel/meson/build.mk"
41.include "../../converters/libiconv/buildlink3.mk" 38.include "../../converters/libiconv/buildlink3.mk"
42.include "../../devel/glib2/buildlink3.mk" 39.include "../../devel/glib2/buildlink3.mk"
43.include "../../devel/pango/buildlink3.mk" 40.include "../../devel/pango/buildlink3.mk"
44.include "../../lang/python/pyversion.mk" 41# Whether Python is required strictly as a build tool or also at runtime is
 42# determined in options.mk, and PYTHON_FOR_BUILD_ONLY is set there, if needed.
 43.include "../../lang/python/tool.mk"
45.include "../../textproc/iso-codes/buildlink3.mk" 44.include "../../textproc/iso-codes/buildlink3.mk"
46.include "../../textproc/libxml2/buildlink3.mk" 45.include "../../textproc/libxml2/buildlink3.mk"
47.include "../../mk/dlopen.buildlink3.mk" 46.include "../../mk/dlopen.buildlink3.mk"
48.include "../../mk/pthread.buildlink3.mk" 47.include "../../mk/pthread.buildlink3.mk"
49.include "../../mk/bsd.pkg.mk" 48.include "../../mk/bsd.pkg.mk"