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