[Midnightbsd-cvs] mports [22260] trunk/x11-wm: add compton port
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Feb 18 10:01:50 EST 2017
Revision: 22260
http://svnweb.midnightbsd.org/mports/?rev=22260
Author: laffer1
Date: 2017-02-18 10:01:50 -0500 (Sat, 18 Feb 2017)
Log Message:
-----------
add compton port
Modified Paths:
--------------
trunk/x11-wm/Makefile
Added Paths:
-----------
trunk/x11-wm/compton/
trunk/x11-wm/compton/Makefile
trunk/x11-wm/compton/distinfo
trunk/x11-wm/compton/files/
trunk/x11-wm/compton/files/patch-Makefile
trunk/x11-wm/compton/files/patch-c2.h
trunk/x11-wm/compton/pkg-descr
trunk/x11-wm/compton/pkg-plist
Modified: trunk/x11-wm/Makefile
===================================================================
--- trunk/x11-wm/Makefile 2017-02-18 14:54:35 UTC (rev 22259)
+++ trunk/x11-wm/Makefile 2017-02-18 15:01:50 UTC (rev 22260)
@@ -6,6 +6,7 @@
SUBDIR += awesome
SUBDIR += blackbox
SUBDIR += compiz
+SUBDIR += compton
SUBDIR += enlightenment
SUBDIR += fluxbox
SUBDIR += fvwm2
Added: trunk/x11-wm/compton/Makefile
===================================================================
--- trunk/x11-wm/compton/Makefile (rev 0)
+++ trunk/x11-wm/compton/Makefile 2017-02-18 15:01:50 UTC (rev 22260)
@@ -0,0 +1,83 @@
+# $MidnightBSD$
+# $FreeBSD: head/x11-wm/compton/Makefile 412351 2016-04-01 14:33:55Z mat $
+
+PORTNAME= compton
+PORTVERSION= 20150920
+CATEGORIES= x11-wm
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Feature-rich compositing window manager for X11
+
+LICENSE= mit
+
+FAKE_OPTS+= trueprefix
+
+LIB_DEPENDS= libconfig.so:devel/libconfig
+RUN_DEPENDS= xprop:x11/xprop \
+ xwininfo:x11/xwininfo
+
+USE_GITHUB= yes
+GH_ACCOUNT= chjj
+GH_TAGNAME= d7f95b5
+
+WRKSRC= ${WRKDIR}/compton-d7f95b5
+
+MAKE_JOBS_UNSAFE= yes
+
+USES= gmake pkgconfig
+USE_XORG= xcomposite xdamage xrandr xrender xinerama
+
+MAKE_ARGS= COMPTON_VERSION=git-${PORTVERSION}-${GH_TAGNAME} \
+ XDGDIR=${LOCALBASE}/etc/xdg
+ALL_TARGET= ${PORTNAME}
+
+OPTIONS_DEFINE= PCRE DRM OPENGL DBUS DOCS
+OPTIONS_DEFAULT= PCRE DRM OPENGL DBUS
+
+PCRE_DESC= Blacklist support (via libpcre)
+DRM_DESC= DRM support
+DOCS_DESC= Build manpages (requires AsciiDoc/DocBook)
+
+.include <bsd.mport.options.mk>
+
+.if ${PORT_OPTIONS:MPCRE}
+LIB_DEPENDS+= libpcre.so:devel/pcre
+.else
+MAKE_ARGS+= NO_REGEX_PCRE=yes
+.endif
+
+.if ${PORT_OPTIONS:MDRM}
+LIB_DEPENDS+= libdrm.so: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+= libdbus-1.so:devel/dbus
+.else
+MAKE_ARGS+= NO_DBUS=yes
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS= a2x:textproc/asciidoc \
+ xsltproc:textproc/libxslt \
+ docbook-xml>0:textproc/docbook-xml \
+ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
+MAKE_ARGS+= DOCDIR=${DOCSDIR} MANDIR=${MANPREFIX}/man/man1
+ALL_TARGET+= docs
+PLIST_FILES+= man/man1/compton.1.gz man/man1/compton-trans.1.gz
+PORTDOCS= README.md cdbus-driver.sh
+.endif
+
+post-patch:
+# Adjust the location of configuration file
+ @${REINPLACE_CMD} -e '/config_system_dir/s|/etc|${LOCALBASE}&|' \
+ ${WRKSRC}/src/compton.c
+
+.include <bsd.port.mk>
Property changes on: trunk/x11-wm/compton/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-wm/compton/distinfo
===================================================================
--- trunk/x11-wm/compton/distinfo (rev 0)
+++ trunk/x11-wm/compton/distinfo 2017-02-18 15:01:50 UTC (rev 22260)
@@ -0,0 +1,2 @@
+SHA256 (compton-20150920_GH0.tar.gz) = 4aa2d3fb8af8fbc7e19d022c708010c68cc13b6616bc550a6089afdc2b821e81
+SIZE (compton-20150920_GH0.tar.gz) = 162985
Property changes on: trunk/x11-wm/compton/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-wm/compton/files/patch-Makefile
===================================================================
--- trunk/x11-wm/compton/files/patch-Makefile (rev 0)
+++ trunk/x11-wm/compton/files/patch-Makefile 2017-02-18 15:01:50 UTC (rev 22260)
@@ -0,0 +1,46 @@
+--- Makefile.orig 2015-09-20 09:16:54 UTC
++++ Makefile
+@@ -143,29 +143,30 @@ compton: $(OBJS)
+ $(CC) $(CFG) $(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
+
+ man/%.1: man/%.1.asciidoc
+- a2x --format manpage $<
++ a2x -v --format manpage $<
+
+ man/%.1.html: man/%.1.asciidoc
+ asciidoc $<
+
+ docs: $(MANPAGES) $(MANPAGES_HTML)
+
+-install: $(BINS) docs
+- @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)" "$(DESTDIR)$(APPDIR)"
+- @install -m755 $(BINS) "$(DESTDIR)$(BINDIR)"/
+-ifneq "$(MANPAGES)" ""
+- @install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
+-endif
++install: $(BINS)
++ @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(APPDIR)" "$(DESTDIR)$(XDGDIR)"
++ install -m755 $(BINS) "$(DESTDIR)$(BINDIR)"/
+ @install -d \
+ "$(DESTDIR)$(ICODIR)/scalable/apps" \
+ "$(DESTDIR)$(ICODIR)/48x48/apps"
+- @install -m644 media/compton.svg "$(DESTDIR)$(ICODIR)/scalable/apps"/
+- @install -m644 media/icons/48x48/compton.png "$(DESTDIR)$(ICODIR)/48x48/apps"/
+- @install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
++ install -m644 media/compton.svg "$(DESTDIR)$(ICODIR)/scalable/apps"/
++ install -m644 media/icons/48x48/compton.png "$(DESTDIR)$(ICODIR)/48x48/apps"/
++ install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
++ install -m644 compton.sample.conf "$(DESTDIR)$(XDGDIR)"/compton.conf.sample
+ ifneq "$(DOCDIR)" ""
+- @install -d "$(DESTDIR)$(DOCDIR)"
+- @install -m644 README.md compton.sample.conf "$(DESTDIR)$(DOCDIR)"/
+- @install -m755 dbus-examples/cdbus-driver.sh "$(DESTDIR)$(DOCDIR)"/
++ @install -d "$(DESTDIR)$(DOCDIR)" "$(DESTDIR)$(MANDIR)"
++ifneq "$(MANPAGES)" ""
++ install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
++endif
++ install -m644 README.md "$(DESTDIR)$(DOCDIR)"/
++ install -m755 dbus-examples/cdbus-driver.sh "$(DESTDIR)$(DOCDIR)"/
+ endif
+
+ uninstall:
Property changes on: trunk/x11-wm/compton/files/patch-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-wm/compton/files/patch-c2.h
===================================================================
--- trunk/x11-wm/compton/files/patch-c2.h (rev 0)
+++ trunk/x11-wm/compton/files/patch-c2.h 2017-02-18 15:01:50 UTC (rev 22260)
@@ -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.
Property changes on: trunk/x11-wm/compton/files/patch-c2.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-wm/compton/pkg-descr
===================================================================
--- trunk/x11-wm/compton/pkg-descr (rev 0)
+++ trunk/x11-wm/compton/pkg-descr 2017-02-18 15:01:50 UTC (rev 22260)
@@ -0,0 +1,14 @@
+Compton is a compositor for X11, which was forked from Dana Jansens' fork
+of xcompmgr, and heavily refactored.
+
+Most prominent changes from the original xcompmgr:
+
+ - OpenGL/GLX backend in addition to the old XRender backend
+ - Inactive window transparency and dimming
+ - Titlebar/frame and menu transparency
+ - Shadows for ARGB windows, e.g. terminals with transparency
+ - Colored shadows; new fade system
+ - Blur of background of transparent windows, window color inversion
+ - Configuration file support with blacklisting
+
+WWW: https://github.com/chjj/compton
Property changes on: trunk/x11-wm/compton/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-wm/compton/pkg-plist
===================================================================
--- trunk/x11-wm/compton/pkg-plist (rev 0)
+++ trunk/x11-wm/compton/pkg-plist 2017-02-18 15:01:50 UTC (rev 22260)
@@ -0,0 +1,6 @@
+bin/compton
+bin/compton-trans
+ at sample etc/xdg/compton.conf.sample
+share/applications/compton.desktop
+share/icons/hicolor/48x48/apps/compton.png
+share/icons/hicolor/scalable/apps/compton.svg
Property changes on: trunk/x11-wm/compton/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list