Lines 1-68
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= compton |
3 |
PORTNAME= compton |
4 |
PORTVERSION= 20160907 |
4 |
DISTVERSIONPREFIX= v |
5 |
PORTREVISION= 4 |
5 |
DISTVERSION= 7.4 |
|
|
6 |
PORTEPOCH= 1 |
6 |
CATEGORIES= x11-wm |
7 |
CATEGORIES= x11-wm |
7 |
|
8 |
|
8 |
MAINTAINER= femc7488@gmail.com |
9 |
MAINTAINER= jbeich@FreeBSD.org |
9 |
COMMENT= Feature-rich compositing window manager for X11 |
10 |
COMMENT= Feature-rich compositing window manager for X11 |
10 |
|
11 |
|
11 |
LICENSE= MIT |
12 |
LICENSE= MIT MPL20 |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_COMB= multi |
|
|
14 |
LICENSE_FILE_MIT= ${WRKSRC}/LICENSES/MIT |
13 |
|
15 |
|
|
|
16 |
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash |
17 |
LIB_DEPENDS= libev.so:devel/libev \ |
18 |
libxcb-image.so:x11/xcb-util-image \ |
19 |
libxcb-render-util.so:x11/xcb-util-renderutil |
14 |
RUN_DEPENDS= xprop:x11/xprop \ |
20 |
RUN_DEPENDS= xprop:x11/xprop \ |
15 |
xwininfo:x11/xwininfo |
21 |
xwininfo:x11/xwininfo |
16 |
|
22 |
|
|
|
23 |
USES= compiler:c11 meson localbase pkgconfig python:3.4+,run shebangfix |
17 |
USE_GITHUB= yes |
24 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= chjj |
25 |
USE_XORG= x11 xcb xext pixman |
19 |
GH_TAGNAME= b7f43ee |
26 |
GH_ACCOUNT= yshui |
|
|
27 |
SHEBANG_FILES= bin/compton-convgen.py |
28 |
MESON_ARGS= -Dunittest=true |
29 |
TEST_TARGET= test |
20 |
|
30 |
|
21 |
USES= gmake pkgconfig |
31 |
OPTIONS_DEFINE= CONFIG DBUS DOCS DRM OPENGL PCRE TEST |
22 |
USE_XORG= x11 xcomposite xdamage xext xfixes xrandr xrender |
32 |
OPTIONS_DEFAULT=CONFIG DBUS OPENGL PCRE |
23 |
|
33 |
|
24 |
MAKE_ARGS= COMPTON_VERSION=git-${PORTVERSION}-${GH_TAGNAME} \ |
34 |
CONFIG_DESC= Configuration file parsing support |
25 |
XDGDIR=${LOCALBASE}/etc/xdg |
35 |
CONFIG_LIB_DEPENDS= libconfig.so:devel/libconfig \ |
26 |
ALL_TARGET= ${PORTNAME} |
36 |
libxdg-basedir.so:x11/libxdg-basedir |
27 |
|
37 |
CONFIG_MESON_TRUE= config_file |
28 |
OPTIONS_DEFINE= CONFIG PCRE DRM OPENGL DBUS XINERAMA DOCS |
|
|
29 |
OPTIONS_DEFAULT= CONFIG PCRE DRM OPENGL DBUS XINERAMA |
30 |
|
31 |
CONFIG_DESC= Configuration file parsing support |
32 |
PCRE_DESC= Blacklist support (via libpcre) |
33 |
DRM_DESC= DRM VSync method support |
34 |
OPENGL_DESC= GLX backend, OpenGL VSync method, etc. |
35 |
DOCS_DESC= Build manpages (requires AsciiDoc/DocBook) |
36 |
|
37 |
CONFIG_LIB_DEPENDS= libconfig.so:devel/libconfig |
38 |
CONFIG_MAKE_ARGS_OFF= NO_LIBCONFIG=yes |
39 |
|
38 |
|
40 |
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
39 |
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
41 |
PCRE_MAKE_ARGS_OFF= NO_REGEX_PCRE=yes |
40 |
PCRE_MESON_TRUE= regex |
42 |
|
41 |
|
|
|
42 |
DRM_DESC= DRM VSync fallback (deprecated) |
43 |
DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm |
43 |
DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm |
44 |
DRM_MAKE_ARGS_OFF= NO_VSYNC_DRM=yes |
44 |
DRM_MESON_TRUE= vsync_drm |
45 |
|
45 |
|
46 |
OPENGL_USE= GL=gl |
46 |
OPENGL_USE= GL=gl |
47 |
OPENGL_MAKE_ARGS_OFF= NO_VSYNC_OPENGL=yes |
47 |
OPENGL_MESON_TRUE= opengl |
48 |
|
48 |
|
49 |
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus |
49 |
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus |
50 |
DBUS_MAKE_ARGS_OFF= NO_DBUS=yes |
50 |
DBUS_MESON_TRUE= dbus |
51 |
|
|
|
52 |
XINERAMA_USE= XORG=xinerama |
53 |
XINERAMA_MAKE_ARGS_OFF= NO_XINERAMA=yes |
54 |
|
51 |
|
55 |
DOCS_BUILD_DEPENDS= a2x:textproc/asciidoc \ |
52 |
DOCS_BUILD_DEPENDS= a2x:textproc/asciidoc |
56 |
xsltproc:textproc/libxslt \ |
53 |
DOCS_MESON_TRUE= build_docs |
57 |
docbook-xml>0:textproc/docbook-xml \ |
54 |
DOCS_PLIST_FILES= man/man1/${PORTNAME}.1.gz \ |
58 |
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl |
55 |
man/man1/${PORTNAME}-trans.1.gz |
59 |
DOCS_MAKE_ARGS= DOCDIR=${DOCSDIR} MANDIR=${MANPREFIX}/man/man1 |
|
|
60 |
DOCS_ALL_TARGET= docs |
61 |
DOCS_PLIST_FILES= man/man1/compton.1.gz man/man1/compton-trans.1.gz |
62 |
DOCS_PORTDOCS= README.md cdbus-driver.sh |
63 |
|
56 |
|
64 |
post-patch: |
57 |
post-patch: |
65 |
@${REINPLACE_CMD} -e '/config_system_dir/s|/etc|${LOCALBASE}&|' \ |
58 |
@${REINPLACE_CMD} -e '/install_dir/s,share/man,man,' \ |
66 |
${WRKSRC}/src/compton.c |
59 |
${WRKSRC}/man/meson.build |
|
|
60 |
@${REINPLACE_CMD} -e '/config_system_dir/s,/etc,${PREFIX}&,' \ |
61 |
${WRKSRC}/src/config_libconfig.c |
62 |
# Extract (snapshot) version from the port instead of meson.build |
63 |
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \ |
64 |
-e "/project_version/s/=.*/= '${DISTVERSIONFULL}'/" \ |
65 |
${WRKSRC}/meson.build |
66 |
|
67 |
post-install: |
68 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg |
69 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.sample.conf \ |
70 |
${STAGEDIR}${PREFIX}/etc/xdg/${PORTNAME}.conf.sample |
71 |
|
72 |
pre-install-TEST-on: do-test |
67 |
|
73 |
|
68 |
.include <bsd.port.mk> |
74 |
.include <bsd.port.mk> |