1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11/bmpanel2/Makefile
Alexey Dokuchaev 84cec18196 - Add an optional patch to allow setting panel opacity in theme config file
- Update port description to mention features brought by unofficial patches
- Fix spelling of NETWM -> NetWM and utilize options helpers while I'm here
2014-02-26 14:20:05 +00:00

40 lines
1.1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= bmpanel2
DISTVERSION= 2.1pre1
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= GOOGLE_CODE
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= danfe
MAINTAINER= ports@FreeBSD.org
COMMENT= Lightweight NetWM-compliant panel (taskbar) for X11
LICENSE= MIT
USES= cmake pkgconfig
USE_GNOME= pango
USE_XORG= x11 xext
LDFLAGS+= -L${LOCALBASE}/lib # XXX should not be needed
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} -f ${WRKSRC}/themes/striped/theme.orig
.include <bsd.port.mk>