mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
78c9e1e581
ok rsadowski@, jasper@
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
COMMENT = window switcher, run dialog and dmenu replacement
|
|
|
|
V = 1.7.9.1
|
|
DISTNAME = rofi-${V}
|
|
|
|
CATEGORIES = sysutils x11
|
|
HOMEPAGE = https://github.com/davatorium/rofi
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# MIT/X
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
SITES = ${HOMEPAGE}/releases/download/${V}/
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
COMPILER_LANGS = c
|
|
|
|
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 xcb-keysyms
|
|
|
|
BUILD_DEPENDS += devel/bison
|
|
LIB_DEPENDS = devel/pango \
|
|
devel/startup-notification \
|
|
graphics/gdk-pixbuf2 \
|
|
x11/xkbcommon
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
x11/gtk+4,-guic
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --disable-check
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
YACC="bison -y"
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
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>
|