1 # $FreeBSD$ 2 # This is adapted from the FreeBSD port, installing as "xterm-dev" with 3 # separate resource- and manpage files. 4 # copy "xterm-${PORTVERSION}.tgz to the port's distfiles directory 5 # and "make makesum". 6 7 PORTNAME= xterm 8 PORTVERSION= 318 9 CATEGORIES= x11 10 MASTER_SITES= ftp://invisible-island.net/xterm/ \ 11 CRITICAL 12 PKGNAMESUFFIX= -dev 13 EXTRACT_SUFX= .tgz 14 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src1 \ 15 bsd-xterm-icons-${ICONVERSION}${EXTRACT_SUFX}:src2 16 17 MAINTAINER= ehaupt@FreeBSD.org 18 COMMENT= Terminal emulator for the X Window System 19 20 CONFLICTS= x11iraf-[0-9]* 21 22 USE_XORG= xft 23 GNU_CONFIGURE= yes 24 25 CONFIGURE_ARGS+= --with-utempter --enable-narrowproto 26 27 CPPFLAGS+= -I${LOCALBASE}/include 28 LIBS+= -L${LOCALBASE}/lib 29 30 ICONVERSION= 1 31 32 OPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE DABBREV 256COLOR SIXEL GNOME LOGGING TOOLBAR 33 OPTIONS_RADIO= 3D 34 OPTIONS_RADIO_3D= XAW3D XAW3DXFT NEXTAW 35 36 TOOLBAR_DESC= Enable support menu/toolbar 37 DABBREV_DESC= Enable support for dabbrev-expand 38 DECTERM_DESC= Enable DECterm Locator support 39 LUIT_DESC= Use LUIT for locale convertion from/to UTF-8 40 SIXEL_DESC= Enable Sixel graphics support 41 WCHAR_DESC= Enable wide-character support 42 256COLOR_DESC= Enable 256-color support 43 LOGGING_DESC= Enable logging terminal I/O to a file 44 XAW3D_DESC= Link with Xaw 3d library 45 XAW3DXFT_DESC= Link with Xaw 3d xft (extended fonts) library 46 NEXTAW_DESC= Link with neXT Athena library 47 48 OPTIONS_DEFAULT=WCHAR LUIT 256COLOR 49 50 256COLOR_CONFIGURE_ENABLE= 256-color 51 LUIT_BUILD_DEPENDS= luit:${PORTSDIR}/x11/luit 52 LUIT_CONFIGURE_ENABLE= luit 53 WCHAR_CONFIGURE_ENABLE= wide-chars 54 DECTERM_CONFIGURE_ENABLE= dec-locator 55 PCRE_CONFIGURE_WITH= pcre 56 PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre 57 DABBREV_CONFIGURE_ENABLE= dabbrev 58 SIXEL_CONFIGURE_ENABLE= sixel-graphics 59 GNOME_USES= desktop-file-utils 60 LOGGING_CONFIGURE_ENABLE= logging 61 TOOLBAR_CONFIGURE_ENABLE= toolbar 62 XAW3D_CONFIGURE_WITH= Xaw3d 63 XAW3D_LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d 64 XAW3DXFT_CONFIGURE_WITH= Xaw3dxft 65 XAW3DXFT_LIB_DEPENDS= libXaw3dxft.so:${PORTSDIR}/x11-toolkits/libxaw3dxft 66 NEXTAW_CONFIGURE_WITH= neXtaw 67 NEXTAW_LIB_DEPENDS= libneXtaw.so:${PORTSDIR}/x11-toolkits/neXtaw 68 69 PKG_CLASS= XTermDev 70 71 .include <bsd.port.options.mk> 72 73 CONFIGURE_ARGS+= --program-suffix=${PKGNAMESUFFIX} --with-app-class=${PKG_CLASS} --without-xterm-symlink 74 MAN1= resize${PKGNAMESUFFIX}.1 koi8rxterm${PKGNAMESUFFIX}.1 uxterm${PKGNAMESUFFIX}.1 xterm${PKGNAMESUFFIX}.1 75 76 .if ! ${PORT_OPTIONS:MXAW3D} && ! ${PORT_OPTIONS:MXAW3DXFT} && ! ${PORT_OPTIONS:MNEXTAW} 77 USE_XORG+= xaw 78 .endif 79 80 .if ${OSVERSION} < 900004 81 LIB_DEPENDS+= libutempter.so:${PORTSDIR}/sysutils/libutempter 82 .endif 83 84 post-extract: 85 @${CP} ${WRKDIR}/bsd-xterm-icons-1/*.png \ 86 ${WRKDIR}/bsd-xterm-icons-1/*.xpm \ 87 ${WRKSRC}/icons/ 88 89 post-install: 90 .for f in koi8rxterm${PKGNAMESUFFIX} resize${PKGNAMESUFFIX} uxterm${PKGNAMESUFFIX} xterm${PKGNAMESUFFIX} 91 @${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/${f} 92 .endfor 93 @${INSTALL_DATA} ${WRKSRC}/xterm.desktop \ 94 ${STAGEDIR}${PREFIX}/share/applications/xterm${PKGNAMESUFFIX}.desktop 95 96 .if ${PORT_OPTIONS:MWCHAR} 97 @${CAT} ${PKGMESSAGE} 98 .endif 99 100 .include <bsd.port.mk> 101