Merge branch 'staged'
[dports.git] / net / tsclient / Makefile
1 PORTNAME=       tsclient
2 PORTVERSION=    0.150
3 PORTREVISION=   12
4 CATEGORIES=     net gnome
5 MASTER_SITES=   SF
6
7 MAINTAINER=     ports@thepentagon.org
8 COMMENT=        GNOME 2 frontend for rdesktop and vncviewer
9 WWW=            https://sourceforge.net/projects/tsclient/
10
11 RUN_DEPENDS=    rdesktop:net/rdesktop
12
13 USES=           gettext gmake gnome libtool pathfix pkgconfig
14 USE_GNOME=      gtk20 intltool
15 GNU_CONFIGURE=  yes
16 CONFIGURE_ARGS= --disable-gnome
17 CPPFLAGS+=      -I${LOCALBASE}/include
18 LIBS+=          -L${LOCALBASE}/lib
19
20 PORTDOCS=       COPYING NEWS README
21
22 OPTIONS_DEFINE= TIGHTVNC XNEST DOCS
23 TIGHTVNC_DESC=  vncviewer support
24 XNEST_DESC=     X via Xnest support
25
26 .include <bsd.port.options.mk>
27
28 .if ${PORT_OPTIONS:MTIGHTVNC}
29 RUN_DEPENDS+=   vncviewer:net/tightvnc
30 .endif
31
32 .if ${PORT_OPTIONS:MXNEST}
33 RUN_DEPENDS+=   Xnest:x11-servers/xorg-server@xnest
34 .endif
35
36 .include <bsd.port.pre.mk>
37
38 post-patch:
39         @${REINPLACE_CMD} -e '/^man1dir *=/ s,datadir,prefix,g' \
40                 ${WRKSRC}/Makefile.in
41
42 post-install:
43         @${LN} -sf tsclient/tsclient.png \
44                 ${STAGEDIR}${PREFIX}/share/pixmaps/tsclient.png
45 .if ${PORT_OPTIONS:MDOCS}
46         ${MKDIR} ${STAGEDIR}${DOCSDIR}
47 . for doc in ${PORTDOCS}
48         ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
49 . endfor
50 .endif
51
52 .include <bsd.port.post.mk>