summaryrefslogtreecommitdiffstats
path: root/x11/avant-window-navigator/Makefile
blob: ef1bea92daefded80a4f0aba7d3d62b2953c060d (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
64
65
66
67
68
69
70
71
72
73
74
75
76
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	avant-window-navigator
PORTVERSION=	0.3.2.1
PORTREVISION?=	10
CATEGORIES=	x11
MASTER_SITES=	http://launchpadlibrarian.net/26374006/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Dock-like navigation bar

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
LIB_DEPENDS=	libwnck-1.so:${PORTSDIR}/x11-toolkits/libwnck \
		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib

GNU_CONFIGURE=	yes
USES=		gettext gmake libtool pathfix pkgconfig python
USE_GNOME=	glib20 gtk20 pygtk2
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
USE_XORG=	x11 xproto xcomposite xrender
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

AWN_DESKTOP?=	agnostic

.if ${AWN_DESKTOP} == "gnome"
USE_GNOME+=	gnomedesktop libgnomeui
CONFIGURE_ARGS+=	--with-desktop=gnome
CONFLICTS=	${PORTNAME}-xfce4-[0-9]* ${PORTNAME}-[0-9]*
WITH_GCONF=	yes
PKGNAMESUFFIX=	-gnome
.elif ${AWN_DESKTOP} == "xfce4"
OPTIONS_DEFINE=	GCONF
USE_XFCE+=	thunar
CONFIGURE_ARGS+=	--with-desktop=xfce4
CONFLICTS=	${PORTNAME}-gnome-[0-9]* ${PORTNAME}-[0-9]*
PKGNAMESUFFIX=	-xfce4
.else
# agnostic desktop
OPTIONS_DEFINE=	GCONF
CONFIGURE_ARGS+=	--with-desktop=agnostic
CONFLICTS=	${PORTNAME}-gnome-[0-9]* ${PORTNAME}-xfce4-[0-9]*
.endif

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+=	gconf2
GCONF_SCHEMAS=	awn.schemas awn-applets-shared.schemas
CONFIGURE_ARGS+=	--with-gconf
.else
CONFIGURE_ARGS+=	--without-gconf
.endif

post-patch:
	@${REINPLACE_CMD} '/^awn_applet_activation_LDADD =/s/=/= -lgmodule-2.0/' \
		${WRKSRC}/awn-applet-activation/Makefile.in
	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|' \
		${WRKSRC}/awn-manager/awnManager.py.in \
		${WRKSRC}/awn-manager/awnManager.py
	@${REINPLACE_CMD} -e '1 s|bash|sh|' \
		${WRKSRC}/awn-manager/awn-launcher-editor.in
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
		${WRKSRC}/libawn/egg/eggchecksum.h \
		${WRKSRC}/libawn/awn-config-client-shared.c \
		${WRKSRC}/libawn/awn-config-client-gconf.c
	@${REINPLACE_CMD} -e 's|glib/gutils.h>|glib.h>|g' \
		${WRKSRC}/libawn/awn-config-client-gkeyfile.c
	@${REINPLACE_CMD} '/^avant_window_navigator_LDADD =/s/=/= -ldbus-glib-1/' \
		${WRKSRC}/src/Makefile.in

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