security: Use hacks.mk to avoid NetBSD msgfmt on NetBSD only.diff -r1.21 -r1.22 pkgsrc/security/gcr/Makefile
(nia)
@@ -1,42 +1,35 @@ | @@ -1,42 +1,35 @@ | |||
1 | # $NetBSD: Makefile,v 1.21 2022/01/13 08:02:29 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.22 2022/03/12 07:28:19 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= gcr-3.38.1 | 3 | DISTNAME= gcr-3.38.1 | |
4 | CATEGORIES= security | 4 | CATEGORIES= security | |
5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gcr/${PKGVERSION_NOREV:R}/} | 5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gcr/${PKGVERSION_NOREV:R}/} | |
6 | EXTRACT_SUFX= .tar.xz | 6 | EXTRACT_SUFX= .tar.xz | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.gnome.org/ | 9 | HOMEPAGE= https://www.gnome.org/ | |
10 | COMMENT= Library for crypto UI and related tasks | 10 | COMMENT= Library for crypto UI and related tasks | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | BUILD_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | 13 | BUILD_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | |
14 | 14 | |||
15 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
16 | USE_TOOLS+= gmake intltool msgfmt perl pkg-config | 16 | USE_TOOLS+= gmake intltool msgfmt perl pkg-config | |
17 | USE_TOOLS+= aclocal autoconf automake autopoint | 17 | USE_TOOLS+= aclocal autoconf automake autopoint | |
18 | USE_TOOLS+= gdbus-codegen readlink | 18 | USE_TOOLS+= gdbus-codegen readlink | |
19 | GNU_CONFIGURE= yes | 19 | GNU_CONFIGURE= yes | |
20 | CONFIGURE_ARGS+= --enable-gtk-doc | 20 | CONFIGURE_ARGS+= --enable-gtk-doc | |
21 | CONFIGURE_ARGS+= --enable-vala | 21 | CONFIGURE_ARGS+= --enable-vala | |
22 | 22 | |||
23 | .include "../../mk/bsd.prefs.mk" | |||
24 | ||||
25 | # To avoid msgfmt: unknown option -- desktop | |||
26 | .if ${OPSYS} == "NetBSD" | |||
27 | TOOLS_PLATFORM.msgfmt= | |||
28 | .endif | |||
29 | ||||
30 | PKGCONFIG_OVERRIDE+= gck-1.pc.in | 23 | PKGCONFIG_OVERRIDE+= gck-1.pc.in | |
31 | PKGCONFIG_OVERRIDE+= gcr-base-3.pc.in | 24 | PKGCONFIG_OVERRIDE+= gcr-base-3.pc.in | |
32 | PKGCONFIG_OVERRIDE+= gcr-ui.pc.in | 25 | PKGCONFIG_OVERRIDE+= gcr-ui.pc.in | |
33 | PKGCONFIG_OVERRIDE+= gcr-3.pc.in | 26 | PKGCONFIG_OVERRIDE+= gcr-3.pc.in | |
34 | 27 | |||
35 | TEST_TARGET= check | 28 | TEST_TARGET= check | |
36 | 29 | |||
37 | pre-configure: | 30 | pre-configure: | |
38 | cd ${WRKSRC} && NOCONFIGURE=1 ./autogen.sh | 31 | cd ${WRKSRC} && NOCONFIGURE=1 ./autogen.sh | |
39 | 32 | |||
40 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.38 | 33 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.38 | |
41 | .include "../../devel/glib2/buildlink3.mk" | 34 | .include "../../devel/glib2/buildlink3.mk" | |
42 | .include "../../devel/gobject-introspection/buildlink3.mk" | 35 | .include "../../devel/gobject-introspection/buildlink3.mk" |
# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:28:19 nia Exp $
.if !defined(GCR_HACKS_MK)
GCR_HACKS_MK:=
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "NetBSD"
# Old GPLv2 version of msgfmt in NetBSD does not support --desktop/--xml.
TOOLS_PLATFORM.msgfmt= # none
PKG_HACKS+= avoid-gplv2-msgfmt
.endif
.endif # GCR_HACKS_MK
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.39 2022/01/25 19:40:46 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.40 2022/03/12 07:28:19 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= polkit-0.120 | 3 | DISTNAME= polkit-0.120 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= security | 5 | CATEGORIES= security | |
6 | MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/ | 6 | MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/ | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.freedesktop.org/wiki/Software/polkit | 9 | HOMEPAGE= https://www.freedesktop.org/wiki/Software/polkit | |
10 | COMMENT= Authorization Manager | 10 | COMMENT= Authorization Manager | |
11 | LICENSE= gnu-lgpl-v2 | 11 | LICENSE= gnu-lgpl-v2 | |
12 | 12 | |||
13 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | 13 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | |
14 | TOOL_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools | 14 | TOOL_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools | |
@@ -18,29 +18,26 @@ TOOL_DEPENDS+= docbook-xsl-[0-9]*:../.. | @@ -18,29 +18,26 @@ TOOL_DEPENDS+= docbook-xsl-[0-9]*:../.. | |||
18 | TOOL_DEPENDS+= gtk-doc-[0-9]*:../../textproc/gtk-doc | 18 | TOOL_DEPENDS+= gtk-doc-[0-9]*:../../textproc/gtk-doc | |
19 | 19 | |||
20 | NOT_PAX_MPROTECT_SAFE= lib/polkit-1/polkitd | 20 | NOT_PAX_MPROTECT_SAFE= lib/polkit-1/polkitd | |
21 | 21 | |||
22 | GNU_CONFIGURE= yes | 22 | GNU_CONFIGURE= yes | |
23 | GNU_CONFIGURE_STRICT= no # has sub-configures | 23 | GNU_CONFIGURE_STRICT= no # has sub-configures | |
24 | USE_LANGUAGES= c c++14 | 24 | USE_LANGUAGES= c c++14 | |
25 | USE_LIBTOOL= yes | 25 | USE_LIBTOOL= yes | |
26 | USE_PKGLOCALEDIR= yes | 26 | USE_PKGLOCALEDIR= yes | |
27 | USE_TOOLS+= pkg-config gmake perl | 27 | USE_TOOLS+= pkg-config gmake perl | |
28 | USE_TOOLS+= intltool msgfmt msgmerge xgettext | 28 | USE_TOOLS+= intltool msgfmt msgmerge xgettext | |
29 | USE_TOOLS+= autoconf autoreconf automake | 29 | USE_TOOLS+= autoconf autoreconf automake | |
30 | 30 | |||
31 | # XXX msgfmt: unknown option -- xml | |||
32 | _TOOLS_USE_PKGSRC.msgfmt= yes | |||
33 | ||||
34 | # configure: error: *** A compiler with support for C++17 language features is required. | 31 | # configure: error: *** A compiler with support for C++17 language features is required. | |
35 | GCC_REQD+= 7 | 32 | GCC_REQD+= 7 | |
36 | 33 | |||
37 | PKGCONFIG_OVERRIDE+= data/polkit-gobject-1.pc.in | 34 | PKGCONFIG_OVERRIDE+= data/polkit-gobject-1.pc.in | |
38 | PKGCONFIG_OVERRIDE+= data/polkit-agent-1.pc.in | 35 | PKGCONFIG_OVERRIDE+= data/polkit-agent-1.pc.in | |
39 | 36 | |||
40 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | 37 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | |
41 | CONFIGURE_ARGS+= --with-polkitd-user=${POLKITD_USER} | 38 | CONFIGURE_ARGS+= --with-polkitd-user=${POLKITD_USER} | |
42 | CONFIGURE_ARGS+= --disable-libsystemd-login | 39 | CONFIGURE_ARGS+= --disable-libsystemd-login | |
43 | CONFIGURE_ARGS+= --disable-libelogind | 40 | CONFIGURE_ARGS+= --disable-libelogind | |
44 | CONFIGURE_ARGS+= --with-duktape | 41 | CONFIGURE_ARGS+= --with-duktape | |
45 | 42 | |||
46 | .include "../../mk/bsd.prefs.mk" | 43 | .include "../../mk/bsd.prefs.mk" |
# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:28:19 nia Exp $
.if !defined(POLKIT_HACKS_MK)
POLKIT_HACKS_MK:=
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "NetBSD"
# Old GPLv2 version of msgfmt in NetBSD does not support --desktop/--xml.
TOOLS_PLATFORM.msgfmt= # none
PKG_HACKS+= avoid-gplv2-msgfmt
.endif
.endif # POLKIT_HACKS_MK
@@ -1,39 +1,32 @@ | @@ -1,39 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.169 2021/12/08 16:06:24 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.170 2022/03/12 07:28:19 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= seahorse-3.38.0.1 | 3 | DISTNAME= seahorse-3.38.0.1 | |
4 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/${PKGBASE}/3.38/} | 4 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/${PKGBASE}/3.38/} | |
5 | PKGREVISION= 4 | 5 | PKGREVISION= 4 | |
6 | CATEGORIES= security gnome | 6 | CATEGORIES= security gnome | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://wiki.gnome.org/Apps/Seahorse | 10 | HOMEPAGE= https://wiki.gnome.org/Apps/Seahorse | |
11 | COMMENT= GNOME encryption interface | 11 | COMMENT= GNOME encryption interface | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | USE_TOOLS+= pkg-config msgfmt xgettext itstool | 14 | USE_TOOLS+= pkg-config msgfmt xgettext itstool | |
15 | USE_TOOLS+= gdbus-codegen | 15 | USE_TOOLS+= gdbus-codegen | |
16 | 16 | |||
17 | # Why does it want specific point releases? | 17 | # Why does it want specific point releases? | |
18 | MESON_ARGS+= -Dcheck-compatible-gpg=false | 18 | MESON_ARGS+= -Dcheck-compatible-gpg=false | |
19 | 19 | |||
20 | .include "../../mk/bsd.prefs.mk" | |||
21 | ||||
22 | # msgfmt: unknown option -- xml | |||
23 | .if ${OPSYS} == "NetBSD" | |||
24 | TOOLS_PLATFORM.msgfmt= | |||
25 | .endif | |||
26 | ||||
27 | PYTHON_FOR_BUILD_ONLY= tool | 20 | PYTHON_FOR_BUILD_ONLY= tool | |
28 | 21 | |||
29 | .include "../../devel/meson/build.mk" | 22 | .include "../../devel/meson/build.mk" | |
30 | .include "../../devel/glib2/schemas.mk" | 23 | .include "../../devel/glib2/schemas.mk" | |
31 | .include "../../devel/gobject-introspection/buildlink3.mk" | 24 | .include "../../devel/gobject-introspection/buildlink3.mk" | |
32 | .include "../../devel/libhandy1/buildlink3.mk" | 25 | .include "../../devel/libhandy1/buildlink3.mk" | |
33 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | 26 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |
34 | .include "../../lang/python/tool.mk" | 27 | .include "../../lang/python/tool.mk" | |
35 | .include "../../lang/vala/buildlink3.mk" | 28 | .include "../../lang/vala/buildlink3.mk" | |
36 | .include "../../net/avahi/buildlink3.mk" | 29 | .include "../../net/avahi/buildlink3.mk" | |
37 | .include "../../net/libsoup/buildlink3.mk" | 30 | .include "../../net/libsoup/buildlink3.mk" | |
38 | .include "../../security/gcr/buildlink3.mk" | 31 | .include "../../security/gcr/buildlink3.mk" | |
39 | .include "../../security/gpgme/buildlink3.mk" | 32 | .include "../../security/gpgme/buildlink3.mk" |
# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:28:19 nia Exp $
.if !defined(SEAHORSE_HACKS_MK)
SEAHORSE_HACKS_MK:=
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "NetBSD"
# Old GPLv2 version of msgfmt in NetBSD does not support --desktop/--xml.
TOOLS_PLATFORM.msgfmt= # none
PKG_HACKS+= avoid-gplv2-msgfmt
.endif
.endif # SEAHORSE_HACKS_MK