1 1.1 mrg # $FreeBSD$ 2 1.1 mrg # This is adapted from the FreeBSD port, installing as "xterm-dev" with 3 1.1 mrg # separate resource- and manpage files. 4 1.1 mrg # copy "xterm-${PORTVERSION}.tgz to the port's distfiles directory 5 1.1 mrg # and "make makesum". 6 1.1 mrg 7 1.1 mrg PORTNAME= xterm 8 1.1 mrg PORTVERSION= 293 9 1.1 mrg CATEGORIES= x11 10 1.1 mrg MASTER_SITES= ftp://invisible-island.net/xterm/ \ 11 1.1 mrg CRITICAL 12 1.1 mrg PKGNAMESUFFIX= -dev 13 1.1 mrg EXTRACT_SUFX= .tgz 14 1.1 mrg 15 1.1 mrg MAINTAINER= dickey@invisible-island.net 16 1.1 mrg COMMENT= Terminal emulator for the X Window System (development) 17 1.1 mrg 18 1.1 mrg CONFLICTS= x11iraf-[0-9]* 19 1.1 mrg 20 1.1 mrg USE_XORG= xaw xft 21 1.1 mrg WANT_GNOME= desktopfileutils 22 1.1 mrg GNU_CONFIGURE= yes 23 1.1 mrg 24 1.1 mrg CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" 25 1.1 mrg CONFIGURE_ARGS+= --with-utempter --enable-narrowproto --enable-256-color 26 1.1 mrg 27 1.1 mrg CPPFLAGS+= -I${LOCALBASE}/include 28 1.1 mrg 29 1.1 mrg OPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE GNOME DABBREV TOOLBAR 30 1.1 mrg 31 1.1 mrg TOOLBAR_DESC= Enable support menu/toolbar 32 1.1 mrg DABBREV_DESC= Enable support for dabbrev-expand 33 1.1 mrg DECTERM_DESC= Enable DECterm Locator support 34 1.1 mrg LUIT_DESC= Use LUIT for locale convertion from/to UTF-8 35 1.1 mrg WCHAR_DESC= Enable wide-character support 36 1.1 mrg 37 1.1 mrg PKG_CLASS= XTermDev 38 1.1 mrg 39 1.1 mrg .include <bsd.port.options.mk> 40 1.1 mrg 41 1.1 mrg CONFIGURE_ARGS+= --program-suffix=${PKGNAMESUFFIX} --with-app-class=${PKG_CLASS} --without-xterm-symlink 42 1.1 mrg 43 1.1 mrg .if ${PORT_OPTIONS:MLUIT} 44 1.1 mrg CONFIGURE_ARGS+= --enable-luit 45 1.1 mrg BUILD_DEPENDS= luit:${PORTSDIR}/x11/luit 46 1.1 mrg .endif 47 1.1 mrg 48 1.1 mrg .if ${PORT_OPTIONS:MWCHAR} 49 1.1 mrg CONFIGURE_ARGS+= --enable-wide-chars 50 1.1 mrg .endif 51 1.1 mrg 52 1.1 mrg .if ${PORT_OPTIONS:MDECTERM} 53 1.1 mrg CONFIGURE_ARGS+= --enable-dec-locator 54 1.1 mrg .endif 55 1.1 mrg 56 1.1 mrg .if ${PORT_OPTIONS:MPCRE} 57 1.1 mrg CONFIGURE_ARGS+= --with-pcre 58 1.1 mrg LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre 59 1.1 mrg .endif 60 1.1 mrg 61 1.1 mrg .if ${PORT_OPTIONS:MDABBREV} 62 1.1 mrg CONFIGURE_ARGS+= --enable-dabbrev 63 1.1 mrg .endif 64 1.1 mrg 65 1.1 mrg .if ${PORT_OPTIONS:MTOOLBAR} 66 1.1 mrg CONFIGURE_ARGS+= --enable-toolbar 67 1.1 mrg .endif 68 1.1 mrg 69 1.1 mrg .if ${PORT_OPTIONS:MGNOME} 70 1.1 mrg USE_GNOME= desktopfileutils 71 1.1 mrg PLIST_SUB+= GNOME="" 72 1.1 mrg .else 73 1.1 mrg PLIST_SUB+= GNOME="@comment " 74 1.1 mrg .endif 75 1.1 mrg 76 1.1 mrg MAN1= resize${PKGNAMESUFFIX}.1 koi8rxterm${PKGNAMESUFFIX}.1 uxterm${PKGNAMESUFFIX}.1 xterm${PKGNAMESUFFIX}.1 77 1.1 mrg 78 1.1 mrg .include <bsd.port.pre.mk> 79 1.1 mrg 80 1.1 mrg .if ${OSVERSION} < 900004 81 1.1 mrg LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter 82 1.1 mrg .endif 83 1.1 mrg 84 1.1 mrg post-install: 85 1.1 mrg .for f in koi8rxterm resize uxterm xterm 86 1.1 mrg @${CHMOD} ${BINMODE} ${PREFIX}/bin/${f} 87 1.1 mrg .endfor 88 1.1 mrg .if ${PORT_OPTIONS:MGNOME} 89 1.1 mrg @${MKDIR} ${PREFIX}/share/applications/ 90 1.1 mrg @${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${PREFIX}/share/applications/ 91 1.1 mrg @-update-desktop-database 92 1.1 mrg .endif 93 1.1 mrg 94 1.1 mrg .if ${PORT_OPTIONS:MWCHAR} 95 1.1 mrg @${CAT} ${PKGMESSAGE} 96 1.1 mrg .endif 97 1.1 mrg 98 1.1 mrg .include <bsd.port.post.mk> 99