| @@ -1,84 +1,86 @@ | | | @@ -1,84 +1,86 @@ |
1 | # $NetBSD: Makefile,v 1.90 2023/12/28 18:20:02 gutteridge Exp $ | | 1 | # $NetBSD: Makefile,v 1.91 2023/12/30 01:12:40 gutteridge Exp $ |
2 | | | 2 | |
3 | DISTNAME= awesome-4.3 | | 3 | DISTNAME= awesome-4.3 |
4 | PKGREVISION= 14 | | 4 | PKGREVISION= 14 |
5 | CATEGORIES= wm lua | | 5 | CATEGORIES= wm lua |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=awesomeWM/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=awesomeWM/} |
8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | | 8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} |
9 | | | 9 | |
10 | MAINTAINER= pallegra@gmail.com | | 10 | MAINTAINER= pallegra@gmail.com |
11 | HOMEPAGE= https://awesomewm.org/ | | 11 | HOMEPAGE= https://awesomewm.org/ |
12 | COMMENT= Window manager based on dwm, with Lua integration | | 12 | COMMENT= Window manager based on dwm, with Lua integration |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | CONFLICTS+= awesome<3.0 | | 15 | CONFLICTS+= awesome<3.0 |
16 | | | 16 | |
17 | USE_TOOLS+= bash pkg-config | | 17 | USE_TOOLS+= bash pkg-config |
18 | USE_CMAKE= yes | | 18 | USE_CMAKE= yes |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | REPLACE_BASH+= utils/awesome-client | | 20 | REPLACE_BASH+= utils/awesome-client |
21 | | | 21 | |
22 | .include "../../wm/awesome/options.mk" | | 22 | .include "../../wm/awesome/options.mk" |
23 | | | 23 | |
24 | PKG_SYSCONFSUBDIR= xdg/awesome | | 24 | PKG_SYSCONFSUBDIR= xdg/awesome |
25 | | | 25 | |
26 | CONFIGURE_DIRS= build | | 26 | CONFIGURE_DIRS= build |
27 | CMAKE_ARG_PATH= ${WRKSRC} | | 27 | CMAKE_ARG_PATH= ${WRKSRC} |
28 | | | 28 | |
29 | # lua-gi | | 29 | # lua-gi |
30 | LUA_VERSIONS_ACCEPTED= 53 52 51 | | 30 | LUA_VERSIONS_ACCEPTED= 53 52 51 |
31 | | | 31 | |
32 | .include "../../lang/lua/luaversion.mk" | | 32 | .include "../../lang/lua/luaversion.mk" |
33 | | | 33 | |
34 | CMAKE_ARGS+= -DCOMPRESS_MANPAGES=${MANZ:Q} | | 34 | CMAKE_ARGS+= -DCOMPRESS_MANPAGES=${MANZ:Q} |
35 | CMAKE_ARGS+= -DAWESOME_MAN_PATH=${PREFIX}/${PKGMANDIR} | | 35 | CMAKE_ARGS+= -DAWESOME_MAN_PATH=${PREFIX}/${PKGMANDIR} |
36 | CMAKE_ARGS+= -DOVERRIDE_VERSION=${PKGVERSION_NOREV} | | 36 | CMAKE_ARGS+= -DOVERRIDE_VERSION=${PKGVERSION_NOREV} |
37 | CMAKE_ARGS+= -DLUA_INCLUDE_DIR=${PREFIX}/${LUA_INCDIR} | | 37 | CMAKE_ARGS+= -DLUA_INCLUDE_DIR=${PREFIX}/${LUA_INCDIR} |
38 | CMAKE_ARGS+= -DXDG_CONFIG_DIR=${PKG_SYSCONFBASEDIR}/xdg | | 38 | CMAKE_ARGS+= -DXDG_CONFIG_DIR=${PKG_SYSCONFBASEDIR}/xdg |
39 | CMAKE_ARGS+= -DGENERATE_DOC=OFF | | 39 | CMAKE_ARGS+= -DGENERATE_DOC=OFF |
40 | | | 40 | |
41 | EGDIR= ${PREFIX}/share/examples/awesome | | 41 | EGDIR= ${PREFIX}/share/examples/awesome |
42 | CONF_FILES= ${EGDIR}/rc.lua ${PKG_SYSCONFDIR}/rc.lua | | 42 | CONF_FILES= ${EGDIR}/rc.lua ${PKG_SYSCONFDIR}/rc.lua |
43 | | | 43 | |
44 | .include "../../lang/ruby/rubyversion.mk" | | 44 | .include "../../lang/ruby/rubyversion.mk" |
45 | TOOL_DEPENDS+= ${RUBY_PKGPREFIX}-asciidoctor-[0-9]*:../../textproc/ruby-asciidoctor | | 45 | TOOL_DEPENDS+= ${RUBY_PKGPREFIX}-asciidoctor-[0-9]*:../../textproc/ruby-asciidoctor |
46 | DEPENDS+= ${LUA_PKGPREFIX}-gi>=0.7.0:../../devel/lua-gi | | 46 | DEPENDS+= ${LUA_PKGPREFIX}-gi>=0.7.0:../../devel/lua-gi |
47 | | | 47 | |
48 | # Switched to ImageMagick6 to work around image conversion failures with | | 48 | # Switched to ImageMagick6 to work around image conversion failures with |
49 | # the convert tool provided by the most recent ImageMagick 7 releases. | | 49 | # the convert tool provided by the most recent ImageMagick 7 releases. |
| | | 50 | # NB the latest ImageMagick 6 releases (not yet in pkgsrc) also exhibit this |
| | | 51 | # changed behaviour. Needs further investigation. |
50 | TOOL_DEPENDS+= ImageMagick6-[0-9]*:../../graphics/ImageMagick6 | | 52 | TOOL_DEPENDS+= ImageMagick6-[0-9]*:../../graphics/ImageMagick6 |
51 | | | 53 | |
52 | SUBST_CLASSES+= convert | | 54 | SUBST_CLASSES+= convert |
53 | SUBST_STAGE.convert= pre-configure | | 55 | SUBST_STAGE.convert= pre-configure |
54 | SUBST_MESSAGE.convert= Fixing ImageMagick convert executable name. | | 56 | SUBST_MESSAGE.convert= Fixing ImageMagick convert executable name. |
55 | SUBST_FILES.convert+= awesomeConfig.cmake | | 57 | SUBST_FILES.convert+= awesomeConfig.cmake |
56 | SUBST_SED.convert= -e 's|CONVERT_EXECUTABLE convert|CONVERT_EXECUTABLE convert6|' | | 58 | SUBST_SED.convert= -e 's|CONVERT_EXECUTABLE convert|CONVERT_EXECUTABLE convert6|' |
57 | | | 59 | |
58 | SUBST_CLASSES+= lua | | 60 | SUBST_CLASSES+= lua |
59 | SUBST_STAGE.lua= pre-configure | | 61 | SUBST_STAGE.lua= pre-configure |
60 | SUBST_MESSAGE.lua= Fixing lua executable name. | | 62 | SUBST_MESSAGE.lua= Fixing lua executable name. |
61 | SUBST_FILES.lua+= awesomeConfig.cmake | | 63 | SUBST_FILES.lua+= awesomeConfig.cmake |
62 | SUBST_SED.lua= -e 's|COMMAND lua|COMMAND ${LUA_INTERPRETER}|g' | | 64 | SUBST_SED.lua= -e 's|COMMAND lua|COMMAND ${LUA_INTERPRETER}|g' |
63 | | | 65 | |
64 | pre-configure: | | 66 | pre-configure: |
65 | ${RUN} mkdir -p ${WRKSRC}/build | | 67 | ${RUN} mkdir -p ${WRKSRC}/build |
66 | | | 68 | |
67 | .include "../../devel/glib2/buildlink3.mk" | | 69 | .include "../../devel/glib2/buildlink3.mk" |
68 | .include "../../devel/pango/buildlink3.mk" | | 70 | .include "../../devel/pango/buildlink3.mk" |
69 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.18 | | 71 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.18 |
70 | .include "../../graphics/cairo/buildlink3.mk" | | 72 | .include "../../graphics/cairo/buildlink3.mk" |
71 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" | | 73 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" |
72 | .include "../../lang/lua/buildlink3.mk" | | 74 | .include "../../lang/lua/buildlink3.mk" |
73 | .include "../../x11/libX11/buildlink3.mk" | | 75 | .include "../../x11/libX11/buildlink3.mk" |
74 | .include "../../x11/libxcb/buildlink3.mk" | | 76 | .include "../../x11/libxcb/buildlink3.mk" |
75 | .include "../../x11/libxdg-basedir/buildlink3.mk" | | 77 | .include "../../x11/libxdg-basedir/buildlink3.mk" |
76 | .include "../../x11/libxkbcommon/buildlink3.mk" | | 78 | .include "../../x11/libxkbcommon/buildlink3.mk" |
77 | .include "../../x11/xcb-util/buildlink3.mk" | | 79 | .include "../../x11/xcb-util/buildlink3.mk" |
78 | .include "../../x11/xcb-util-cursor/buildlink3.mk" | | 80 | .include "../../x11/xcb-util-cursor/buildlink3.mk" |
79 | .include "../../x11/xcb-util-keysyms/buildlink3.mk" | | 81 | .include "../../x11/xcb-util-keysyms/buildlink3.mk" |
80 | .include "../../x11/xcb-util-wm/buildlink3.mk" | | 82 | .include "../../x11/xcb-util-wm/buildlink3.mk" |
81 | .include "../../x11/xcb-util-xrm/buildlink3.mk" | | 83 | .include "../../x11/xcb-util-xrm/buildlink3.mk" |
82 | .include "../../x11/xorgproto/buildlink3.mk" | | 84 | .include "../../x11/xorgproto/buildlink3.mk" |
83 | .include "../../x11/startup-notification/buildlink3.mk" | | 85 | .include "../../x11/startup-notification/buildlink3.mk" |
84 | .include "../../mk/bsd.pkg.mk" | | 86 | .include "../../mk/bsd.pkg.mk" |