aboutsummaryrefslogtreecommitdiff
path: root/x11/thingylaunch/Makefile
blob: a1b18b8fbaa0780b9853e8b0d0ac29ea14ea8fbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Pietro Cerutti <gahr@FreeBSD.org>

PORTNAME=	thingylaunch
PORTVERSION=	2.0.3
PORTREVISION=	8
CATEGORIES=	x11
MASTER_SITES=	http://gahr.ch/thingylaunch/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Lightweight launcher for X

LICENSE=	MIT BSD2CLAUSE
LICENSE_COMB=	multi

OPTIONS_SINGLE=		X11
OPTIONS_SINGLE_X11=	LIBX11 LIBXCB
LIBX11_DESC=		Build against libX11
LIBXCB_DESC=		Build against libXCB
OPTIONS_DEFAULT=	LIBX11

USES=		cmake compiler:c++11-lib xorg
USE_XORG=	xorgproto
USE_CXXSTD=	c++11

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLIBX11}
USE_XORG+=	x11
.endif

.if ${PORT_OPTIONS:MLIBXCB}
USE_XORG+=	xcb
LIB_DEPENDS+=	libxcb-icccm.so:x11/xcb-util-wm \
		libxcb-keysyms.so:x11/xcb-util-keysyms
CMAKE_ARGS+=	-DUSE_XCB:BOOL=ON
.endif

USE_GITHUB=	yes
GH_ACCOUNT=	gahr

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>