openbsd-ports/x11/xfce4/xfce4.port.mk
landry 8c73755969 Some fixes to x11/xfce4 module : DIST_SUBDIR, CONFIGURE_STYLE and USE_X11
are already defined in Makefile.inc, and putting them in the module was a
bad idea.
While here, remove temporarly myself as MAINTAINER, this info will also end
up in Makefile.inc when all ports are converted to use the module, like
it's done for gnome.
Also, conditionally define DISTNAME for XFCE_PLUGIN case, it's needed by
verve-plugin.

Requested by, discussed with and ok ajacoutot@
2008-07-07 12:06:04 +00:00

52 lines
1.6 KiB
Makefile

# $OpenBSD: xfce4.port.mk,v 1.3 2008/07/07 12:06:04 landry Exp $
# Module for Xfce related ports, divided into three categories:
# core, goodies, plugins.
XFCE_DESKTOP_VERSION= 4.4.2
CATEGORIES+= x11/xfce4
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_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"