jasper 99bddf178e - update to rofi-1.7.0
note: this removes the backwards compat for parsing Xresources-style themes
and configuration.
2021-08-30 07:06:59 +00:00

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.35 2021/08/30 07:06:59 jasper Exp $
COMMENT = window switcher, run dialog and dmenu replacement
V = 1.7.0
DISTNAME = rofi-${V}
CATEGORIES = sysutils x11
HOMEPAGE = https://github.com/davatorium/rofi
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# MIT/X
PERMIT_PACKAGE = Yes
MASTER_SITES = ${HOMEPAGE}/releases/download/${V}/
WANTLIB += c cairo gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 harfbuzz intl m pango-1.0 pangocairo-1.0
WANTLIB += pthread startup-notification-1 xcb xcb-ewmh xcb-icccm
WANTLIB += xcb-randr xcb-render xcb-util xcb-xinerama xcb-xkb
WANTLIB += xcb-cursor xkbcommon xkbcommon-x11
BUILD_DEPENDS += devel/bison
LIB_DEPENDS = devel/pango \
devel/startup-notification \
graphics/gdk-pixbuf2 \
x11/xkbcommon
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --disable-check
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
YACC="bison -y"
pre-configure:
sed -i 's,/usr/bin/env bash,/bin/sh,' ${WRKSRC}/script/get_git_rev.sh
post-install:
sed -i 's,#!.*bash,#!/usr/local/bin/bash,g' ${WRKSRC}/Examples/*.sh
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rofi
${INSTALL_DATA} ${WRKSRC}/Examples/* ${PREFIX}/share/examples/rofi
.include <bsd.port.mk>