d83b7a6a87
Changes: 3f0a9f4...b10267e
62 lines
1.9 KiB
Makefile
62 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= chamfer
|
|
DISTVERSION= s20200507
|
|
CATEGORIES= x11-wm
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Tiling X11 window manager with Vulkan compositor
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= spirv-opt:devel/spirv-tools \
|
|
vulkan-headers>0: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 \
|
|
libfreetype.so:print/freetype2 \
|
|
libharfbuzz.so:print/harfbuzz \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
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= b10267e
|
|
|
|
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>
|