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@
This commit is contained in:
parent
d57b2a9a52
commit
14e450bf77
55
x11/xfce4/xfce4.port.mk
Normal file
55
x11/xfce4/xfce4.port.mk
Normal file
@ -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 <gaston@gcu.info>
|
||||
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"
|
Loading…
Reference in New Issue
Block a user