summaryrefslogtreecommitdiffstats
path: root/x11/lxpanel/Makefile
blob: eafe0dcd8efd19b370c8102eba40e9710d89e398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by: Lin, Cheng-Tao <b89605222@ntu.edu.tw>
# $FreeBSD$

PORTNAME=	lxpanel
PORTVERSION=	0.9.3
CATEGORIES=	x11
MASTER_SITES=	SF/lxde/LXPanel%20%28desktop%20panel%29/LXPanel%20${PORTVERSION:R}.x/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Lightweight X11 desktop panel

LICENSE=	GPLv2 MIT
LICENSE_COMB=	dual

LIB_DEPENDS=	libmenu-cache.so:x11/menu-cache \
		libkeybinder.so:x11/keybinder \
		libfm-gtk.so:x11/libfm \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2
RUN_DEPENDS=	${LOCALBASE}/etc/xdg/menus/lxde-applications.menu:x11/lxmenu-data

USE_GNOME=	glib20 gtk20 cairo gdkpixbuf2 libwnck intltool
USE_XORG=	x11
USES=		gmake libtool localbase pathfix pkgconfig tar:xz
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

# Panel plugins
LXPANEL_PLUGINS=	"-netstat,-netstatus,deskno,-batt,kbled,xkb,-thermal,cpu,cpufreq,monitors,-indicator"

OPTIONS_SINGLE=	SOUND
OPTIONS_SINGLE_SOUND=	ALSA OSS
OPTIONS_DEFINE=	NLS WEATHER
OPTIONS_DEFAULT=	OSS WEATHER
OPTIONS_SUB=	yes

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CONFIGURE_ENABLE=	alsa
ALSA_VARS=	lxpanel_plugins+=",-volume,volumealsa"
OSS_VARS=	lxpanel_plugins+=",volume,-volumealsa"
NLS_CONFIGURE_ENABLE=	nls
NLS_USES=	gettext
NLS_USES_OFF=	gettext-tools
WEATHER_USE=	gnome=libxml2
WEATHER_VARS=	lxpanel_plugins+=",weather"
WEATHER_VARS_OFF=	lxpanel_plugins+=",-weather"
WEATHER_DESC=	Weather plugin

CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc \
	--with-plugins="${LXPANEL_PLUGINS}"

post-patch-NLS-off:
	@${REINPLACE_CMD} -e 's|po man|man|' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>
OpenPOWER on IntegriCloud