blob: e6d415f77b749e0b4a0e18bcd372a6342439d982 (
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
60
61
62
63
64
65
66
67
68
69
70
71
|
PORTNAME= awesome
PORTVERSION= 4.3
DISTVERSIONPREFIX= v
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= x11-wm
MAINTAINER= ports@FreeBSD.org
COMMENT= Highly configurable, next generation framework window manager
WWW= https://awesomewm.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LUA_REFMODLIBDIR}/lgi/corelgilua${LUA_VER_STR}.so:devel/lua-lgi@${LUA_FLAVOR}
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lgi/corelgilua${LUA_VER_STR}.so:devel/lua-lgi@${LUA_FLAVOR} \
bash:shells/bash
LIB_DEPENDS= libcairo.so:graphics/cairo \
libstartup-notification-1.so:x11/startup-notification \
libxdg-basedir.so:x11/libxdg-basedir \
libxcb-cursor.so:x11/xcb-util-cursor \
libxcb-util.so:x11/xcb-util \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-icccm.so:x11/xcb-util-wm \
libxcb-xrm.so:x11/xcb-util-xrm \
libxkbcommon.so:x11/libxkbcommon
CONFLICTS_INSTALL= awesome3
USES= cmake compiler:c11 gettext gnome iconv magick:build pkgconfig lua:-53 \
shebangfix xorg
USE_GNOME= glib20 pango gdkpixbuf2 librsvg2
USE_XORG= pixman x11 xau xcb xdmcp xext xft xinerama xrandr xrender \
xorgproto
USE_GITHUB= yes
GH_ACCOUNT= awesomewm
SHEBANG_FILES= utils/awesome-client
CMAKE_ARGS= -DSYSCONFDIR=${PREFIX}/etc \
-DAWESOME_MAN_PATH=${MANPREFIX}/man \
-DGENERATE_DOC=OFF \
-DLUA_INCLUDE_DIR=${LUA_INCDIR}
OPTIONS_DEFINE= DBUS DOCS MANPAGES
OPTIONS_DEFAULT=DBUS MANPAGES
OPTIONS_SUB= yes
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_CMAKE_OFF= -DWITH_DBUS:BOOL=OFF
MANPAGES_BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
MANPAGES_CMAKE_OFF= -DGENERATE_MANPAGES:BOOL=OFF
.include <bsd.port.pre.mk>
.if (exists(${LOCALBASE}/libdata/pkgconfig/cairo.pc) && \
!exists(${LOCALBASE}/libdata/pkgconfig/cairo-xcb.pc))
IGNORE= cannot find dependency: The cairo exists but not with XCB support. Please reinstall graphics/cairo with XCB support
.endif
post-patch:
# Ref https://github.com/awesomeWM/awesome/issues/1377
@${REINPLACE_CMD} -e "/COMMAND lua/ s,lua,${LUA_CMD}," \
${WRKSRC}/awesomeConfig.cmake
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267119
# Fix build with clang14
@${REINPLACE_CMD} -e "s/-export-dynamic/\"-Xlinker -E\"/" \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.post.mk>
|