ports/devel/gobject-introspection/Makefile

61 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

2023-08-16 22:26:55 +00:00
COMMENT= GObject Introspection
GNOME_VERSION= 1.80.1
2023-08-16 22:26:55 +00:00
GNOME_PROJECT= gobject-introspection
REVISION= 0
2023-08-16 22:26:55 +00:00
CATEGORIES= devel
SHARED_LIBS += girepository-1.0 3.2 # 1.0.0
2023-08-16 22:26:55 +00:00
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# Library: LGPLv2+
# Tools: GPLv2+
PERMIT_PACKAGE= Yes
MODULES= devel/meson \
lang/python \
x11/gnome
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
2023-08-16 22:26:55 +00:00
WANTLIB += c ffi gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 m
# cairo is only needed for tests;
# prevent cyclic dependency: g-o-i -> cairo -> glib2 -> g-o-i
CONFIGURE_ARGS += -Dcairo=disabled
LIB_DEPENDS= devel/glib2,bootstrap
2023-08-16 22:26:55 +00:00
BUILD_DEPENDS= devel/bison \
textproc/py-markdown${MODPY_FLAVOR} \
www/py-mako${MODPY_FLAVOR}
RUN_DEPENDS= textproc/py-markdown${MODPY_FLAVOR} \
2023-08-16 22:26:55 +00:00
www/py-mako${MODPY_FLAVOR}
# g-ir-scanner uses distutils functions. these are overridden by setuptools
# if setuptools is present (see site-packages/distutils-precedence.pth);
# enforce a dependency to avoid the case where setuptools might be removed
# mid-run, causing g-ir-scanner to fail.
#
# could be removed if/when gobject-introspection stops using distutils;
# see https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/395
RUN_DEPENDS+= devel/py-setuptools${MODPY_FLAVOR}
# XXX: tests/scanner/test_transformer.py fails otherwise
TEST_DEPENDS+= textproc/gsed
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
# tools/g-ir-scanner doesn't respect LDFLAGS passed through CONFIGURE_ENV
MAKE_ENV= LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
.endif
# XXX: tidy-up some GNU-isms; see above.
pre-test:
sed -i 's,\"sed ,\"gsed ,g' ${WRKSRC}/tests/scanner/test_transformer.py
.include <bsd.port.mk>