2015-03-27 08:16:15 +00:00
|
|
|
# $OpenBSD: gnome.port.mk,v 1.98 2015/03/27 08:16:16 ajacoutot Exp $
|
2008-04-15 11:51:23 +00:00
|
|
|
#
|
2007-05-30 09:19:02 +00:00
|
|
|
# Module for GNOME related ports
|
|
|
|
|
2010-10-23 14:37:17 +00:00
|
|
|
.if (defined(GNOME_PROJECT) && defined(GNOME_VERSION))
|
2014-09-05 14:45:02 +00:00
|
|
|
PORTROACH+= limitw:1,even
|
2007-05-31 11:30:35 +00:00
|
|
|
DISTNAME= ${GNOME_PROJECT}-${GNOME_VERSION}
|
2010-10-23 14:37:17 +00:00
|
|
|
VERSION= ${GNOME_VERSION}
|
2013-09-28 08:47:58 +00:00
|
|
|
HOMEPAGE?= https://wiki.gnome.org/
|
2010-10-23 16:31:29 +00:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_GNOME:=sources/${GNOME_PROJECT}/${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
2011-09-12 12:02:39 +00:00
|
|
|
EXTRACT_SUFX?= .tar.xz
|
2010-10-23 14:37:17 +00:00
|
|
|
CATEGORIES+= x11/gnome
|
2014-07-09 13:55:19 +00:00
|
|
|
. if ${NO_BUILD:L} == "no"
|
|
|
|
MODULES+= textproc/intltool
|
2014-07-09 17:05:34 +00:00
|
|
|
USE_GMAKE?= Yes
|
2014-07-09 17:45:51 +00:00
|
|
|
. endif
|
2007-06-30 11:39:46 +00:00
|
|
|
.endif
|
2007-05-30 09:19:02 +00:00
|
|
|
|
2014-07-09 17:05:34 +00:00
|
|
|
.if ${CONFIGURE_STYLE:Mgnu} || ${CONFIGURE_STYLE:Msimple}
|
|
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
|
|
|
|
# https://mail.gnome.org/archives/desktop-devel-list/2011-September/msg00064.html
|
|
|
|
. if !defined(AUTOCONF_VERSION) && !defined(AUTOMAKE_VERSION)
|
|
|
|
CONFIGURE_ARGS += --disable-maintainer-mode
|
|
|
|
. endif
|
|
|
|
# If a port needs extra CPPFLAGS, they can just set MODGNOME_CPPFLAGS
|
|
|
|
# to the desired value, like -I${X11BASE}/include
|
2014-12-21 11:49:48 +00:00
|
|
|
_MODGNOME_cppflags ?= CPPFLAGS="${MODGNOME_CPPFLAGS} -I${LOCALBASE}/include"
|
|
|
|
_MODGNOME_ldflags ?= LDFLAGS="${MODGNOME_LDFLAGS} -L${LOCALBASE}/lib"
|
2014-07-09 17:05:34 +00:00
|
|
|
CONFIGURE_ENV += ${_MODGNOME_cppflags} \
|
|
|
|
${_MODGNOME_ldflags}
|
|
|
|
.endif
|
2011-09-19 07:55:43 +00:00
|
|
|
|
|
|
|
# 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:
|
2014-04-01 17:03:13 +00:00
|
|
|
# * desktop-file-utils: Use this if there are .desktop files under
|
|
|
|
# share/applications/. This also requires the following
|
|
|
|
# go in PLIST:
|
|
|
|
# @exec %D/bin/update-desktop-database
|
|
|
|
# @unexec-delete %D/bin/update-desktop-database
|
2014-03-28 08:48:14 +00:00
|
|
|
# * docbook: Build man pages with docbook.
|
2014-04-01 15:31:45 +00:00
|
|
|
# * gobject-introspection: Build and enable GObject Introspection data.
|
2014-04-01 17:03:13 +00:00
|
|
|
# * gtk-update-icon-cache: Enable if there are icon files under share/icons/.
|
|
|
|
# Requires the following goo in PLIST (adapt
|
|
|
|
# $icon-theme accordingly):
|
|
|
|
# @exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/$icon-theme
|
|
|
|
# @unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/$icon-theme
|
|
|
|
# * shared-mime-info: Enable if there are .xml files under share/mime/.
|
|
|
|
# Requires the following goo in PLIST:
|
|
|
|
# @exec %D/bin/update-mime-database %D/share/mime
|
|
|
|
# @unexec-delete %D/bin/update-mime-database %D/share/mime
|
2014-03-25 11:37:47 +00:00
|
|
|
# * vala: Enable vala bindings and/or building from vala source files.
|
2011-09-19 07:55:43 +00:00
|
|
|
# * yelp: Use this if there are any files under share/gnome/help/
|
2012-02-16 22:21:54 +00:00
|
|
|
# or "page" files under share/help/ in the PLIST that are opened
|
|
|
|
# with yelp -- gnome-doc-utils is here to make sure we have a
|
|
|
|
# dependency on rarian (and legacy scrollkeeper-*) and have
|
2012-09-27 14:14:31 +00:00
|
|
|
# access to the gnome-doc-* tools (legacy);
|
|
|
|
# same goes with yelp-tools which gives us itstool.
|
2011-09-19 07:55:43 +00:00
|
|
|
|
2013-04-16 13:16:30 +00:00
|
|
|
MODGNOME_CONFIGURE_ARGS_gi=--disable-introspection
|
2012-02-18 18:19:14 +00:00
|
|
|
MODGNOME_CONFIGURE_ARGS_vala=--disable-vala --disable-vala-bindings
|
2011-09-19 08:47:20 +00:00
|
|
|
|
2011-09-19 07:55:43 +00:00
|
|
|
.if defined(MODGNOME_TOOLS)
|
2014-09-13 16:29:39 +00:00
|
|
|
_VALID_TOOLS=desktop-file-utils docbook gobject-introspection \
|
2014-04-03 12:18:19 +00:00
|
|
|
gtk-update-icon-cache shared-mime-info vala yelp
|
|
|
|
. for _t in ${MODGNOME_TOOLS}
|
|
|
|
. if !${_VALID_TOOLS:M${_t}}
|
2014-10-08 12:17:06 +00:00
|
|
|
ERRORS += "Fatal: unknown MODGNOME_TOOLS option: ${_t}\n(not in ${_VALID_TOOLS})"
|
2014-04-03 12:18:19 +00:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
|
2014-04-01 17:03:13 +00:00
|
|
|
. if ${MODGNOME_TOOLS:Mdesktop-file-utils}
|
|
|
|
MODGNOME_RUN_DEPENDS+= devel/desktop-file-utils
|
|
|
|
MODGNOME_pre-configure += ln -sf /usr/bin/true ${WRKDIR}/bin/desktop-file-validate;
|
|
|
|
. endif
|
|
|
|
|
2014-03-28 08:48:14 +00:00
|
|
|
. if ${MODGNOME_TOOLS:Mdocbook}
|
2014-10-04 08:52:47 +00:00
|
|
|
MODGNOME_BUILD_DEPENDS+=textproc/docbook-xsl
|
2014-03-28 08:48:14 +00:00
|
|
|
. endif
|
|
|
|
|
2014-04-01 15:31:45 +00:00
|
|
|
. if ${MODGNOME_TOOLS:Mgobject-introspection}
|
2013-04-16 13:16:30 +00:00
|
|
|
MODGNOME_CONFIGURE_ARGS_gi=--enable-introspection
|
2014-10-04 08:52:47 +00:00
|
|
|
MODGNOME_BUILD_DEPENDS+=devel/gobject-introspection
|
2011-09-19 07:55:43 +00:00
|
|
|
. endif
|
|
|
|
|
2014-04-01 17:03:13 +00:00
|
|
|
. if ${MODGNOME_TOOLS:Mgtk-update-icon-cache}
|
2015-03-27 08:16:15 +00:00
|
|
|
MODGNOME_RUN_DEPENDS+= x11/gtk+3,-guic
|
2014-04-01 17:03:13 +00:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Mshared-mime-info}
|
|
|
|
MODGNOME_RUN_DEPENDS+= misc/shared-mime-info
|
|
|
|
MODGNOME_pre-configure += ln -sf /usr/bin/true ${WRKDIR}/bin/update-mime-database;
|
2011-09-19 07:55:43 +00:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Mvala}
|
2011-09-28 15:07:57 +00:00
|
|
|
MODGNOME_CONFIGURE_ARGS_vala=--enable-vala --enable-vala-bindings
|
2014-10-04 08:52:47 +00:00
|
|
|
MODGNOME_BUILD_DEPENDS+=lang/vala
|
2011-09-19 07:55:43 +00:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${MODGNOME_TOOLS:Myelp}
|
2014-10-04 08:52:47 +00:00
|
|
|
MODGNOME_BUILD_DEPENDS+=x11/gnome/yelp-tools
|
|
|
|
MODGNOME_BUILD_DEPENDS+=x11/gnome/doc-utils
|
2014-03-16 09:11:23 +00:00
|
|
|
# automatically try to detect GUI applications
|
2014-04-01 17:03:13 +00:00
|
|
|
. if ${MODGNOME_TOOLS:Mdesktop-file-utils}
|
2014-03-16 09:11:23 +00:00
|
|
|
MODGNOME_RUN_DEPENDS+=x11/gnome/yelp
|
|
|
|
. endif
|
2011-09-19 07:55:43 +00:00
|
|
|
. endif
|
2008-04-15 11:51:23 +00:00
|
|
|
.endif
|
2007-05-30 09:19:02 +00:00
|
|
|
|
2014-07-09 17:05:34 +00:00
|
|
|
.if ${CONFIGURE_STYLE:Mgnu} || ${CONFIGURE_STYLE:Msimple}
|
2013-04-16 13:16:30 +00:00
|
|
|
CONFIGURE_ARGS+=${MODGNOME_CONFIGURE_ARGS_gi} \
|
2011-09-20 20:50:33 +00:00
|
|
|
${MODGNOME_CONFIGURE_ARGS_vala}
|
2014-07-09 17:05:34 +00:00
|
|
|
.endif
|
2011-09-19 08:47:20 +00:00
|
|
|
|
2009-04-06 10:05:20 +00:00
|
|
|
.if defined(MODGNOME_BUILD_DEPENDS)
|
|
|
|
BUILD_DEPENDS+= ${MODGNOME_BUILD_DEPENDS}
|
|
|
|
.endif
|
|
|
|
|
2008-04-15 11:51:23 +00:00
|
|
|
.if defined(MODGNOME_RUN_DEPENDS)
|
2007-05-30 09:19:02 +00:00
|
|
|
RUN_DEPENDS+= ${MODGNOME_RUN_DEPENDS}
|
2007-07-03 08:50:36 +00:00
|
|
|
.endif
|