Import net/tsclient version 0.150_10
[dports.git] / net / tsclient / Makefile
1 # Created by: Koop Mast <einekoai@chello.nl>
2 # $FreeBSD: net/tsclient/Makefile 313460 2013-03-05 17:07:43Z miwi $
3
4 PORTNAME=       tsclient
5 PORTVERSION=    0.150
6 PORTREVISION=   10
7 CATEGORIES=     net gnome
8 MASTER_SITES=   SF
9
10 MAINTAINER=     ports@thepentagon.org
11 COMMENT=        A GNOME 2 frontend for rdesktop and vncviewer
12
13 RUN_DEPENDS=    rdesktop:${PORTSDIR}/net/rdesktop
14
15 USE_AUTOTOOLS=  libtool
16 USE_GNOME=      gtk20
17 USE_GMAKE=      yes
18 USE_GETTEXT=    yes
19 GNU_CONFIGURE=  yes
20 CONFIGURE_ENV=  LIBS="`pkg-config --libs libgnomeui-2.0`"
21 CPPFLAGS+=      -I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`
22 LDFLAGS+=       -L${LOCALBASE}/lib
23
24 MAN1=           tsclient.1
25 PORTDOCS=       COPYING NEWS README
26
27 OPTIONS_DEFINE= GNOME TIGHTVNC XNEST DOCS
28 OPTIONS_DEFAULT=        GNOME
29 TIGHTVNC_DESC=  vncviewer support
30 XNEST_DESC=     X via Xnest support
31
32 .include <bsd.port.options.mk>
33
34 .if ${PORT_OPTIONS:MGNOME}
35 USE_GNOME+=     gnomeprefix gnomehack gnomepanel libgnomeui 
36 .else
37 CONFIGURE_ARGS+=        --disable-gnome
38 .endif
39
40 .if ${PORT_OPTIONS:MTIGHTVNC}
41 RUN_DEPENDS+=   vncviewer:${PORTSDIR}/net/tightvnc
42 .endif
43
44 .if ${PORT_OPTIONS:MXNEST}
45 RUN_DEPENDS+=   Xnest:${X_NESTSERVER_PORT}
46 .endif
47
48 .include <bsd.port.pre.mk>
49
50 post-patch:
51         @${REINPLACE_CMD} -e '/^man1dir *=/ s,datadir,prefix,g' \
52                 ${WRKSRC}/Makefile.in
53
54 post-install:
55         @${LN} -sf ${PREFIX}/share/pixmaps/tsclient/tsclient.png \
56                 ${PREFIX}/share/pixmaps/tsclient.png
57 .if ${PORT_OPTIONS:MDOCS}
58         ${MKDIR} ${DOCSDIR}
59 . for doc in ${PORTDOCS}
60         ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
61 . endfor
62 .endif
63
64 .include <bsd.port.post.mk>