summaryrefslogtreecommitdiffstats
path: root/x11/bmpanel2/Makefile
blob: 92ea0f520e444b78857e5de4aac5bc95c74b926a (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	bmpanel2
DISTVERSION=	2.1pre1
PORTREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/bmpanel2/
PATCH_SITES=	LOCAL/danfe

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Lightweight NetWM-compliant panel (taskbar) for X11

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cmake pkgconfig
USE_GNOME=	pango
USE_XORG=	x11 xext

OPTIONS_DEFINE=	OPACITY TEMPERATURE
OPACITY_DESC=		Opacity setting with compositing window managers
TEMPERATURE_DESC=	Build with temperature widget (for CPU, etc.)

OPACITY_PATCHFILES=	${PORTNAME}-opacity-setting.diff
TEMPERATURE_PATCHFILES=	${PORTNAME}-temperature-widget.diff

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' ${WRKSRC}/xdg.c
	@${REINPLACE_CMD} -e '/^#include/s,alloca,stdlib,' \
		${WRKSRC}/widget-utils.c
	@${REINPLACE_CMD} -e 's,uint,unsigned,' ${WRKSRC}/args.c
# Disable unused optional features (and thus unbreak "make clean")
	@${REINPLACE_CMD} -e '/^OPTION/s, ON, OFF,' ${WRKSRC}/CMakeLists.txt
	@${RM} ${WRKSRC}/themes/striped/theme.orig

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmpanel2

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