aboutsummaryrefslogtreecommitdiff
path: root/net/tsclient/Makefile
blob: 5a9bbe4261ade4738fa2212d50ee69e5af621d3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Koop Mast <einekoai@chello.nl>
# $FreeBSD$

PORTNAME=	tsclient
PORTVERSION=	0.150
PORTREVISION=	11
CATEGORIES=	net gnome
MASTER_SITES=	SF

MAINTAINER=	ports@thepentagon.org
COMMENT=	GNOME 2 frontend for rdesktop and vncviewer

BROKEN_FreeBSD_13=	ld: error: duplicate symbol: gConnect
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: gConnect

RUN_DEPENDS=	rdesktop:net/rdesktop

USES=		gettext gmake gnome libtool pathfix pkgconfig
USE_GNOME=	gtk20 intltool
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-gnome
CPPFLAGS+=	-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`
LIBS+=		-L${LOCALBASE}/lib `pkg-config --libs libgnomeui-2.0`

PORTDOCS=	COPYING NEWS README

OPTIONS_DEFINE=	TIGHTVNC XNEST DOCS
TIGHTVNC_DESC=	vncviewer support
XNEST_DESC=	X via Xnest support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MTIGHTVNC}
RUN_DEPENDS+=	vncviewer:net/tightvnc
.endif

.if ${PORT_OPTIONS:MXNEST}
RUN_DEPENDS+=	Xnest:x11-servers/xorg-nestserver
.endif

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e '/^man1dir *=/ s,datadir,prefix,g' \
		${WRKSRC}/Makefile.in

post-install:
	@${LN} -sf tsclient/tsclient.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/tsclient.png
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
. for doc in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>