Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
# |
3 |
|
4 |
PORTNAME= compton |
5 |
PORTVERSION= 20130206 |
6 |
CATEGORIES= x11-wm |
7 |
MASTER_SITES= https://github.com/${GITHUB_USER}/${PORTNAME}/tarball/${GITVERSION}/ |
8 |
DISTNAME= ${GITHUB_USER}-${PORTNAME}-${GITVERSION} |
9 |
|
10 |
MAINTAINER= femc7488@gmail.com |
11 |
COMMENT= A compositor for X11 |
12 |
|
13 |
BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \ |
14 |
docbook-xml=4.5:${PORTSDIR}/textproc/docbook-xml-450 |
15 |
LIB_DEPENDS= config:${PORTSDIR}/devel/libconfig \ |
16 |
pcre:${PORTSDIR}/devel/pcre |
17 |
|
18 |
USE_XORG= x11 xcomposite xfixes xdamage xrender xext xrandr |
19 |
USE_GMAKE= yes |
20 |
USE_PKGCONFIG= yes |
21 |
|
22 |
MAKE_ARGS= COMPTON_VERSION=git-${GITVERSION}-fbsd |
23 |
ALL_TARGET= compton |
24 |
|
25 |
FETCH_ARGS= -pRr |
26 |
GITHUB_USER= chjj |
27 |
GITVERSION= 2182505 |
28 |
|
29 |
.if !defined(NOPORTDOCS) |
30 |
PORTDOCS= README.md compton.sample.conf cdbus-driver.sh |
31 |
MAN1= compton.1 compton-trans.1 |
32 |
MAKE_ARGS+= DOCDIR=${DOCSDIR} \ |
33 |
MANDIR=${MANPREFIX}/man/man1 |
34 |
.endif |
35 |
|
36 |
OPTIONS_DEFINE= DRM OPENGL DBUS |
37 |
OPTIONS_DEFAULT=DRM OPENGL |
38 |
|
39 |
DRM_DESC= DRM Vsync Support |
40 |
OPENGL_DESC= OpenGL Vsync Support |
41 |
DBUS_DESC= D-Bus Support |
42 |
|
43 |
.include <bsd.port.options.mk> |
44 |
|
45 |
.if ${PORT_OPTIONS:MDRM} |
46 |
LIB_DEPENDS+= drm:${PORTSDIR}/graphics/libdrm |
47 |
.else |
48 |
MAKE_ARGS+= NO_VSYNC_DRM=yes |
49 |
.endif |
50 |
|
51 |
.if ${PORT_OPTIONS:MOPENGL} |
52 |
USE_GL= gl |
53 |
.else |
54 |
MAKE_ARGS+= NO_VSYNC_OPENGL=yes |
55 |
.endif |
56 |
|
57 |
.if ${PORT_OPTIONS:MDBUS} |
58 |
LIB_DEPENDS+= dbus-1:${PORTSDIR}/devel/dbus |
59 |
.else |
60 |
MAKE_ARGS+= NO_DBUS=yes |
61 |
.endif |
62 |
|
63 |
.include <bsd.port.mk> |