2011-09-20 16:59:25 -04:00
|
|
|
# $OpenBSD: gnome.port.mk,v 1.47 2011/09/20 20:59:25 ajacoutot Exp $
|
2008-04-15 07:51:23 -04:00
|
|
|
#
|
2007-05-30 05:19:02 -04:00
|
|
|
# Module for GNOME related ports
|
2008-04-15 07:51:23 -04:00
|
|
|
#
|
2007-05-30 05:19:02 -04:00
|
|
|
|
2010-10-23 10:37:17 -04:00
|
|
|
.if (defined(GNOME_PROJECT) && defined(GNOME_VERSION))
|
2007-05-31 07:30:35 -04:00
|
|
|
DISTNAME= ${GNOME_PROJECT}-${GNOME_VERSION}
|
2010-10-23 10:37:17 -04:00
|
|
|
VERSION= ${GNOME_VERSION}
|
2010-10-23 12:31:29 -04:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_GNOME:=sources/${GNOME_PROJECT}/${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
2011-09-12 08:02:39 -04:00
|
|
|
EXTRACT_SUFX?= .tar.xz
|
2010-10-23 10:37:17 -04:00
|
|
|
CATEGORIES+= x11/gnome
|
|
|
|
.endif
|
2007-05-31 07:30:35 -04:00
|
|
|
|
2007-06-30 08:14:14 -04:00
|
|
|
.if ${NO_BUILD:L} == "no"
|
2007-05-30 05:19:02 -04:00
|
|
|
USE_LIBTOOL?= Yes
|
2007-12-27 15:45:54 -05:00
|
|
|
MODULES+= textproc/intltool
|
2011-09-20 16:50:33 -04:00
|
|
|
. if defined(CONFIGURE_STYLE) && ${CONFIGURE_STYLE:Mgnu}
|
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
|
|
|
. endif
|
2007-06-30 07:39:46 -04:00
|
|
|
.endif
|
2007-05-30 05:19:02 -04:00
|
|
|
|
2008-04-15 07:51:23 -04:00
|
|
|
# Set to 'yes' if there are .desktop files in the package list.
|
2011-09-19 03:44:58 -04:00
|
|
|
.if defined(MODGNOME_DESKTOP_FILE) && ${MODGNOME_DESKTOP_FILE:L} == "yes"
|
2010-11-22 03:36:47 -05:00
|
|
|
MODGNOME_RUN_DEPENDS+= devel/desktop-file-utils
|
2008-04-15 07:51:23 -04:00
|
|
|
.endif
|
|
|
|
|
2011-09-19 03:55:43 -04:00
|
|
|
USE_GMAKE?= Yes
|
|
|
|
|
|
|
|
FAKE_FLAGS += itlocaledir="${PREFIX}/share/locale/"
|
|
|
|
|
|
|
|
# Use MODGNOME_TOOLS to indicate certain tools are needed for building bindings
|
|
|
|
# or for ensuring documentation is available. If an option is not set, it's
|
|
|
|
# explicitly disabled.
|
|
|
|
# Currently supported tools are:
|
2011-09-19 04:47:20 -04:00
|
|
|
# * goi: Build and enable GObject Introspection data.
|
2011-09-19 03:55:43 -04:00
|
|
|
# * gtk-doc: Enable to build the included docs.
|
|
|
|
# * vala: Enable vala bindings.
|
|
|
|
# * yelp: Use this if there are any files under share/gnome/help/
|
2011-09-20 16:59:25 -04:00
|
|
|
# in the pkg list and it calls gnome_help_display() -- gnome-doc-utils is
|
2011-09-19 03:55:43 -04:00
|
|
|
# here to make sure we have a dependency on rarian (scrollkeeper-*) and
|
|
|
|
# have access to the gnome-doc-* tools (not always needed but easier).
|
|
|
|
#
|
|
|
|
# Please note that if you're using multi-packages, you have to use the
|
|
|
|
# MODGNOME_RUN_DEPENDS_${tool} in your multi package RUN_DEPENDS.
|
|
|
|
|
2011-09-19 04:47:20 -04:00
|
|
|
MODGNOME_CONFIGURE_ARGS_gtkdoc=--disable-gtk-doc
|
|
|
|
MODGNOME_CONFIGURE_ARGS_goi=--disable-introspection
|
|
|
|
MODGNOME_CONFIGURE_ARGS_vala=--disable-vala
|
|
|
|
|
2011-09-19 03:55:43 -04:00
|
|
|
.if defined(MODGNOME_TOOLS)
|
2011-09-19 04:47:20 -04:00
|
|
|
. if ${MODGNOME_TOOLS:Mgoi}
|
2011-09-20 16:50:33 -04:00
|
|
|
MODGNOME_CONFIGURE_ARGS_goi=--enable-introspection
|
2011-09-19 03:55:43 -04:00
|
|
|
MODGNOME_BUILD_DEPENDS+=devel/gobject-introspection
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Mgtk-doc}
|
2011-09-20 16:50:33 -04:00
|
|
|
MODGNOME_CONFIGURE_ARGS_gtkdoc=--enable-gtk-doc
|
2011-09-19 03:55:43 -04:00
|
|
|
MODGNOME_BUILD_DEPENDS+=textproc/gtk-doc
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Mvala}
|
2011-09-20 16:50:33 -04:00
|
|
|
MODGNOME_CONFIGURE_ARGS_vala=--enable-vala
|
2011-09-19 03:55:43 -04:00
|
|
|
MODGNOME_BUILD_DEPENDS+=lang/vala
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Myelp}
|
|
|
|
MODGNOME_BUILD_DEPENDS+=x11/gnome/doc-utils
|
2011-09-19 04:47:20 -04:00
|
|
|
_yelp_depend=x11/gnome/yelp
|
2011-09-19 03:55:43 -04:00
|
|
|
MODGNOME_RUN_DEPENDS+=${_yelp_depend}
|
|
|
|
MODGNOME_RUN_DEPENDS_yelp=${_yelp_depend}
|
|
|
|
. endif
|
2008-04-15 07:51:23 -04:00
|
|
|
.endif
|
2007-05-30 05:19:02 -04:00
|
|
|
|
2011-09-20 16:50:33 -04:00
|
|
|
CONFIGURE_ARGS+=${MODGNOME_CONFIGURE_ARGS_goi} \
|
|
|
|
${MODGNOME_CONFIGURE_ARGS_gtkdoc} \
|
|
|
|
${MODGNOME_CONFIGURE_ARGS_vala}
|
2011-09-19 04:47:20 -04:00
|
|
|
|
2009-04-06 06:05:20 -04:00
|
|
|
.if defined(MODGNOME_BUILD_DEPENDS)
|
|
|
|
BUILD_DEPENDS+= ${MODGNOME_BUILD_DEPENDS}
|
|
|
|
.endif
|
|
|
|
|
2008-04-15 07:51:23 -04:00
|
|
|
.if defined(MODGNOME_RUN_DEPENDS)
|
2007-05-30 05:19:02 -04:00
|
|
|
RUN_DEPENDS+= ${MODGNOME_RUN_DEPENDS}
|
2007-07-03 04:50:36 -04:00
|
|
|
.endif
|