44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.27 2018/12/31 10:27:16 jasper Exp $
|
|
|
|
COMMENT = window switcher, run dialog and dmenu replacement
|
|
|
|
V = 1.5.2
|
|
DISTNAME = rofi-${V}
|
|
|
|
CATEGORIES = sysutils x11
|
|
HOMEPAGE = https://github.com/DaveDavenport/rofi
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# MIT/X
|
|
PERMIT_PACKAGE_CDROM = 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 intl m pango-1.0 pangocairo-1.0 pthread
|
|
WANTLIB += rsvg-2 startup-notification-1 xcb xcb-ewmh xcb-icccm
|
|
WANTLIB += xcb-randr xcb-render xcb-util xcb-xinerama xcb-xkb
|
|
WANTLIB += xcb-xrm xkbcommon xkbcommon-x11
|
|
|
|
BUILD_DEPENDS += devel/bison \
|
|
x11/i3
|
|
LIB_DEPENDS = devel/startup-notification \
|
|
x11/gnome/librsvg \
|
|
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>
|