1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/x11-wm/picom/Makefile
2024-08-15 21:15:32 +02:00

73 lines
2.0 KiB
Makefile

PORTNAME= picom
DISTVERSIONPREFIX= v
DISTVERSION= 11.2
CATEGORIES= x11-wm
MAINTAINER= ports@FreeBSD.org
COMMENT= Lightweight X11 compositor
WWW= https://github.com/yshui/picom
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
USES= compiler:c11 meson localbase pkgconfig xorg
USE_GITHUB= yes
USE_XORG= x11 xcb xext pixman
GH_ACCOUNT= yshui
MESON_ARGS= -Dcompton=false -Dunittest=true
TEST_TARGET= test
PLIST_FILES= bin/${PORTNAME} \
bin/${PORTNAME}-trans \
etc/xdg/autostart/${PORTNAME}.desktop \
"@sample etc/xdg/${PORTNAME}.conf.sample" \
share/applications/${PORTNAME}.desktop
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= libpcre2-8.so:devel/pcre2
PCRE_MESON_TRUE= regex
DRM_DESC= DRM VSync fallback (deprecated)
DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm
DRM_MESON_TRUE= vsync_drm
OPENGL_LIB_DEPENDS= libepoxy.so:graphics/libepoxy
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}/man/${PORTNAME}.1.asciidoc \
${WRKSRC}/src/config.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>