2015-03-05 22:52:30 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Provide support for Xfce related ports.
|
|
|
|
#
|
|
|
|
# Feature: xfce
|
|
|
|
# Usage: USES=xfce or USES=xfce:ARGS
|
|
|
|
# Valid ARGS: gtk3
|
|
|
|
#
|
|
|
|
# Variables, which can be set by the port:
|
|
|
|
#
|
|
|
|
# USE_XFCE List of components
|
|
|
|
#
|
|
|
|
# MAINTAINER: xfce@FreeBSD.org
|
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_XFCE_Mk)
|
|
|
|
_INCLUDE_USES_XFCE_Mk= yes
|
|
|
|
_USES_POST+= xfce
|
|
|
|
|
|
|
|
_USE_XFCE_ALL= garcon libexo libgui libmenu libutil panel thunar xfconf
|
|
|
|
|
2015-04-28 17:01:46 +00:00
|
|
|
XFCE_MASTER_SITE_VER= 4.12
|
2015-03-05 22:52:30 +00:00
|
|
|
|
|
|
|
xfce_ARGS?= # empty
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
|
|
|
2016-12-23 09:24:25 +00:00
|
|
|
.if ${xfce_ARGS:Mgtk3}
|
|
|
|
libmenu_LIB_DEPENDS= libxfce4ui-2.so:x11/libxfce4menu
|
|
|
|
libmenu_USE_XFCE_REQ= xfconf
|
|
|
|
|
2017-09-18 14:17:15 +00:00
|
|
|
garcon_LIB_DEPENDS= libgarcon-gtk3-1.so:sysutils/garcon
|
|
|
|
garcon_USE_XFCE_REQ= libmenu
|
|
|
|
|
2016-12-23 09:24:25 +00:00
|
|
|
panel_LIB_DEPENDS= libxfce4panel-2.0.so:x11-wm/xfce4-panel
|
|
|
|
panel_RUN_DEPENDS= xfce4-panel:x11-wm/xfce4-panel
|
|
|
|
panel_USE_XFCE_REQ= garcon libexo xfconf
|
|
|
|
.else
|
|
|
|
libmenu_LIB_DEPENDS= libxfce4ui-1.so:x11/libxfce4menu
|
|
|
|
libmenu_USE_XFCE_REQ= xfconf
|
|
|
|
|
2017-09-18 14:17:15 +00:00
|
|
|
garcon_LIB_DEPENDS= libgarcon-gtk2-1.so:sysutils/garcon
|
|
|
|
garcon_USE_XFCE_REQ= libmenu
|
|
|
|
|
2016-12-23 09:24:25 +00:00
|
|
|
panel_LIB_DEPENDS= libxfce4panel-1.0.so:x11-wm/xfce4-panel
|
|
|
|
panel_RUN_DEPENDS= xfce4-panel:x11-wm/xfce4-panel
|
|
|
|
panel_USE_XFCE_REQ= garcon libexo xfconf
|
|
|
|
.endif
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
libexo_LIB_DEPENDS= libexo-1.so:x11/libexo
|
2015-03-05 22:52:30 +00:00
|
|
|
libexo_USE_XFCE_REQ= libmenu
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
libgui_LIB_DEPENDS= libxfcegui4.so:x11-toolkits/libxfce4gui
|
2015-03-05 22:52:30 +00:00
|
|
|
libgui_USE_XFCE_REQ= libutil
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
libutil_LIB_DEPENDS= libxfce4util.so:x11/libxfce4util
|
2015-03-05 22:52:30 +00:00
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
thunar_LIB_DEPENDS= libthunarx-2.so:x11-fm/thunar
|
|
|
|
thunar_RUN_DEPENDS= Thunar:x11-fm/thunar
|
2015-03-05 22:52:30 +00:00
|
|
|
thunar_USE_XFCE_REQ= xfconf libmenu
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
xfconf_LIB_DEPENDS= libxfconf-0.so:x11/xfce4-conf
|
2015-03-05 22:52:30 +00:00
|
|
|
xfconf_USE_XFCE_REQ= libutil
|
|
|
|
|
|
|
|
.if defined(USE_XFCE)
|
|
|
|
# First, expand all USE_XFCE_REQ recursively.
|
|
|
|
.for comp in ${_USE_XFCE_ALL}
|
|
|
|
. for subcomp in ${${comp}_USE_XFCE_REQ}
|
|
|
|
${comp}_USE_XFCE_REQ+=${${subcomp}_USE_XFCE_REQ}
|
|
|
|
. endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Then, use already expanded USE_XFCE_REQ to expand USE_XFCE.
|
|
|
|
.for comp in ${USE_XFCE}
|
|
|
|
. if ${_USE_XFCE_ALL:M${comp}} == ""
|
|
|
|
IGNORE= cannot install: Unknown component ${comp}
|
|
|
|
. endif
|
|
|
|
_USE_XFCE+= ${${comp}_USE_XFCE_REQ} ${comp}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Remove duplicate components
|
|
|
|
USE_XFCE= ${_USE_XFCE:O:u}
|
|
|
|
|
|
|
|
.for comp in ${USE_XFCE}
|
|
|
|
. if defined(${comp}_BUILD_DEPENDS)
|
|
|
|
BUILD_DEPENDS+= ${${comp}_BUILD_DEPENDS}
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if defined(${comp}_LIB_DEPENDS)
|
|
|
|
LIB_DEPENDS+= ${${comp}_LIB_DEPENDS}
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if defined(${comp}_RUN_DEPENDS)
|
|
|
|
RUN_DEPENDS+= ${${comp}_RUN_DEPENDS}
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2015-09-14 13:00:58 +00:00
|
|
|
. if ${USE_XFCE:M*gui} == libgui
|
2015-03-05 22:52:30 +00:00
|
|
|
DEPRECATED?= Depends on unmaintained x11-toolkits/libxfce4gui
|
|
|
|
. endif
|
|
|
|
|
|
|
|
.endif # end of defined(USE_XFCE)
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_XFCE_POST_MK)
|
|
|
|
_INCLUDE_USES_XFCE_POST_MK= yes
|
|
|
|
|
|
|
|
.endif
|