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