| @@ -1,87 +1,83 @@ | | | @@ -1,87 +1,83 @@ |
1 | # $NetBSD: Makefile,v 1.117 2021/02/12 22:28:03 cjep Exp $ | | 1 | # $NetBSD: Makefile,v 1.118 2021/02/12 22:53:14 cjep Exp $ |
2 | | | 2 | |
3 | DISTNAME= screen-4.8.0 | | 3 | DISTNAME= screen-4.8.0 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= misc shells | | 5 | CATEGORIES= misc shells |
6 | MASTER_SITES= ${MASTER_SITE_GNU:=screen/} | | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=screen/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.gnu.org/software/screen/screen.html | | 9 | HOMEPAGE= https://www.gnu.org/software/screen/screen.html |
10 | COMMENT= Multi-screen window manager | | 10 | COMMENT= Multi-screen window manager |
11 | LICENSE= gnu-gpl-v3 | | 11 | LICENSE= gnu-gpl-v3 |
12 | | | 12 | |
13 | EXTRACT_USING= bsdtar | | 13 | EXTRACT_USING= bsdtar |
14 | | | 14 | |
15 | # In file included from list_display.c:36: | | 15 | # In file included from list_display.c:36: |
16 | # In file included from ./screen.h:150: | | 16 | # In file included from ./screen.h:150: |
17 | # ./display.h:154:19: error: use of undeclared identifier 'T_N' | | 17 | # ./display.h:154:19: error: use of undeclared identifier 'T_N' |
18 | #MAKE_JOBS_SAFE= no | | 18 | #MAKE_JOBS_SAFE= no |
19 | | | 19 | |
20 | .include "options.mk" | | 20 | .include "options.mk" |
21 | | | 21 | |
22 | NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed | | 22 | NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed |
23 | | | 23 | |
24 | PLIST_SUBST+= DISTNAME=${DISTNAME:Q} | | 24 | PLIST_SUBST+= DISTNAME=${DISTNAME:Q} |
25 | | | 25 | |
26 | GNU_CONFIGURE= yes | | 26 | GNU_CONFIGURE= yes |
27 | CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc | | 27 | CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc |
28 | CONFIGURE_ARGS+= --enable-telnet | | 28 | CONFIGURE_ARGS+= --enable-telnet |
29 | CONFIGURE_ARGS+= --enable-colors256 | | 29 | CONFIGURE_ARGS+= --enable-colors256 |
30 | | | 30 | |
31 | PKG_SHELL= bin/screen | | 31 | PKG_SHELL= bin/screen |
32 | | | 32 | |
33 | USE_TOOLS+= makeinfo | | 33 | USE_TOOLS+= makeinfo |
34 | INFO_FILES= YES | | 34 | INFO_FILES= YES |
35 | | | 35 | |
36 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
37 | | | 37 | |
38 | SUBST_CLASSES+= paths | | 38 | SUBST_CLASSES+= paths |
39 | SUBST_FILES.paths= etc/etcscreenrc doc/screen.1 | | 39 | SUBST_FILES.paths= etc/etcscreenrc doc/screen.1 |
40 | SUBST_VARS.paths= PKG_SYSCONFDIR | | 40 | SUBST_VARS.paths= PKG_SYSCONFDIR |
41 | SUBST_SED.paths+= -e 's,@EXAMPLES@,${PREFIX}/share/examples/screen,g' | | 41 | SUBST_SED.paths+= -e 's,@EXAMPLES@,${PREFIX}/share/examples/screen,g' |
42 | SUBST_STAGE.paths= pre-configure | | 42 | SUBST_STAGE.paths= pre-configure |
43 | | | 43 | |
44 | PLIST_VARS+= terminfo | | 44 | PLIST_VARS+= terminfo |
45 | | | 45 | |
46 | .include "../../mk/compiler.mk" | | 46 | .include "../../mk/compiler.mk" |
47 | | | 47 | |
48 | .if ${OPSYS} == "OpenBSD" | | | |
49 | CFLAGS+= -D_OpenBSD_ | | | |
50 | .endif | | | |
51 | | | | |
52 | .if ${OPSYS} == "SunOS" | | 48 | .if ${OPSYS} == "SunOS" |
53 | . if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) | | 49 | . if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) |
54 | CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ | | 50 | CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
55 | . else | | 51 | . else |
56 | CPPFLAGS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ | | 52 | CPPFLAGS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ |
57 | . endif | | 53 | . endif |
58 | . if ${CURSES_DEFAULT} == "curses" | | 54 | . if ${CURSES_DEFAULT} == "curses" |
59 | INSTALLATION_DIRS+= share/lib/terminfo | | 55 | INSTALLATION_DIRS+= share/lib/terminfo |
60 | PLIST.terminfo= yes | | 56 | PLIST.terminfo= yes |
61 | post-install: screen-terminfo | | 57 | post-install: screen-terminfo |
62 | . endif | | 58 | . endif |
63 | .endif | | 59 | .endif |
64 | | | 60 | |
65 | INSTALLATION_DIRS+= share/examples/screen | | 61 | INSTALLATION_DIRS+= share/examples/screen |
66 | | | 62 | |
67 | .if empty(UNPRIVILEGED:M[Yy][Ee][Ss]) | | 63 | .if empty(UNPRIVILEGED:M[Yy][Ee][Ss]) |
68 | SPECIAL_PERMS+= bin/${DISTNAME} ${SETUID_ROOT_PERMS} | | 64 | SPECIAL_PERMS+= bin/${DISTNAME} ${SETUID_ROOT_PERMS} |
69 | .endif | | 65 | .endif |
70 | | | 66 | |
71 | post-install: | | 67 | post-install: |
72 | ${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \ | | 68 | ${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \ |
73 | ${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc | | 69 | ${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc |
74 | ${INSTALL_DATA} ${WRKSRC}/etc/screenrc \ | | 70 | ${INSTALL_DATA} ${WRKSRC}/etc/screenrc \ |
75 | ${DESTDIR}${PREFIX}/share/examples/screen/screenrc | | 71 | ${DESTDIR}${PREFIX}/share/examples/screen/screenrc |
76 | .if !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) | | 72 | .if !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) |
77 | chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME} | | 73 | chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME} |
78 | .endif | | 74 | .endif |
79 | | | 75 | |
80 | .PHONY: screen-terminfo | | 76 | .PHONY: screen-terminfo |
81 | screen-terminfo: | | 77 | screen-terminfo: |
82 | cd ${WRKSRC}/terminfo && \ | | 78 | cd ${WRKSRC}/terminfo && \ |
83 | ${SETENV} TERMINFO=${DESTDIR}${PREFIX}/share/lib/terminfo \ | | 79 | ${SETENV} TERMINFO=${DESTDIR}${PREFIX}/share/lib/terminfo \ |
84 | /usr/bin/tic screeninfo.src | | 80 | /usr/bin/tic screeninfo.src |
85 | | | 81 | |
86 | .include "../../mk/termcap.buildlink3.mk" | | 82 | .include "../../mk/termcap.buildlink3.mk" |
87 | .include "../../mk/bsd.pkg.mk" | | 83 | .include "../../mk/bsd.pkg.mk" |