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