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