summaryrefslogtreecommitdiff
path: root/x11-wm/compton/Makefile
blob: 9e316d20f94867134e0f833e1efe8ab7020d952f (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

PORTNAME=	compton
PORTVERSION=	20160907
PORTREVISION=	4
CATEGORIES=	x11-wm

MAINTAINER=	femc7488@gmail.com
COMMENT=	Feature-rich compositing window manager for X11

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	xprop:x11/xprop \
		xwininfo:x11/xwininfo

CONFLICTS_INSTALL=	picom # bin/compton

USE_GITHUB=	yes
GH_ACCOUNT=	chjj
GH_TAGNAME=	b7f43ee

USES=		gmake pkgconfig xorg
USE_XORG=	x11 xcomposite xdamage xext xfixes xrandr xrender

MAKE_ARGS=	COMPTON_VERSION=git-${PORTVERSION}-${GH_TAGNAME} \
		XDGDIR=${LOCALBASE}/etc/xdg
ALL_TARGET=	${PORTNAME}

OPTIONS_DEFINE=	CONFIG PCRE DRM OPENGL DBUS XINERAMA DOCS
OPTIONS_DEFAULT=	CONFIG PCRE DRM OPENGL DBUS XINERAMA

CONFIG_DESC=	Configuration file parsing support
PCRE_DESC=	Blacklist support (via libpcre)
DRM_DESC=	DRM VSync method support
OPENGL_DESC=	GLX backend, OpenGL VSync method, etc.
DOCS_DESC=	Build manpages (requires AsciiDoc/DocBook)

CONFIG_LIB_DEPENDS=	libconfig.so:devel/libconfig
CONFIG_MAKE_ARGS_OFF=	NO_LIBCONFIG=yes

PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
PCRE_MAKE_ARGS_OFF=	NO_REGEX_PCRE=yes

DRM_LIB_DEPENDS=	libdrm.so:graphics/libdrm
DRM_MAKE_ARGS_OFF=	NO_VSYNC_DRM=yes

OPENGL_USES=		gl
OPENGL_USE=		GL=gl
OPENGL_MAKE_ARGS_OFF=	NO_VSYNC_OPENGL=yes

DBUS_LIB_DEPENDS=	libdbus-1.so:devel/dbus
DBUS_MAKE_ARGS_OFF=	NO_DBUS=yes

XINERAMA_USE=		XORG=xinerama
XINERAMA_MAKE_ARGS_OFF=	NO_XINERAMA=yes

DOCS_BUILD_DEPENDS=	a2x:textproc/asciidoc \
			xsltproc:textproc/libxslt \
			docbook-xml>0:textproc/docbook-xml \
			${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
DOCS_MAKE_ARGS=		DOCDIR=${DOCSDIR} MANDIR=${MANPREFIX}/man/man1
DOCS_ALL_TARGET=	docs
DOCS_PLIST_FILES=	man/man1/compton.1.gz man/man1/compton-trans.1.gz
DOCS_PORTDOCS=		README.md cdbus-driver.sh

post-patch:
	@${REINPLACE_CMD} -e '/config_system_dir/s|/etc|${LOCALBASE}&|' \
		${WRKSRC}/src/compton.c

.include <bsd.port.mk>