openbsd-ports/x11/picom/Makefile
op cc58550156 update x11/picom to 10.1
bugfix release:

 - fix a GL texture leak
 - fix crash when shadow radius is set to 0
 - undefined symbol error (patch-src_backend_gl_egl_c)
2022-11-22 19:43:50 +00:00

52 lines
1.3 KiB
Makefile

COMMENT = lightweight compositor for X11
GH_ACCOUNT = yshui
GH_PROJECT = picom
GH_TAGNAME = v10.1
CATEGORIES = x11
# MPL 2.0
PERMIT_PACKAGE = Yes
WANTLIB += EGL GL X11 X11-xcb c config dbus-1 ev m pcre pixman-1
WANTLIB += xcb-composite xcb-damage xcb-glx xcb-image xcb-present
WANTLIB += xcb-randr xcb-render-util xcb-render xcb-shape xcb-sync
WANTLIB += xcb-xfixes xcb-xinerama xcb
MODULES = devel/meson
# C11
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
BUILD_DEPENDS = devel/uthash \
textproc/asciidoc
RUN_DEPENDS = x11/gtk+3,-guic \
devel/desktop-file-utils
LIB_DEPENDS = devel/libconfig \
devel/libev \
devel/pcre \
x11/dbus
CONFIGURE_ARGS += -Dwith_docs=true \
-Dunittest=true \
-Dcompton=false
CONFIGURE_ENV += CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/{48x48,scalable}/apps
${INSTALL_DATA} ${WRKSRC}/media/icons/48x48/compton.png \
${PREFIX}/share/icons/hicolor/48x48/apps/picom.png
${INSTALL_DATA} ${WRKSRC}/media/compton.svg \
${PREFIX}/share/icons/hicolor/scalable/apps/picom.svg
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/picom
${INSTALL_DATA} ${WRKSRC}/picom.sample.conf \
${PREFIX}/share/examples/picom
.include <bsd.port.mk>