mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
PORTNAME= gobject-introspection
|
|
DISTVERSION= 1.78.1
|
|
PORTREVISION= 2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GNOME
|
|
DIST_SUBDIR= gnome
|
|
|
|
MAINTAINER= desktop@FreeBSD.org
|
|
COMMENT= Generate interface introspection data for GObject libraries
|
|
WWW= https://gi.readthedocs.io/en/latest/
|
|
|
|
LICENSE= GPLv2+ LGPL20+
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_LGPL20+ = ${WRKSRC}/COPYING.LGPL
|
|
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING.GPL
|
|
|
|
LIB_DEPENDS= libffi.so:devel/libffi
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
USES= bison gettext gnome localbase meson pkgconfig python tar:xz
|
|
USE_GNOME= glib20
|
|
USE_LDCONFIG= yes
|
|
MESON_ARGS= -Ddoctool=disabled \
|
|
-Dpython=${PYTHON_CMD}
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
|
|
TEST_MESON_ENABLED= cairo
|
|
TEST_LIB_DEPENDS= libcairo.so:graphics/cairo
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKSRC}/tools/meson.build
|
|
|
|
post-stage:
|
|
@${PYTHON_CMD} -m compileall -d ${PREFIX}/lib/${PORTNAME} \
|
|
"${STAGEDIR}${PREFIX}/lib/${PORTNAME}"
|
|
@${PYTHON_CMD} -O -m compileall -d ${PREFIX}/lib/${PORTNAME} \
|
|
"${STAGEDIR}${PREFIX}/lib/${PORTNAME}"
|
|
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${PREFIX}/lib/gobject-introspection/giscanner/doctemplates/*/meson.build*
|
|
|
|
.include <bsd.port.mk>
|