summaryrefslogblamecommitdiffstats
path: root/net/vinagre3/Makefile
blob: a9a01db7e825b7259c2c4edceb10a9fe34a652e9 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                              
                                                                          


                       
                     

                         
                      



                                                





                                                                   
                                                                                                    
 

                                
                        
                   
                   
                                                                 



                   
                                            

                                      




                                             
                                                             
                                                                  
 
                              

                               

                                                                    





                                     









                                                 









                                                               
                      
# New ports collection makefile for:    vinagre
# Date created:             16 December 2007
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#  $MCom: ports/net/vinagre3/Makefile,v 1.15 2011/11/19 10:53:37 kwm Exp $
#

PORTNAME=   vinagre
PORTVERSION=    3.4.2
CATEGORIES= net gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    VNC client for the GNOME Desktop

BUILD_DEPENDS=  itstool:${PORTSDIR}/textproc/itstool
LIB_DEPENDS=    gtk-vnc-2.0:${PORTSDIR}/net/gtk-vnc3 \
            avahi-core:${PORTSDIR}/net/avahi-app \
        avahi-ui-gtk3:${PORTSDIR}/net/avahi-gtk3 \
        gdbm:${PORTSDIR}/databases/gdbm \
        gnome-keyring:${PORTSDIR}/security/libgnome-keyring
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme

CONFLICTS=  vinagre-2.[0-9]*

LATEST_LINK=    vinagre3
USE_XZ=     yes
USE_GETTEXT=    yes
USE_GNOME=  gnomeprefix intlhack gnomehack gtk30 libxml2 vte3
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-spice --enable-ssh
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GLIB_SCHEMAS=   org.gnome.Vinagre.gschema.xml

MAN1=       vinagre.1

OPTIONS=    TELEPATHY "Enable telepathy integration" on \
        RDP "Enable MS Windows remote desktop support" off

.include <bsd.port.options.mk>

.if !defined(WITHOUT_TELEPATHY)
LIB_DEPENDS+=   telepathy-glib.0:${PORTSDIR}/net-im/telepathy-glib \
        dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
PLIST_SUB+= TELEPATHY=""
.else
CONFIGURE_ARGS+=--without-telepathy
PLIST_SUB+= TELEPATHY="@comment "
.endif

.if !defined(WITHOUT_RDP)
BUILD_DEPENDS+= rdesktop:${PORTSDIR}/net/rdesktop
RUN_DEPENDS+=   rdesktop:${PORTSDIR}/net/rdesktop
CONFIGURE_ARGS+=--enable-rdp
PLIST_SUB+= RDP=""
.else
CONFIGURE_ARGS+=--disable-rdp
PLIST_SUB+= RDP="@comment "
.endif

post-install:
    @-update-desktop-database > /dev/null
    @-update-mime-database ${PREFIX}/share/mime > /dev/null
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in AUTHORS COPYING ChangeLog NEWS README
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>