blob: 75f4ab8d27df95a7ba5bcc1a8e0e0d878d7a2886 (
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
71
72
|
PORTNAME= picom
DISTVERSIONPREFIX= v
DISTVERSION= 8.2
CATEGORIES= x11-wm
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 78223caea3f7.patch:-p1 # https://github.com/yshui/picom/pull/422
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Lightweight X11 compositor
LICENSE= MIT MPL20
LICENSE_COMB= multi
LICENSE_FILE_MIT= ${WRKSRC}/LICENSES/MIT
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash
LIB_DEPENDS= libev.so:devel/libev \
libxcb-image.so:x11/xcb-util-image \
libxcb-render-util.so:x11/xcb-util-renderutil
RUN_DEPENDS= xprop:x11/xprop \
xwininfo:x11/xwininfo
CONFLICTS_INSTALL= compton # bin/compton
USES= compiler:c11 meson localbase pkgconfig xorg
USE_GITHUB= yes
USE_XORG= x11 xcb xext pixman
GH_ACCOUNT= yshui
MESON_ARGS= -Dunittest=true
TEST_TARGET= test
OPTIONS_DEFINE= CONFIG DBUS DOCS DRM OPENGL PCRE
OPTIONS_DEFAULT=CONFIG DBUS OPENGL PCRE
CONFIG_DESC= Configuration file parsing support
CONFIG_LIB_DEPENDS= libconfig.so:devel/libconfig
CONFIG_MESON_TRUE= config_file
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_MESON_TRUE= regex
DRM_DESC= DRM VSync fallback (deprecated)
DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm
DRM_MESON_TRUE= vsync_drm
OPENGL_USES= gl
OPENGL_USE= GL=gl
OPENGL_MESON_TRUE= opengl
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_MESON_TRUE= dbus
DOCS_BUILD_DEPENDS= a2x:textproc/asciidoc
DOCS_MESON_TRUE= with_docs
DOCS_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz \
share/man/man1/${PORTNAME}-trans.1.gz
post-patch:
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
${WRKSRC}/src/config_libconfig.c
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-e "/project_version/s/=.*/= '${DISTVERSIONFULL}'/" \
${WRKSRC}/meson.build
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.sample.conf \
${STAGEDIR}${PREFIX}/etc/xdg/${PORTNAME}.conf.sample
.include <bsd.port.mk>
|