Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/gnome.mk
- This file was moved from Mk/bsd.gnome.mk.
#-*- mode: Fundamental; tab-width: 4; -*- | #-*- mode: Fundamental; tab-width: 4; -*- | ||||
# ex:ts=4 | # ex:ts=4 | ||||
# | # | ||||
# $FreeBSD: head/Mk/bsd.gnome.mk 396193 2015-09-05 21:01:47Z kwm $ | # $FreeBSD$ | ||||
# $NetBSD: $ | |||||
# | # | ||||
# Please view me with 4 column tabs! | # Please view me with 4 column tabs! | ||||
# ======================= USERS ================================= | # ======================= USERS ================================= | ||||
# | # | ||||
# There are no significant user-definable settings in here. | # There are no significant user-definable settings in here. | ||||
# This file is a framework to make it easier to create GNOME ports. | # This file is a framework to make it easier to create GNOME ports. | ||||
# | # | ||||
# ======================= /USERS ================================ | # ======================= /USERS ================================ | ||||
.if !defined(_POSTMKINCLUDED) && !defined(Gnome_Pre_Include) | |||||
# Please make sure all changes to this file are passed through the maintainer. | # Please make sure all changes to this file are passed through the maintainer. | ||||
# Do not commit them yourself (unless of course you're the Port's Wraith ;). | # Do not commit them yourself (unless of course you're the Port's Wraith ;). | ||||
Gnome_Include_MAINTAINER= gnome@FreeBSD.org | |||||
Gnome_Pre_Include= bsd.gnome.mk | |||||
# This section defines possible names of GNOME components and all information | # This section defines possible names of GNOME components and all information | ||||
# necessary for ports to use those components. | # necessary for ports to use those components. | ||||
# Ports can use this as follows: | # Ports can use this as follows: | ||||
# | # | ||||
# USE_GNOME= glib20 introspection:build | # USE_GNOME= glib20 introspection:build | ||||
# | # | ||||
Show All 24 Lines | |||||
# each .omf file found to track OMF registration database. | # each .omf file found to track OMF registration database. | ||||
# | # | ||||
# INSTALLS_ICONS - If a GTK+ port installs Freedesktop-style icons to | # INSTALLS_ICONS - If a GTK+ port installs Freedesktop-style icons to | ||||
# ${LOCALBASE}/share/icons, then you should use this | # ${LOCALBASE}/share/icons, then you should use this | ||||
# macro. Using this macro ensures that icons are cached | # macro. Using this macro ensures that icons are cached | ||||
# and will display correctly. This macro isn't needed | # and will display correctly. This macro isn't needed | ||||
# for QT based applications, which use a different method. | # for QT based applications, which use a different method. | ||||
# | # | ||||
# MAINTAINER: gnome@FreeBSD.org | |||||
.if !defined(_INCLUDE_USES_GNOME_MK) | |||||
_INCLUDE_USES_GNOME_MK= yes | |||||
# non-version specific components | # non-version specific components | ||||
_USE_GNOME_ALL= esound intlhack intltool introspection \ | _USE_GNOME_ALL= esound intlhack intltool introspection \ | ||||
referencehack gnomemimedata \ | referencehack gnomemimedata \ | ||||
gnomeprefix | gnomeprefix | ||||
# GNOME 1 components | # GNOME 1 components | ||||
_USE_GNOME_ALL+= gdkpixbuf glib12 gtk12 | _USE_GNOME_ALL+= gdkpixbuf glib12 gtk12 | ||||
▲ Show 20 Lines • Show All 482 Lines • ▼ Show 20 Lines | |||||
. if exists(${${component}_DETECT}) | . if exists(${${component}_DETECT}) | ||||
HAVE_GNOME+= ${component} | HAVE_GNOME+= ${component} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.endif | |||||
# End of optional part. | |||||
.if defined(_POSTMKINCLUDED) && !defined(Gnome_Post_Include) | |||||
Gnome_Post_Include= bsd.gnome.mk | |||||
.if !defined(Gnome_Pre_Include) | |||||
.error The Pre include part of bsd.gnome.mk part is not included. Did you forget WANT_GNOME=yes before bsd.port.pre.mk? | |||||
.endif | |||||
.if defined(USE_GNOME) | .if defined(USE_GNOME) | ||||
# First of all expand all USE_GNOME_IMPL recursively | # First of all expand all USE_GNOME_IMPL recursively | ||||
. for component in ${_USE_GNOME_ALL} | . for component in ${_USE_GNOME_ALL} | ||||
. for subcomponent in ${${component}_USE_GNOME_IMPL} | . for subcomponent in ${${component}_USE_GNOME_IMPL} | ||||
${component}_USE_GNOME_IMPL+=${${subcomponent}_USE_GNOME_IMPL} | ${component}_USE_GNOME_IMPL+=${${subcomponent}_USE_GNOME_IMPL} | ||||
. endfor | . endfor | ||||
. endfor | . endfor | ||||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
. endfor | . endfor | ||||
.endif | .endif | ||||
. if defined(GCONF_SCHEMAS) | . if defined(GCONF_SCHEMAS) | ||||
MAKE_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | MAKE_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.if defined(GNOME_PRE_PATCH) | |||||
pre-patch: gnome-pre-patch | |||||
gnome-pre-patch: | |||||
@${GNOME_PRE_PATCH:C/^;//1} | |||||
.endif | |||||
.if defined(WANT_GNOME) | .if defined(WANT_GNOME) | ||||
USE_GNOME?= | USE_GNOME?= | ||||
. if ${_USE_GNOME_SAVED}==${USE_GNOME} | . if ${_USE_GNOME_SAVED}==${USE_GNOME} | ||||
PLIST_SUB+= GNOME:="@comment " NOGNOME:="" | PLIST_SUB+= GNOME:="@comment " NOGNOME:="" | ||||
. else | . else | ||||
PLIST_SUB+= GNOME:="" NOGNOME:="@comment " | PLIST_SUB+= GNOME:="" NOGNOME:="@comment " | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.if defined(USE_GNOME_SUBR) | .if defined(USE_GNOME_SUBR) | ||||
GNOME_SUBR= ${LOCALBASE}/etc/gnome.subr | GNOME_SUBR= ${LOCALBASE}/etc/gnome.subr | ||||
RUN_DEPENDS+= ${GNOME_SUBR}:${PORTSDIR}/sysutils/gnome_subr | RUN_DEPENDS+= ${GNOME_SUBR}:${PORTSDIR}/sysutils/gnome_subr | ||||
SUB_LIST+= GNOME_SUBR=${GNOME_SUBR} | SUB_LIST+= GNOME_SUBR=${GNOME_SUBR} | ||||
.endif | |||||
.endif | |||||
# end of the part | |||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK) | |||||
_INCLUDE_USES_GNOME_POST_MK= yes | |||||
.if defined(GNOME_PRE_PATCH) | |||||
pre-patch: gnome-pre-patch | |||||
gnome-pre-patch: | |||||
mat: This should be:
_USES_patch+= 290:gnome-pre-patch
gnome-pre-patch: | |||||
@${GNOME_PRE_PATCH:C/^;//1} | |||||
.endif | .endif | ||||
.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \ | .if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \ | ||||
|| defined(GLIB_SCHEMAS) | || defined(GLIB_SCHEMAS) | ||||
post-install: gnome-post-install | post-install: gnome-post-install | ||||
gnome-post-install: | gnome-post-install: | ||||
Not Done Inline ActionsSame here _USES_install+= 690:gnome-post-install gnome-post-install: mat: Same here
_USES_install+= 690:gnome-post-install
gnome-post-install: | |||||
. if defined(GCONF_SCHEMAS) | . if defined(GCONF_SCHEMAS) | ||||
@for i in ${GCONF_SCHEMAS}; do \ | @for i in ${GCONF_SCHEMAS}; do \ | ||||
${ECHO_CMD} "@unexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@unexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "etc/gconf/schemas/$${i}" >> ${TMPPLIST}; \ | ${ECHO_CMD} "etc/gconf/schemas/$${i}" >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "@exec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@exec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
done | done | ||||
Show All 40 Lines |
This should be: