From 14e450bf77780df1d5a339a12acf1129b2b0dd3c Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 14 Jun 2008 16:15:16 +0000 Subject: [PATCH] Add a x11/xfce4 module, ideas largely borrowed from x11/gnome module. This will greatly help when updating to the upcoming 4.6. Also shrinks a lot port Makefiles, which will be soon converted to use it. This will also deprecate Makefile.inc. feedback ajacoutot@ steven@, ok ajacoutot@ --- x11/xfce4/xfce4.port.mk | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 x11/xfce4/xfce4.port.mk diff --git a/x11/xfce4/xfce4.port.mk b/x11/xfce4/xfce4.port.mk new file mode 100644 index 00000000000..0990dfb2f49 --- /dev/null +++ b/x11/xfce4/xfce4.port.mk @@ -0,0 +1,55 @@ +# $OpenBSD: xfce4.port.mk,v 1.1 2008/06/14 16:15:16 landry Exp $ + +# Module for Xfce related ports, divided into three categories: +# core, goodies, plugins. + +XFCE_DESKTOP_VERSION= 4.4.2 +CATEGORIES+= x11/xfce4 +DIST_SUBDIR= xfce4 + +MAINTAINER?= Landry Breuil +USE_X11?= Yes +USE_GMAKE?= Yes +EXTRACT_SUFX?= .tar.bz2 + +# needed for all ports but *-themes +.if !defined(XFCE_NO_SRC) +USE_LIBTOOL?= Yes +MODULES+= devel/gettext textproc/intltool +.endif + +# if version is not defined, it's the DE version +.if !defined(XFCE_VERSION) +XFCE_VERSION= ${XFCE_DESKTOP_VERSION} +.endif + +# Set to 'yes' if there are .desktop files in the package list. +.if defined(DESKTOP_FILES) && ${DESKTOP_FILES:L} == "yes" +MODXFCE_RUN_DEPENDS+= :desktop-file-utils-*:devel/desktop-file-utils +.endif + +.if defined(XFCE_PLUGIN) +HOMEPAGE?= http://goodies.xfce.org/projects/panel-plugins/xfce4-${XFCE_PLUGIN}-plugin + +MASTER_SITES?= http://goodies.xfce.org/releases/xfce4-${XFCE_PLUGIN}-plugin/ +DISTNAME= xfce4-${XFCE_PLUGIN}-plugin-${XFCE_VERSION} +PKGNAME?= ${DISTNAME:S/-plugin//} + +MODXFCE_LIB_DEPENDS= xfce4panel.>=2::x11/xfce4/xfce4-panel +.elif defined(XFCE_GOODIE) +HOMEPAGE=? http://goodies.xfce.org/projects/applications/${XFCE_GOODIE} + +MASTER_SITES?= http://goodies.xfce.org/releases/${XFCE_GOODIE}/ +DISTNAME= ${XFCE_GOODIE}-${XFCE_VERSION} +.elif defined(XFCE_PROJECT) +HOMEPAGE=? http://www.xfce.org/projects/${XFCE_PROJECT} + +MASTER_SITES?= http://www.xfce.org/archive/xfce-${XFCE_DESKTOP_VERSION}/src/ +DISTNAME= ${XFCE_PROJECT}-${XFCE_VERSION} +.endif + +LIB_DEPENDS+= ${MODXFCE_LIB_DEPENDS} +RUN_DEPENDS+= ${MODXFCE_RUN_DEPENDS} +CONFIGURE_STYLE?=gnu +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib"