| 1 |
# $XTermId: Makefile,v 1.133 2026/04/19 09:42:14 tom Exp $ |
| 2 |
|
| 3 |
# This is adapted from the FreeBSD port, installing as "xterm-dev" with |
| 4 |
# separate resource- and manpage files. |
| 5 |
# copy "xterm-${PORTVERSION}.tgz to the port's distfiles directory |
| 6 |
# and "make makesum". |
| 7 |
|
| 8 |
PORTNAME= xterm |
| 9 |
DISTVERSION= 410 |
| 10 |
CATEGORIES= x11 |
| 11 |
MASTER_SITES= https://invisible-island.net/archives/xterm/:src1 \ |
| 12 |
https://invisible-mirror.net/archives/xterm/:src1 |
| 13 |
PKGNAMESUFFIX= -dev |
| 14 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src1 |
| 15 |
|
| 16 |
MAINTAINER= [email protected] |
| 17 |
COMMENT= Terminal emulator for the X Window System |
| 18 |
WWW= https://invisible-island.net/xterm/ |
| 19 |
|
| 20 |
LICENSE= MIT |
| 21 |
LICENSE_FILE= ${WRKSRC}/COPYING |
| 22 |
|
| 23 |
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig |
| 24 |
|
| 25 |
USES= cpe localbase ncurses tar:tgz xorg |
| 26 |
CPE_VENDOR= invisible-island |
| 27 |
USE_XORG= ice x11 xext xft xmu xpm xt |
| 28 |
GNU_CONFIGURE= yes |
| 29 |
CONFIGURE_ARGS+= --enable-narrowproto \ |
| 30 |
--with-utempter |
| 31 |
|
| 32 |
CPPFLAGS+= -DPIXMAP_ROOTDIR=${LOCALBASE}/share/pixmaps |
| 33 |
|
| 34 |
CONFLICTS= x11iraf |
| 35 |
|
| 36 |
OPTIONS_DEFINE= 256COLOR DABBREV DECTERM GNOME LOGGING LUIT PCRE2 REGIS \ |
| 37 |
SCRNDUMP SIXEL TOOLBAR WCHAR XINERAMA |
| 38 |
OPTIONS_DEFAULT= 256COLOR LUIT SIXEL WCHAR XAW |
| 39 |
OPTIONS_SINGLE= ATHENA |
| 40 |
OPTIONS_SINGLE_ATHENA= NEXTAW XAW XAW3D XAW3DXFT |
| 41 |
|
| 42 |
256COLOR_DESC= Enable 256-color support |
| 43 |
DABBREV_DESC= Enable support for dabbrev-expand |
| 44 |
DECTERM_DESC= Enable DECterm Locator support |
| 45 |
LOGGING_DESC= Enable logging terminal I/O to a file |
| 46 |
LUIT_DESC= Use LUIT for locale conversion from/to UTF-8 |
| 47 |
NEXTAW_DESC= Link with neXT Athena library |
| 48 |
PCRE2_DESC= ${PCRE_DESC} version 2 |
| 49 |
REGIS_DESC= Enable ReGIS graphics support |
| 50 |
SCRNDUMP_DESC= Enable XHTML and SVG screen dumps |
| 51 |
SIXEL_DESC= Enable Sixel graphics support |
| 52 |
TOOLBAR_DESC= Enable pulldown menus with a toolbar |
| 53 |
WCHAR_DESC= Enable wide-character support |
| 54 |
XAW3DXFT_DESC= Link with Xaw 3d xft (extended fonts) library |
| 55 |
XAW3D_DESC= Link with Xaw 3d library |
| 56 |
XAW_DESC= Link with Xaw library |
| 57 |
|
| 58 |
256COLOR_CONFIGURE_ENABLE= 256-color |
| 59 |
DABBREV_CONFIGURE_ENABLE= dabbrev |
| 60 |
DECTERM_CONFIGURE_ENABLE= dec-locator |
| 61 |
GNOME_USES= desktop-file-utils |
| 62 |
LOGGING_CONFIGURE_ENABLE= logging |
| 63 |
LUIT_IMPLIES= WCHAR |
| 64 |
LUIT_BUILD_DEPENDS= luit:x11/luit |
| 65 |
LUIT_RUN_DEPENDS= luit:x11/luit |
| 66 |
LUIT_CONFIGURE_ENABLE= luit |
| 67 |
NEXTAW_LIB_DEPENDS= libneXtaw.so:x11-toolkits/neXtaw |
| 68 |
NEXTAW_CONFIGURE_WITH= neXtaw |
| 69 |
PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2 |
| 70 |
PCRE2_CONFIGURE_WITH= pcre2 |
| 71 |
REGIS_CONFIGURE_ENABLE= regis-graphics |
| 72 |
SCRNDUMP_CONFIGURE_ENABLE= screen-dumps |
| 73 |
SIXEL_CONFIGURE_ENABLE= sixel-graphics |
| 74 |
TOOLBAR_CONFIGURE_ENABLE= toolbar |
| 75 |
WCHAR_LIB_DEPENDS= libfreetype.so:print/freetype2 |
| 76 |
WCHAR_CONFIGURE_ENABLE= wide-chars |
| 77 |
WCHAR_VARS= PKGMESSAGE="${PKGDIR}/pkg-message.wchar" |
| 78 |
XAW3DXFT_LIB_DEPENDS= libXaw3dxft.so:x11-toolkits/libxaw3dxft |
| 79 |
XAW3DXFT_CONFIGURE_WITH= Xaw3dxft |
| 80 |
XAW3D_LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d |
| 81 |
XAW3D_CONFIGURE_WITH= Xaw3d |
| 82 |
XAW_USE= XORG=xaw |
| 83 |
XINERAMA_USE= XORG=xinerama,xorgproto |
| 84 |
XINERAMA_CONFIGURE_OFF= --without-xinerama |
| 85 |
|
| 86 |
PKG_CLASS= XTermDev |
| 87 |
|
| 88 |
.include <bsd.port.options.mk> |
| 89 |
|
| 90 |
CONFIGURE_ARGS+= --program-suffix=${PKGNAMESUFFIX} --with-app-class=${PKG_CLASS} --without-xterm-symlink |
| 91 |
|
| 92 |
.if ! ${PORT_OPTIONS:MXAW3D} && ! ${PORT_OPTIONS:MXAW3DXFT} && ! ${PORT_OPTIONS:MNEXTAW} |
| 93 |
USE_XORG+= xaw |
| 94 |
.endif |
| 95 |
|
| 96 |
#ICONVERSION= 1 |
| 97 |
# |
| 98 |
#post-extract: |
| 99 |
# @${CP} ${WRKDIR}/bsd-xterm-icons-${ICONVERSION}/*.png \ |
| 100 |
# ${WRKDIR}/bsd-xterm-icons-${ICONVERSION}/*.xpm \ |
| 101 |
# ${WRKSRC}/icons/ |
| 102 |
|
| 103 |
post-install: |
| 104 |
.for f in koi8rxterm${PKGNAMESUFFIX} resize${PKGNAMESUFFIX} uxterm${PKGNAMESUFFIX} xterm${PKGNAMESUFFIX} |
| 105 |
@${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/${f} |
| 106 |
.endfor |
| 107 |
${INSTALL_DATA} ${WRKSRC}/xterm.desktop \ |
| 108 |
${STAGEDIR}${PREFIX}/share/applications/xterm${PKGNAMESUFFIX}.desktop |
| 109 |
|
| 110 |
.include <bsd.port.mk> |