47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2021/12/08 16:02:42 adam Exp $
|
|
|
|
DISTNAME= json-glib-1.6.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= textproc gnome
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/json-glib/${PKGVERSION_NOREV:R}/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://wiki.gnome.org/Projects/JsonGlib
|
|
COMMENT= JSON parser for GLib-based libraries and applications
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
|
|
TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
|
|
|
|
USE_TOOLS+= msgfmt pkg-config xgettext
|
|
|
|
MESON_ARGS+= -Dman=true
|
|
MESON_ARGS+= -Dgtk_doc=disabled
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
_WRAP_EXTRA_ARGS.CC+= -Wno-error=void-pointer-to-int-cast
|
|
CWRAPPERS_APPEND.cc+= -Wno-error=void-pointer-to-int-cast
|
|
.endif
|
|
|
|
# workaround for build failure
|
|
# https://gitlab.gnome.org/GNOME/json-glib/issues/35
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/json-glib
|
|
|
|
.include "options.mk"
|
|
|
|
PRINT_PLIST_AWK+= \
|
|
($$0 ~ /^lib\/girepository-1.0\//) || \
|
|
($$0 ~ /^share\/gir-1.0\//) \
|
|
{ $$0 = "$${PLIST.introspection}" $$0; }
|
|
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
|
|
|
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.38.0
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/meson/build.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|