| @@ -1,43 +1,44 @@ | | | @@ -1,43 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.39 2019/11/04 21:50:15 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.40 2023/03/29 08:51:30 rhialto Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ctwm-4.0.3 | | 4 | DISTNAME= ctwm-4.1.0 |
5 | CATEGORIES= x11 wm | | 5 | CATEGORIES= x11 wm |
6 | MASTER_SITES= http://ctwm.org/dist/ | | 6 | MASTER_SITES= http://ctwm.org/dist/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= rhialto@NetBSD.org | | 9 | MAINTAINER= rhialto@NetBSD.org |
10 | HOMEPAGE= http://ctwm.org/ | | 10 | HOMEPAGE= http://ctwm.org/ |
11 | COMMENT= Window manager with support for multiple virtual screens and EWMH | | 11 | COMMENT= Window manager with support for multiple virtual screens and EWMH |
12 | LICENSE= mit | | 12 | LICENSE= mit |
13 | | | 13 | |
14 | USE_CMAKE= YES | | 14 | USE_CMAKE= YES |
15 | | | 15 | |
16 | .include "../../mk/bsd.prefs.mk" | | 16 | .include "../../mk/bsd.prefs.mk" |
17 | | | 17 | |
18 | # We need an m4 that understands the -s option. | | 18 | # We need an m4 that understands the -s option. |
19 | .if !empty(TOOLS_PLATFORM.m4) | | 19 | .if !empty(TOOLS_PLATFORM.m4) |
20 | . if !empty(:!${ECHO} yes | ${TOOLS_PLATFORM.m4} -s 2>/dev/null||${ECHO}!) | | 20 | . if !empty(:!${ECHO} yes | ${TOOLS_PLATFORM.m4} -s 2>/dev/null||${ECHO}!) |
21 | TOOLS_PLATFORM.gm4?= ${TOOLS_PLATFORM.m4} | | 21 | TOOLS_PLATFORM.gm4?= ${TOOLS_PLATFORM.m4} |
22 | . endif | | 22 | . endif |
23 | .endif | | 23 | .endif |
24 | USE_TOOLS+= gm4:run | | 24 | USE_TOOLS+= gm4:run |
25 | AUTO_MKDIRS= yes | | 25 | AUTO_MKDIRS= yes |
26 | | | 26 | |
27 | CFLAGS.SunOS+= -D__EXTENSIONS__ | | 27 | CFLAGS.SunOS+= -D__EXTENSIONS__ |
28 | | | 28 | |
29 | # If M4_CMD is not set, it is autodetected as ${WRKDIR}/.tools/bin/m4 | | 29 | # If M4_CMD is not set, it is autodetected as ${WRKDIR}/.tools/bin/m4 |
30 | CMAKE_ARGS+= -DM4_CMD=${TOOLS_PATH.gm4} | | 30 | CMAKE_ARGS+= -DM4_CMD=${TOOLS_PATH.gm4} |
| | | 31 | CMAKE_ARGS+= -DMANDIR=${PREFIX}/${PKGMANDIR} |
31 | CMAKE_ARG_PATH= ${WRKSRC} | | 32 | CMAKE_ARG_PATH= ${WRKSRC} |
32 | | | 33 | |
33 | CONFIGURE_DIRS= build | | 34 | CONFIGURE_DIRS= build |
34 | BUILD_DIRS= build | | 35 | BUILD_DIRS= build |
35 | | | 36 | |
36 | pre-configure: | | 37 | pre-configure: |
37 | ${MKDIR} ${WRKSRC}/build | | 38 | ${MKDIR} ${WRKSRC}/build |
38 | | | 39 | |
39 | pre-install: | | 40 | pre-install: |
40 | .for f in system.ctwmrc | | 41 | .for f in system.ctwmrc |
41 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/ctwm/ | | 42 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/ctwm/ |
42 | .endfor | | 43 | .endfor |
43 | .for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc | | 44 | .for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc |