aboutsummaryrefslogtreecommitdiffstats
path: root/net/x2goclient/Makefile
blob: fb768c214da5f65479e534c6278e8f564137cca5 (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
# New ports collection makefile for:    x2goclient
# Date created:             2010-08-16
# Whom:                 arved
#
# $FreeBSD$

PORTNAME=   x2goclient
DISTVERSION=    3.01-5
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://code.x2go.org/releases/source/x2goclient/pre-git/
DISTNAME=   ${PORTNAME}_${DISTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    The x2go perl client

LIB_DEPENDS=    cups.2:${PORTSDIR}/print/cups-client
RUN_DEPENDS=    nxproxy:${PORTSDIR}/net/nxproxy \
        x2goclient-cli:${PORTSDIR}/net/x2goclient-cli

BROKEN=     does not compile
EXPIRATION_DATE=    2011-11-30

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING
PLIST_FILES=    bin/x2goclient
WRKSRC=     ${WRKDIR}/${PORTNAME}-${DISTVERSION:S,-5,,}
USE_QT_VER= 4
QT_COMPONENTS=  gui network svg qmake_build moc_build uic_build rcc_build
USE_OPENLDAP=   yes

post-patch:
    cd ${WRKSRC}; ${REINPLACE_CMD} -e "s,Q_OS_LINUX,Q_OS_FREEBSD," \
        embedwidget.cpp onmainwindow.cpp ongetpass.cpp \
        clicklineedit.cpp embedwidget.h clicklineedit.h
    ${REINPLACE_CMD} -e "s,#include <linux/fs.h>,," \
        ${WRKSRC}/onmainwindow.cpp
    ${REINPLACE_CMD} -e "s,linux,freebsd," ${WRKSRC}/x2goclient.pro

do-configure:
    cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${QMAKE}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/x2goclient ${PREFIX}/bin

.include <bsd.port.mk>