summaryrefslogtreecommitdiffstats
path: root/deskutils/global-menu/Makefile
blob: 8e56f8f99e5142d62af345c14d6e4dcb87e294b9 (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
57
58
59
60
61
62
63
# Created by: Gustavo Perez
# $FreeBSD$

PORTNAME=		gnome-globalmenu
PORTVERSION=		0.7.10
PORTREVISION=	3
CATEGORIES=		deskutils
MASTER_SITES=		http://gnome2-globalmenu.googlecode.com/files/

MAINTAINER=		gustau.perez@gmail.com
COMMENT=		Global menu for gnome

LIB_DEPENDS=		notify.4:${PORTSDIR}/devel/libnotify

USE_GNOME=		gnomepanel gnomedesktop

USE_BZIP2=		yes
USE_LDCONFIG=		yes
GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_AUTOTOOLS=		libtool automake:env autoheader:env
INSTALLS_ICONS=		yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE=		XFCE4_PANEL NLS
XFCE4_PANEL_DESC=	Xfce panel applet

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXFCE4_PANEL}
USE_XFCE=	panel
CONFIGURE_ARGS+=	--with-xfce4-panel
PLIST_SUB+=		XFCE4_PANEL=""
.else
CONFIGURE_ARGS+=	--without-xfce4-panel
PLIST_SUB+=		XFCE4_PANEL="@comment "
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=		NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=		NLS="@comment "
.endif

MAN1=			gnome-globalmenu.1

GCONF_SCHEMAS=		gnome-globalmenu.schemas

post-install:
		@${INSTALL_DATA} ${WRKSRC}/applet/GlobalMenu_PanelApplet.server \
			${LOCALBASE}/libdata/bonobo/servers
		@${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=		Leaves files behind on deinstall on sparc64
.endif

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