ports/176480: [NEW PORT] x11-wm/compton: Compton is a compositor for X

Chi-Hung Chang femc7488 at gmail.com
Wed Feb 27 14:50:00 UTC 2013


>Number:         176480
>Category:       ports
>Synopsis:       [NEW PORT] x11-wm/compton: Compton is a compositor for X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 14:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Chi-Hung Chang
>Release:        FreeBSD 9.1-RC1 amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
    Compton is a compositor for X, and a fork of xcompmgr-dana.

    WWW: https://github.com/chjj/compton/
>How-To-Repeat:
>Fix:

--- compton.diff begins here ---
Index: x11-wm/Makefile
===================================================================
--- x11-wm/Makefile	(revision 308183)
+++ x11-wm/Makefile	(working copy)
@@ -25,6 +25,7 @@
     SUBDIR += compiz-plugins-unsupported
     SUBDIR += compizconfig-backend-gconf
     SUBDIR += compizconfig-python
+    SUBDIR += compton
     SUBDIR += ctwm
     SUBDIR += devilspie
     SUBDIR += dwm
Index: x11-wm/compton/Makefile
===================================================================
--- x11-wm/compton/Makefile	(revision 0)
+++ x11-wm/compton/Makefile	(working copy)
@@ -0,0 +1,63 @@
+# $FreeBSD$
+#
+
+PORTNAME=	compton
+PORTVERSION=	20130206
+CATEGORIES=	x11-wm
+MASTER_SITES=	https://github.com/${GITHUB_USER}/${PORTNAME}/tarball/${GITVERSION}/
+DISTNAME=	${GITHUB_USER}-${PORTNAME}-${GITVERSION}
+
+MAINTAINER=	femc7488 at gmail.com
+COMMENT=	A compositor for X11
+
+BUILD_DEPENDS=	asciidoc:${PORTSDIR}/textproc/asciidoc \
+		docbook-xml=4.5:${PORTSDIR}/textproc/docbook-xml-450
+LIB_DEPENDS=	config:${PORTSDIR}/devel/libconfig \
+		pcre:${PORTSDIR}/devel/pcre
+
+USE_XORG=	x11 xcomposite xfixes xdamage xrender xext xrandr
+USE_GMAKE=	yes
+USE_PKGCONFIG=	yes
+
+MAKE_ARGS=	COMPTON_VERSION=git-${GITVERSION}-fbsd
+ALL_TARGET=	compton
+
+FETCH_ARGS=	-pRr
+GITHUB_USER=	chjj
+GITVERSION=	2182505
+
+.if !defined(NOPORTDOCS)
+PORTDOCS=	README.md compton.sample.conf cdbus-driver.sh
+MAN1=		compton.1 compton-trans.1
+MAKE_ARGS+=	DOCDIR=${DOCSDIR} \
+		MANDIR=${MANPREFIX}/man/man1
+.endif
+
+OPTIONS_DEFINE=	DRM OPENGL DBUS
+OPTIONS_DEFAULT=DRM OPENGL
+
+DRM_DESC=	DRM Vsync Support
+OPENGL_DESC=	OpenGL Vsync Support
+DBUS_DESC=	D-Bus Support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDRM}
+LIB_DEPENDS+=	drm:${PORTSDIR}/graphics/libdrm
+.else
+MAKE_ARGS+=	NO_VSYNC_DRM=yes
+.endif
+
+.if ${PORT_OPTIONS:MOPENGL}
+USE_GL=		gl
+.else
+MAKE_ARGS+=	NO_VSYNC_OPENGL=yes
+.endif
+
+.if ${PORT_OPTIONS:MDBUS}
+LIB_DEPENDS+=	dbus-1:${PORTSDIR}/devel/dbus
+.else
+MAKE_ARGS+=	NO_DBUS=yes
+.endif
+
+.include <bsd.port.mk>
Index: x11-wm/compton/distinfo
===================================================================
--- x11-wm/compton/distinfo	(revision 0)
+++ x11-wm/compton/distinfo	(working copy)
@@ -0,0 +1,2 @@
+SHA256 (chjj-compton-2182505.tar.gz) = cf022e0825555fdf82046a0534b2f6f5463c3ab6285b03ea3c647dd55950d916
+SIZE (chjj-compton-2182505.tar.gz) = 107968
Index: x11-wm/compton/files/patch-c2.h
===================================================================
--- x11-wm/compton/files/patch-c2.h	(revision 0)
+++ x11-wm/compton/files/patch-c2.h	(working copy)
@@ -0,0 +1,15 @@
+--- src/c2.h.orig	2013-02-06 01:40:34.000000000 +0800
++++ src/c2.h	2013-02-06 01:40:53.000000000 +0800
+@@ -35,10 +35,8 @@
+ /// Pointer to a condition tree.
+ typedef struct {
+   bool isbranch : 1;
+-  union {
+-    c2_b_t *b;
+-    c2_l_t *l;
+-  };
++  c2_b_t *b;
++  c2_l_t *l;
+ } c2_ptr_t;
+ 
+ /// Initializer for c2_ptr_t.
Index: x11-wm/compton/pkg-descr
===================================================================
--- x11-wm/compton/pkg-descr	(revision 0)
+++ x11-wm/compton/pkg-descr	(working copy)
@@ -0,0 +1,11 @@
+Compton is a compositor for X, and a fork of xcompmgr-dana.
+
+I was frustrated by the low amount of standalone lightweight compositors. 
+Compton was forked from Dana Jansens' fork of xcompmgr and refactored. 
+I fixed whatever bug I found, and added features I wanted. 
+Things seem stable, but don't quote me on it. 
+I will most likely be actively working on this until I get the features I want.
+This is also a learning experience for me. 
+That is, I'm partially doing this out of a desire to learn Xlib.
+
+WWW: https://github.com/chjj/compton
Index: x11-wm/compton/pkg-plist
===================================================================
--- x11-wm/compton/pkg-plist	(revision 0)
+++ x11-wm/compton/pkg-plist	(working copy)
@@ -0,0 +1,3 @@
+ at comment $FreeBSD$
+bin/compton
+bin/compton-trans
--- compton.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list