Tweak net/tsclient version 0.150_10
[dports.git] / net / tsclient / Makefile
1 # Created by: Koop Mast <einekoai@chello.nl>
2 # $FreeBSD: net/tsclient/Makefile 316948 2013-04-30 16:26:32Z jgh $
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=        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 USES=           gettext
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 USES+=          pathfix
36 USE_GNOME+=     gnomeprefix gnomepanel libgnomeui
37 .else
38 CONFIGURE_ARGS+=        --disable-gnome
39 .endif
40
41 .if ${PORT_OPTIONS:MTIGHTVNC}
42 RUN_DEPENDS+=   vncviewer:${PORTSDIR}/net/tightvnc
43 .endif
44
45 .if ${PORT_OPTIONS:MXNEST}
46 RUN_DEPENDS+=   Xnest:${X_NESTSERVER_PORT}
47 .endif
48
49 .include <bsd.port.pre.mk>
50
51 post-patch:
52         @${REINPLACE_CMD} -e '/^man1dir *=/ s,datadir,prefix,g' \
53                 ${WRKSRC}/Makefile.in
54
55 post-install:
56         @${LN} -sf ${PREFIX}/share/pixmaps/tsclient/tsclient.png \
57                 ${PREFIX}/share/pixmaps/tsclient.png
58 .if ${PORT_OPTIONS:MDOCS}
59         ${MKDIR} ${DOCSDIR}
60 . for doc in ${PORTDOCS}
61         ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
62 . endfor
63 .endif
64
65 .include <bsd.port.post.mk>