blob: e05fa386daff1118a9e052e87b526825ef570938 (
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
|
# $FreeBSD$
PORTNAME= chamfer
DISTVERSION= s20191115
PORTREVISION= 1
CATEGORIES= x11-wm
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Tiling X11 window manager with Vulkan compositor
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers \
glslc:graphics/shaderc \
glm>0:math/glm
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
${PY_BOOST} \
libvulkan.so:graphics/vulkan-loader \
libxcb-cursor.so:x11/xcb-util-cursor \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-icccm.so:x11/xcb-util-wm
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR}
USES= compiler:c++17-lang meson localbase pkgconfig python:3.3+ xorg
USE_GITHUB= yes
USE_XORG= xcb
GH_ACCOUNT= jaelpark
GH_PROJECT= ${PORTNAME}wm
GH_TAGNAME= ed8b707
CXXFLAGS+= -Wno-narrowing
post-patch:
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},' \
${WRKSRC}/src/config.cpp ${WRKSRC}/src/main.cpp
# XXX import('python').find_installation().dependency()
# XXX https://github.com/mesonbuild/meson/issues/4788
@${REINPLACE_CMD} -e '/boost/!s/python3/python-${PYTHON_VER}/' \
-e '/boost/s/python3/python${PYTHON_SUFFIX}/' \
`if [ ${PYTHON_REL} -lt 3800 ]; then \
printf "%s %s" -e '/python.*embed/d'; \
fi` \
${WRKSRC}/meson.build
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/shaders
${INSTALL_DATA} ${INSTALL_WRKSRC}/*.spv \
${STAGEDIR}${DATADIR}/shaders
${MKDIR} ${STAGEDIR}${DATADIR}/config
${INSTALL_DATA} ${WRKSRC}/config/config.py \
${STAGEDIR}${DATADIR}/config/config.py.sample
${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions/
${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/xsessions/
.include <bsd.port.mk>
|