2021-02-19 17:16:27 +00:00

47 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2021/02/19 17:16:28 ajacoutot Exp $
COMMENT = lightweight compositor for X11
GH_ACCOUNT = yshui
GH_PROJECT = picom
GH_TAGNAME = v8.2
REVISION = 0
CATEGORIES = x11
# MPL 2.0
PERMIT_PACKAGE = Yes
WANTLIB += 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
CONFIGURE_ENV += CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
pre-patch:
cd ${WRKSRC}/media && mv compton.svg picom.svg
cd ${WRKSRC}/media/icons/48x48 && mv compton.png picom.png
.include <bsd.port.mk>