Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.18 2017/04/15 14:23:45 jasper Exp $
  2. COMMENT = window switcher, run dialog and dmenu replacement
  3. GH_PROJECT = rofi
  4. GH_TAGNAME = 1.3.1
  5. GH_ACCOUNT = DaveDavenPort
  6. CATEGORIES = sysutils x11
  7. HOMEPAGE = https://davedavenport.github.io/rofi/
  8. MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
  9. # MIT/X
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/
  12. WANTLIB += c cairo gio-2.0 glib-2.0 gobject-2.0 intl pango-1.0
  13. WANTLIB += pangocairo-1.0 pthread startup-notification-1 xcb xcb-ewmh
  14. WANTLIB += xcb-icccm xcb-randr xcb-render xcb-util xcb-xinerama
  15. WANTLIB += xcb-xkb xcb-xrm xkbcommon xkbcommon-x11
  16. BUILD_DEPENDS += x11/i3
  17. LIB_DEPENDS = devel/pango \
  18. devel/startup-notification \
  19. x11/xkbcommon
  20. CONFIGURE_STYLE = gnu
  21. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
  22. pre-configure:
  23. sed -i 's,/usr/bin/env bash,/bin/sh,' ${WRKSRC}/script/get_git_rev.sh
  24. post-install:
  25. sed -i 's,#!.*bash,#!/usr/local/bin/bash,g' ${WRKSRC}/Examples/*.sh
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rofi
  27. ${INSTALL_DATA} ${WRKSRC}/Examples/* ${PREFIX}/share/examples/rofi
  28. .include <bsd.port.mk>