overhaul the way gnome ports pull in gobject-introspection, gtk-doc, vala and

yelp. they can be used by setting MODGNOME_TOOLS to pull in the dependencies
and setting the configure arguments.

discussed with an ok aja@

oh, and *cheeese*
This commit is contained in:
jasper 2011-09-20 20:50:33 +00:00
parent b9c33e29db
commit 309bd6e2ad

View File

@ -1,4 +1,4 @@
# $OpenBSD: gnome.port.mk,v 1.45 2011/09/19 09:07:24 jasper Exp $
# $OpenBSD: gnome.port.mk,v 1.46 2011/09/20 20:50:33 jasper Exp $
#
# Module for GNOME related ports
#
@ -14,6 +14,9 @@ CATEGORIES+= x11/gnome
.if ${NO_BUILD:L} == "no"
USE_LIBTOOL?= Yes
MODULES+= textproc/intltool
. if defined(CONFIGURE_STYLE) && ${CONFIGURE_STYLE:Mgnu}
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
. endif
.endif
# Set to 'yes' if there are .desktop files in the package list.
@ -21,12 +24,6 @@ MODULES+= textproc/intltool
MODGNOME_RUN_DEPENDS+= devel/desktop-file-utils
.endif
# XXX: Move to MODGNOME_TOOLS=yelp Only here for 5-day plan backward compat.
.if defined(MODGNOME_HELP_FILES) && ${MODGNOME_HELP_FILES:L} == "yes"
MODGNOME_BUILD_DEPENDS+=x11/gnome/doc-utils
MODGNOME_RUN_DEPENDS+= x11/gnome/yelp
.endif
USE_GMAKE?= Yes
FAKE_FLAGS += itlocaledir="${PREFIX}/share/locale/"
@ -52,17 +49,17 @@ MODGNOME_CONFIGURE_ARGS_vala=--disable-vala
.if defined(MODGNOME_TOOLS)
. if ${MODGNOME_TOOLS:Mgoi}
MODGOME_CONFIGURE_ARGS_goi+=--enable-introspection
MODGNOME_CONFIGURE_ARGS_goi=--enable-introspection
MODGNOME_BUILD_DEPENDS+=devel/gobject-introspection
. endif
. if ${MODGNOME_TOOLS:Mgtk-doc}
MODGNOME_CONFIGURE_ARGS_gtkdoc+=--enable-gtk-doc
MODGNOME_CONFIGURE_ARGS_gtkdoc=--enable-gtk-doc
MODGNOME_BUILD_DEPENDS+=textproc/gtk-doc
. endif
. if ${MODGNOME_TOOLS:Mvala}
MODGNOME_CONFIGURE_ARGS_vala+=--enable-vala
MODGNOME_CONFIGURE_ARGS_vala=--enable-vala
MODGNOME_BUILD_DEPENDS+=lang/vala
. endif
@ -74,9 +71,9 @@ MODGNOME_CONFIGURE_ARGS_vala=--disable-vala
. endif
.endif
#CONFIGURE_ARGS+=${MODGNOME_CONFIGURE_ARGS_goi} \
# ${MODGNOME_CONFIGURE_ARGS_gtkdoc} \
# ${MODGNOME_CONFIGURE_ARGS_vala}
CONFIGURE_ARGS+=${MODGNOME_CONFIGURE_ARGS_goi} \
${MODGNOME_CONFIGURE_ARGS_gtkdoc} \
${MODGNOME_CONFIGURE_ARGS_vala}
.if defined(MODGNOME_BUILD_DEPENDS)
BUILD_DEPENDS+= ${MODGNOME_BUILD_DEPENDS}