1# $NetBSD: Makefile,v 1.1.1.8 2025/03/09 23:17:11 mrg Exp $ 2 3DISTNAME= xterm-397 4CATEGORIES= x11 5MASTER_SITES= https://invisible-island.net/archives/xterm/ 6EXTRACT_SUFX= .tgz 7 8MAINTAINER= pkgsrc-users@NetBSD.org 9HOMEPAGE= https://invisible-island.net/xterm/xterm.html 10COMMENT= Latest terminal emulator for the X Window System 11LICENSE= x11 12 13GNU_CONFIGURE= yes 14USE_TOOLS+= tbl pkg-config 15 16WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 17 18CONFIGURE_ARGS+= --enable-88-color 19CONFIGURE_ARGS+= --enable-256-color 20CONFIGURE_ARGS+= --enable-paste64 21CONFIGURE_ARGS+= --enable-readline-mouse 22 23CONFIGURE_ARGS.standard= # empty 24CONFIGURE_ARGS.3d= --with-Xaw3d 25CONFIGURE_ARGS.xpm= --with-Xaw3d 26CONFIGURE_ARGS.neXtaw= --with-neXtaw 27CONFIGURE_ARGS+= ${${CONFIGURE_ARGS.${XAW_TYPE}}:L} 28 29INSTALLATION_DIRS= share/applications 30 31.include "../../mk/bsd.prefs.mk" 32 33.if ${X11_TYPE} == "modular" 34CONFIGURE_ARGS+= --disable-imake 35CONFIGURE_ARGS+= --enable-narrowproto 36.endif 37 38.if exists(/usr/include/wchar.h) 39CONFIGURE_ARGS+= --enable-wide-chars 40.endif 41 42.include "../../x11/libX11/buildlink3.mk" 43.include "../../x11/libXt/buildlink3.mk" 44### 45### For detection of XKB bell extension. 46### 47BUILDLINK_DEPMETHOD.libxkbfile?= build 48.include "../../x11/libxkbfile/buildlink3.mk" 49 50post-install: 51 ${INSTALL_DATA} ${WRKSRC}/xterm.desktop \ 52 ${DESTDIR}${PREFIX}/share/applications && \ 53 ${INSTALL_DATA} ${WRKSRC}/uxterm.desktop \ 54 ${DESTDIR}${PREFIX}/share/applications 55 cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && tbl xterm.1 \ 56 > xterm.1.tbl && mv xterm.1.tbl xterm.1 57 58.include "options.mk" 59 60.include "../../mk/curses.buildlink3.mk" 61.include "../../mk/termcap.buildlink3.mk" 62.include "../../sysutils/desktop-file-utils/desktopdb.mk" 63.include "../../mk/xaw.buildlink3.mk" 64.include "../../mk/bsd.pkg.mk" 65