Navigation Menu

Skip to content

Commit

Permalink
sysutils/vifm: add "no_x11" flavor
Browse files Browse the repository at this point in the history
While at it, fix dependencies.
  • Loading branch information
czarkoff committed Feb 2, 2016
1 parent 6c8ff56 commit a755a17
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions sysutils/vifm/Makefile
@@ -1,37 +1,44 @@
# $OpenBSD:
# $OpenBSD$

COMMENT = ncurses file manager with vi keybindings
COMMENT = ncurses file manager with vi keybindings

DISTNAME = vifm-0.8.1
DISTNAME = vifm-0.8.1

CATEGORIES = sysutils
CATEGORIES = sysutils

HOMEPAGE = https://vifm.info/
HOMEPAGE = https://vifm.info/

MAINTAINER = Rafael Sadowski <rafael@sizeofvoid.org>
MAINTAINER = Rafael Sadowski <rafael@sizeofvoid.org>

# GPLv2+
PERMIT_PACKAGE_CDROM = Yes

WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += gtk-x11-2.0 intl ncursesw pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pthread z
WANTLIB += c ncursesw pthread

MASTER_SITES = http://prdownloads.sourceforge.net/vifm/
EXTRACT_SUFX = .tar.bz2
MASTER_SITES = http://prdownloads.sourceforge.net/vifm/
EXTRACT_SUFX = .tar.bz2

MODULES = devel/gettext
FLAVOR ?=
FLAVORS = no_x11

LIB_DEPENDS = devel/pango \
devel/glib2 \
devel/atk \
x11/gtk+2 \
graphics/gdk-pixbuf2
CONFIGURE_STYLE = gnu

RUN_DEPENDS = devel/desktop-file-utils
RUN_DEPENDS = devel/desktop-file-utils

CONFIGURE_STYLE = gnu
.if ${FLAVOR:Mno_x11}
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 cairo fontconfig freetype gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 z

CONFIGURE_ARGS += --without-libmagic \
--without-dyn-x11
MODULES = devel/gettext
LIB_DEPENDS += x11/gtk+2
.else
LIB_DEPENDS += devel/libmagic
CONFIGURE_ARGS += --without-gtk \
--without-X11
.endif

.include <bsd.port.mk>

0 comments on commit a755a17

Please sign in to comment.