158fbb6034
gettext mo files in the proper location. ok jasper@
95 lines
3.3 KiB
Makefile
95 lines
3.3 KiB
Makefile
# $OpenBSD: gnome.port.mk,v 1.51 2011/10/03 06:41:43 ajacoutot Exp $
|
|
#
|
|
# Module for GNOME related ports
|
|
#
|
|
|
|
.if (defined(GNOME_PROJECT) && defined(GNOME_VERSION))
|
|
DISTNAME= ${GNOME_PROJECT}-${GNOME_VERSION}
|
|
VERSION= ${GNOME_VERSION}
|
|
MASTER_SITES?= ${MASTER_SITE_GNOME:=sources/${GNOME_PROJECT}/${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
|
EXTRACT_SUFX?= .tar.xz
|
|
CATEGORIES+= x11/gnome
|
|
.endif
|
|
|
|
.if ${NO_BUILD:L} == "no"
|
|
USE_LIBTOOL?= Yes
|
|
MODULES+= textproc/intltool
|
|
. if defined(CONFIGURE_STYLE) && ${CONFIGURE_STYLE:Mgnu}
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
|
|
# If a port needs extra CPPFLAGS, they can just set MODGNOME_CPPFLAGS
|
|
# to the desired value, like -I${X11BASE}/include
|
|
_MODGNOME_cppflags ?= CPPFLAGS="-I${LOCALBASE}/include ${MODGNOME_CPPFLAGS}"
|
|
_MODGNOME_ldflags ?= LDFLAGS="-L${LOCALBASE}/lib ${MODGNOME_LDFLAGS}"
|
|
CONFIGURE_ENV += ${_MODGNOME_cppflags} \
|
|
${_MODGNOME_ldflags}
|
|
# Older versions of glib-gettext.m4 used to set DATADIRNAME to
|
|
# "lib" which resulted in locale files being installed under the
|
|
# wrong directory.
|
|
CONFIGURE_ENV += DATADIRNAME=share
|
|
. endif
|
|
.endif
|
|
|
|
# Set to 'yes' if there are .desktop files in the package list.
|
|
.if defined(MODGNOME_DESKTOP_FILE) && ${MODGNOME_DESKTOP_FILE:L} == "yes"
|
|
MODGNOME_RUN_DEPENDS+= devel/desktop-file-utils
|
|
.endif
|
|
|
|
USE_GMAKE?= Yes
|
|
|
|
# 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:
|
|
# * goi: Build and enable GObject Introspection data.
|
|
# * gtk-doc: Enable to build the included docs.
|
|
# * vala: Enable vala bindings.
|
|
# * yelp: Use this if there are any files under share/gnome/help/
|
|
# in the pkg list and it calls gnome_help_display() -- gnome-doc-utils is
|
|
# here to make sure we have a dependency on rarian (scrollkeeper-*) and
|
|
# have access to the gnome-doc-* tools (not always needed but easier);
|
|
# same goes with itstool.
|
|
#
|
|
# Please note that if you're using multi-packages, you have to use the
|
|
# MODGNOME_RUN_DEPENDS_${tool} in your multi package RUN_DEPENDS.
|
|
|
|
MODGNOME_CONFIGURE_ARGS_gtkdoc=--disable-gtk-doc
|
|
MODGNOME_CONFIGURE_ARGS_goi=--disable-introspection
|
|
MODGNOME_CONFIGURE_ARGS_vala=--disable-vala
|
|
|
|
.if defined(MODGNOME_TOOLS)
|
|
. if ${MODGNOME_TOOLS:Mgoi}
|
|
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_BUILD_DEPENDS+=textproc/gtk-doc
|
|
. endif
|
|
|
|
. if ${MODGNOME_TOOLS:Mvala}
|
|
MODGNOME_CONFIGURE_ARGS_vala=--enable-vala --enable-vala-bindings
|
|
MODGNOME_BUILD_DEPENDS+=lang/vala
|
|
. endif
|
|
|
|
. if ${MODGNOME_TOOLS:Myelp}
|
|
MODGNOME_BUILD_DEPENDS+=textproc/itstool
|
|
MODGNOME_BUILD_DEPENDS+=x11/gnome/doc-utils
|
|
_yelp_depend=x11/gnome/yelp
|
|
MODGNOME_RUN_DEPENDS+=${_yelp_depend}
|
|
MODGNOME_RUN_DEPENDS_yelp=${_yelp_depend}
|
|
. endif
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+=${MODGNOME_CONFIGURE_ARGS_goi} \
|
|
${MODGNOME_CONFIGURE_ARGS_gtkdoc} \
|
|
${MODGNOME_CONFIGURE_ARGS_vala}
|
|
|
|
.if defined(MODGNOME_BUILD_DEPENDS)
|
|
BUILD_DEPENDS+= ${MODGNOME_BUILD_DEPENDS}
|
|
.endif
|
|
|
|
.if defined(MODGNOME_RUN_DEPENDS)
|
|
RUN_DEPENDS+= ${MODGNOME_RUN_DEPENDS}
|
|
.endif
|