Edit

IABSD.fr/ports/sysutils/rofi/Makefile

Branch :

  • Show log

    Commit

  • Author : op
    Date : 2023-10-01 18:03:50
    Hash : be4ae87a
    Message : sysutils/rofi: backport fix for non-NUL terminated wm names Spotted by Mikhail with fvwm3; ok tb@ Committing without waiting for jasper@ (MAINTAINER) since it addresses an actual problem using an upstream patch and should make the 7.4 release.

  • sysutils/rofi/Makefile
  • COMMENT =		window switcher, run dialog and dmenu replacement
    
    V =			1.7.5
    DISTNAME =		rofi-${V}
    REVISION =		1
    
    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
    
    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>