| @@ -1,46 +1,50 @@ | | | @@ -1,46 +1,50 @@ |
1 | # $NetBSD: Makefile,v 1.61 2022/07/23 19:05:47 leot Exp $ | | 1 | # $NetBSD: Makefile,v 1.62 2023/06/28 21:00:19 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= tmux-3.3a | | 3 | DISTNAME= tmux-3.3a |
4 | CATEGORIES= misc | | 4 | CATEGORIES= misc |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=tmux/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=tmux/} |
6 | GITHUB_RELEASE= ${PKGVERSION_NOREV} | | 6 | GITHUB_RELEASE= ${PKGVERSION_NOREV} |
7 | | | 7 | |
8 | MAINTAINER= leot@NetBSD.org | | 8 | MAINTAINER= leot@NetBSD.org |
9 | HOMEPAGE= https://tmux.github.io/ | | 9 | HOMEPAGE= https://tmux.github.io/ |
10 | COMMENT= BSD-licensed terminal multiplexer (GNU Screen alternative) | | 10 | COMMENT= BSD-licensed terminal multiplexer (GNU Screen alternative) |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | GNU_CONFIGURE= yes | | 13 | GNU_CONFIGURE= yes |
14 | USE_TERMINFO= yes | | 14 | USE_TERMINFO= yes |
15 | | | 15 | |
16 | USE_TOOLS+= pkg-config | | 16 | USE_TOOLS+= pkg-config |
17 | USE_FEATURES+= strnlen | | 17 | USE_FEATURES+= strnlen |
18 | | | 18 | |
19 | SUBST_CLASSES+= sysconfdir | | 19 | SUBST_CLASSES+= sysconfdir |
20 | SUBST_STAGE.sysconfdir= pre-configure | | 20 | SUBST_STAGE.sysconfdir= pre-configure |
21 | SUBST_MESSAGE.sysconfdir= Do not force sysconfdir to /etc | | 21 | SUBST_MESSAGE.sysconfdir= Do not force sysconfdir to /etc |
22 | SUBST_FILES.sysconfdir= configure configure.ac | | 22 | SUBST_FILES.sysconfdir= configure configure.ac |
23 | SUBST_SED.sysconfdir= -e '/Default tmux\.conf goes in \/etc/d' | | 23 | SUBST_SED.sysconfdir= -e '/Default tmux\.conf goes in \/etc/d' |
24 | SUBST_SED.sysconfdir+= -e '/sysconfdir=\/etc/d' | | 24 | SUBST_SED.sysconfdir+= -e '/sysconfdir=\/etc/d' |
25 | | | 25 | |
| | | 26 | # tmux expects setupterm in libcurses, but it is in libterminfo |
| | | 27 | CONFIGURE_ARGS+= ac_cv_lib_curses_setupterm=yes |
| | | 28 | LDFLAGS.NetBSD+= -lterminfo |
| | | 29 | |
26 | .include "../../mk/bsd.prefs.mk" | | 30 | .include "../../mk/bsd.prefs.mk" |
27 | .include "../../mk/compiler.mk" | | 31 | .include "../../mk/compiler.mk" |
28 | .if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \ | | 32 | .if ${MACHINE_PLATFORM:MSunOS-5.1[0-9]-*} && \ |
29 | !empty(CC_VERSION:Mgcc-4.[6-9].*) | | 33 | ${CC_VERSION:Mgcc-4.[6-9].*} |
30 | BUILDLINK_TRANSFORM+= opt:-D_XPG4_2:-D_XPG6 | | 34 | BUILDLINK_TRANSFORM+= opt:-D_XPG4_2:-D_XPG6 |
31 | .endif | | 35 | .endif |
32 | | | 36 | |
33 | # https://trac.macports.org/changeset/127986 | | 37 | # https://trac.macports.org/changeset/127986 |
34 | .if !empty(MACHINE_PLATFORM:MDarwin-1[0-9].*) | | 38 | .if ${MACHINE_PLATFORM:MDarwin-1[0-9].*} |
35 | CPPFLAGS+= -D__DARWIN_VERS_1050=0 | | 39 | CPPFLAGS+= -D__DARWIN_VERS_1050=0 |
36 | .endif | | 40 | .endif |
37 | | | 41 | |
38 | .if ${OPSYS} == "Darwin" | | 42 | .if ${OPSYS} == "Darwin" |
39 | CONFIGURE_ARGS+= --enable-utf8proc | | 43 | CONFIGURE_ARGS+= --enable-utf8proc |
40 | .include "../../converters/utf8proc/buildlink3.mk" | | 44 | .include "../../converters/utf8proc/buildlink3.mk" |
41 | .endif | | 45 | .endif |
42 | | | 46 | |
43 | .include "../../devel/libevent/buildlink3.mk" | | 47 | .include "../../devel/libevent/buildlink3.mk" |
44 | BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.10 | | 48 | BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.10 |
45 | .include "../../mk/curses.buildlink3.mk" | | 49 | .include "../../mk/curses.buildlink3.mk" |
46 | .include "../../mk/bsd.pkg.mk" | | 50 | .include "../../mk/bsd.pkg.mk" |