summaryrefslogtreecommitdiffstats
path: root/net/tsclient/Makefile
blob: 013a84a64e154701806184cdc2520cc3d992adf9 (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
58
59
60
61
62
63
64
65
66
67
# New ports collection makefile for:    tsclient
# Date created:             01 Mar 2003
# Whom:                 Koop Mast <einekoai@chello.nl>
#
# $FreeBSD$
#

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

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

RUN_DEPENDS=    rdesktop:${PORTSDIR}/net/rdesktop

OPTIONS=    GNOME       "Build with gnome support" on \
        TIGHTVNC    "vncviewer support" off \
        XNEST       "X via Xnest support (experimental)" off

USE_AUTOTOOLS=  libtool:15 automake:19 autoconf:262
USE_GNOME=  gtk20
USE_GMAKE=  yes
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        LIBS="`pkg-config --libs libgnomeui-2.0`"

MAN1=       tsclient.1
PORTDOCS=   COPYING NEWS README

.include <bsd.port.pre.mk>

.if defined(WITH_GNOME)
USE_GNOME+= gnomeprefix gnomehack gnomepanel libgnomeui 
.else
CONFIGURE_ARGS+=    --disable-gnome
.endif

.if defined(WITH_TIGHTVNC)
RUN_DEPENDS+=   vncviewer:${PORTSDIR}/net/tightvnc
.endif

.if defined(WITH_XNEST)
RUN_DEPENDS+=   Xnest:${X_NESTSERVER_PORT}
.endif

post-patch:
    @${REINPLACE_CMD} -e '/^man1dir *=/ s,datadir,prefix,g' \
        ${WRKSRC}/Makefile.am
    @${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|g' \
        ${WRKSRC}/aclocal.m4

post-install:
    @${LN} -sf ${PREFIX}/share/pixmaps/tsclient/tsclient.png \
        ${PREFIX}/share/pixmaps/tsclient.png
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>