Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/gnome.mk
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# MAINTAINER: gnome@FreeBSD.org | # MAINTAINER: gnome@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_GNOME_MK) | .if !defined(_INCLUDE_USES_GNOME_MK) | ||||
_INCLUDE_USES_GNOME_MK= yes | _INCLUDE_USES_GNOME_MK= yes | ||||
_USES_POST+= gnome | _USES_POST+= gnome | ||||
.if !empty(gnome_ARGS) | . if !empty(gnome_ARGS) | ||||
IGNORE= USES=gnome takes no arguments | IGNORE= USES=gnome takes no arguments | ||||
.endif | . endif | ||||
# non-version specific components | # non-version specific components | ||||
_USE_GNOME_ALL= intlhack intltool introspection \ | _USE_GNOME_ALL= intlhack intltool introspection \ | ||||
gnomemimedata gnomeprefix | gnomemimedata gnomeprefix | ||||
# GNOME 2 components | # GNOME 2 components | ||||
_USE_GNOME_ALL+= atk cairo \ | _USE_GNOME_ALL+= atk cairo \ | ||||
gdkpixbuf2 gconf2 glib20 \ | gdkpixbuf2 gconf2 glib20 \ | ||||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | |||||
vte3_LIB_DEPENDS= libvte-2.91.so:x11-toolkits/vte3 | vte3_LIB_DEPENDS= libvte-2.91.so:x11-toolkits/vte3 | ||||
vte3_USE_GNOME_IMPL= gtk30 | vte3_USE_GNOME_IMPL= gtk30 | ||||
libadwaita_LIB_DEPENDS= libadwaita-1.so:x11-toolkits/libadwaita | libadwaita_LIB_DEPENDS= libadwaita-1.so:x11-toolkits/libadwaita | ||||
libadwaita_USE_GNOME_IMPL= gtk40 | libadwaita_USE_GNOME_IMPL= gtk40 | ||||
# Use librsvg2-rust where lang/rust is available | # Use librsvg2-rust where lang/rust is available | ||||
.if ${LIBRSVG2_DEFAULT:Mrust} | . if ${LIBRSVG2_DEFAULT:Mrust} | ||||
librsvg2_BUILD_DEPENDS= librsvg2-rust>=0:graphics/librsvg2-rust | librsvg2_BUILD_DEPENDS= librsvg2-rust>=0:graphics/librsvg2-rust | ||||
librsvg2_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2-rust | librsvg2_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2-rust | ||||
librsvg2_RUN_DEPENDS= librsvg2-rust>=0:graphics/librsvg2-rust | librsvg2_RUN_DEPENDS= librsvg2-rust>=0:graphics/librsvg2-rust | ||||
.else | . else | ||||
librsvg2_BUILD_DEPENDS= librsvg2>=0:graphics/librsvg2 | librsvg2_BUILD_DEPENDS= librsvg2>=0:graphics/librsvg2 | ||||
librsvg2_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2 | librsvg2_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2 | ||||
librsvg2_RUN_DEPENDS= librsvg2>=0:graphics/librsvg2 | librsvg2_RUN_DEPENDS= librsvg2>=0:graphics/librsvg2 | ||||
.endif | . endif | ||||
librsvg2_USE_GNOME_IMPL=gdkpixbuf2 pango | librsvg2_USE_GNOME_IMPL=gdkpixbuf2 pango | ||||
nautilus3_LIB_DEPENDS= libnautilus-extension.so:x11-fm/nautilus | nautilus3_LIB_DEPENDS= libnautilus-extension.so:x11-fm/nautilus | ||||
nautilus3_USE_GNOME_IMPL=gnomedesktop3 libxml2 | nautilus3_USE_GNOME_IMPL=gnomedesktop3 libxml2 | ||||
metacity_LIB_DEPENDS= libmetacity.so:x11-wm/metacity | metacity_LIB_DEPENDS= libmetacity.so:x11-wm/metacity | ||||
gnomecontrolcenter3_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gnome-keybindings.pc:sysutils/gnome-control-center | gnomecontrolcenter3_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gnome-keybindings.pc:sysutils/gnome-control-center | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
libgnomekbd_USE_GNOME_IMPL= gtk30 libxml2 | libgnomekbd_USE_GNOME_IMPL= gtk30 libxml2 | ||||
gvfs_BUILD_DEPENDS= gvfs>=0:devel/gvfs | gvfs_BUILD_DEPENDS= gvfs>=0:devel/gvfs | ||||
gvfs_RUN_DEPENDS= gvfs>=0:devel/gvfs | gvfs_RUN_DEPENDS= gvfs>=0:devel/gvfs | ||||
gvfs_USE_GNOME_IMPL= glib20 | gvfs_USE_GNOME_IMPL= glib20 | ||||
# End component definition section | # End component definition section | ||||
.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 | ||||
# Then use already expanded USE_GNOME_IMPL to expand USE_GNOME. | # Then use already expanded USE_GNOME_IMPL to expand USE_GNOME. | ||||
# Also, check to see if each component has a desktop requirement. If it does, | # Also, check to see if each component has a desktop requirement. If it does, | ||||
# and if the user's chosen desktop is not of the same version, mark the | # and if the user's chosen desktop is not of the same version, mark the | ||||
# port as IGNORE. | # port as IGNORE. | ||||
. for component in ${USE_GNOME:C/^([^:]+).*/\1/} | . for component in ${USE_GNOME:C/^([^:]+).*/\1/} | ||||
. if ${_USE_GNOME_ALL:M${component}}=="" | . if ${_USE_GNOME_ALL:M${component}}=="" | ||||
IGNORE= cannot install: Unknown component ${component} | IGNORE= cannot install: Unknown component ${component} | ||||
. endif | . endif | ||||
_USE_GNOME+= ${${component}_USE_GNOME_IMPL} ${component} | _USE_GNOME+= ${${component}_USE_GNOME_IMPL} ${component} | ||||
. endfor | . endfor | ||||
# Setup the GTK+ API version for pixbuf loaders, input method modules, | # Setup the GTK+ API version for pixbuf loaders, input method modules, | ||||
# and theme engines. | # and theme engines. | ||||
PLIST_SUB+= GTK2_VERSION="${GTK2_VERSION}" \ | PLIST_SUB+= GTK2_VERSION="${GTK2_VERSION}" \ | ||||
GTK3_VERSION="${GTK3_VERSION}" \ | GTK3_VERSION="${GTK3_VERSION}" \ | ||||
GTK4_VERSION="${GTK4_VERSION}" | GTK4_VERSION="${GTK4_VERSION}" | ||||
.if defined(_USE_GNOME) && empty(_USE_GNOME:Mglib20:u) && defined(GLIB_SCHEMAS) | . if defined(_USE_GNOME) && empty(_USE_GNOME:Mglib20:u) && defined(GLIB_SCHEMAS) | ||||
IGNORE= GLIB_SCHEMAS is set, but needs USE_GNOME=glib20 to work | IGNORE= GLIB_SCHEMAS is set, but needs USE_GNOME=glib20 to work | ||||
.endif | . endif | ||||
.if defined(_USE_GNOME) && empty(_USE_GNOME:Mgconf2:u) && defined(GCONF_SCHEMAS) | . if defined(_USE_GNOME) && empty(_USE_GNOME:Mgconf2:u) && defined(GCONF_SCHEMAS) | ||||
IGNORE= GCONF_SCHEMAS is set, but needs USE_GNOME=gconf2 to work | IGNORE= GCONF_SCHEMAS is set, but needs USE_GNOME=gconf2 to work | ||||
.endif | . endif | ||||
# Then traverse through all components, check which of them | # Then traverse through all components, check which of them | ||||
# exist in ${_USE_GNOME} and set variables accordingly | # exist in ${_USE_GNOME} and set variables accordingly | ||||
.ifdef _USE_GNOME | . ifdef _USE_GNOME | ||||
. for component in ${_USE_GNOME:O:u} | . for component in ${_USE_GNOME:O:u} | ||||
. if defined(${component}_PATCH_DEPENDS) | . if defined(${component}_PATCH_DEPENDS) | ||||
PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS} | PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS} | ||||
. endif | . endif | ||||
. if ${USE_GNOME:M${component}\:build} && defined(${component}_BUILD_DEPENDS) | . if ${USE_GNOME:M${component}\:build} && defined(${component}_BUILD_DEPENDS) | ||||
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | ||||
. elif ${USE_GNOME:M${component}\:run} && defined(${component}_RUN_DEPENDS) | . elif ${USE_GNOME:M${component}\:run} && defined(${component}_RUN_DEPENDS) | ||||
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | ||||
. else | . else | ||||
. if defined(${component}_LIB_DEPENDS) | . if defined(${component}_LIB_DEPENDS) | ||||
LIB_DEPENDS+= ${${component}_LIB_DEPENDS} | LIB_DEPENDS+= ${${component}_LIB_DEPENDS} | ||||
. else | . else | ||||
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | ||||
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if defined(${component}_CONFIGURE_ARGS) | . if defined(${component}_CONFIGURE_ARGS) | ||||
CONFIGURE_ARGS+=${${component}_CONFIGURE_ARGS} | CONFIGURE_ARGS+=${${component}_CONFIGURE_ARGS} | ||||
. endif | . endif | ||||
. if defined(${component}_CONFIGURE_ENV) | . if defined(${component}_CONFIGURE_ENV) | ||||
CONFIGURE_ENV+= ${${component}_CONFIGURE_ENV} | CONFIGURE_ENV+= ${${component}_CONFIGURE_ENV} | ||||
. endif | . endif | ||||
. if defined(${component}_MAKE_ENV) | . if defined(${component}_MAKE_ENV) | ||||
MAKE_ENV+= ${${component}_MAKE_ENV} | MAKE_ENV+= ${${component}_MAKE_ENV} | ||||
. endif | . endif | ||||
. if !defined(CONFIGURE_TARGET) && defined(${component}_CONFIGURE_TARGET) | . if !defined(CONFIGURE_TARGET) && defined(${component}_CONFIGURE_TARGET) | ||||
CONFIGURE_TARGET= ${${component}_CONFIGURE_TARGET} | CONFIGURE_TARGET= ${${component}_CONFIGURE_TARGET} | ||||
. endif | . endif | ||||
. if defined(${component}_PRE_PATCH) | . if defined(${component}_PRE_PATCH) | ||||
GNOME_PRE_PATCH+= ; ${${component}_PRE_PATCH} | GNOME_PRE_PATCH+= ; ${${component}_PRE_PATCH} | ||||
. endif | . endif | ||||
. 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(USE_GNOME_SUBR) | . if defined(USE_GNOME_SUBR) | ||||
GNOME_SUBR= ${LOCALBASE}/etc/gnome.subr | GNOME_SUBR= ${LOCALBASE}/etc/gnome.subr | ||||
RUN_DEPENDS+= ${GNOME_SUBR}:sysutils/gnome_subr | RUN_DEPENDS+= ${GNOME_SUBR}:sysutils/gnome_subr | ||||
SUB_LIST+= GNOME_SUBR=${GNOME_SUBR} | SUB_LIST+= GNOME_SUBR=${GNOME_SUBR} | ||||
.endif | . endif | ||||
.endif | .endif | ||||
# end of the part | # end of the part | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK) | ||||
_INCLUDE_USES_GNOME_POST_MK= yes | _INCLUDE_USES_GNOME_POST_MK= yes | ||||
.if defined(GNOME_PRE_PATCH) | . if defined(GNOME_PRE_PATCH) | ||||
_USES_patch+= 290:gnome-pre-patch | _USES_patch+= 290:gnome-pre-patch | ||||
gnome-pre-patch: | gnome-pre-patch: | ||||
@${GNOME_PRE_PATCH:C/^;//1} | @${GNOME_PRE_PATCH:C/^;//1} | ||||
.endif | . endif | ||||
.if defined(GCONF_SCHEMAS) | . if defined(GCONF_SCHEMAS) | ||||
_USES_install+= 690:gnome-post-gconf-schemas | _USES_install+= 690:gnome-post-gconf-schemas | ||||
gnome-post-gconf-schemas: | gnome-post-gconf-schemas: | ||||
@for i in ${GCONF_SCHEMAS}; do \ | @for i in ${GCONF_SCHEMAS}; do \ | ||||
${ECHO_CMD} "@preunexec 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} "@preunexec 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} "@postexec 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} "@postexec 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 | ||||
.endif | . endif | ||||
.if defined(GLIB_SCHEMAS) | . if defined(GLIB_SCHEMAS) | ||||
_USES_install+= 690:gnome-post-glib-schemas | _USES_install+= 690:gnome-post-glib-schemas | ||||
gnome-post-glib-schemas: | gnome-post-glib-schemas: | ||||
@for i in ${GLIB_SCHEMAS}; do \ | @for i in ${GLIB_SCHEMAS}; do \ | ||||
${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ | ${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ | ||||
done | done | ||||
.endif | . endif | ||||
.endif | .endif | ||||
# End of use part. | # End of use part. |