freebsd-ports/net/x2goclient/Makefile
Dmitry Marakasov ad36c89df1 - Update to 4.0.4.0
- Unbreak
- Regenerate patches

PR:		201177
Submitted by:	tkato432@yahoo.com
Differential Revision:
2015-07-01 15:12:24 +00:00

70 lines
2.1 KiB
Makefile

# Created by: arved
# $FreeBSD$
PORTNAME= x2goclient
PORTVERSION= 4.0.4.0
CATEGORIES= net
MASTER_SITES= http://code.x2go.org/releases/source/x2goclient/
MAINTAINER= ports@FreeBSD.org
COMMENT= Qt client for the X2Go system
LICENSE= GPLv2
# Avoid clash with libssh from base
BUILD_DEPENDS= ${LOCALBASE}/lib/libssh.so:${PORTSDIR}/security/libssh
LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client \
libssh.so:${PORTSDIR}/security/libssh
RUN_DEPENDS= nxproxy:${PORTSDIR}/net/nxproxy \
x2goclient-cli:${PORTSDIR}/net/x2goclient-cli
USES= qmake
USE_XORG= xpm
USE_QT4= gui network svg \
linguisttools_build moc_build rcc_build uic_build
QMAKE_ARGS= QMAKE_LRELEASE="${LRELEASE}"
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS LDAP
OPTIONS_DEFAULT= LDAP
LDAP_USE= OPENLDAP=yes
LDAP_CFLAGS= -DUSELDAP
LDAP_QMAKE_ON= LIBS+="-lX11 -lXpm -lcups -lldap"
LDAP_QMAKE_OFF= LIBS+="-lX11 -lXpm -lcups"
post-patch:
@${FIND} ${WRKSRC}/src -name "*.cpp" -or -name "*.h" | ${XARGS} \
${REINPLACE_CMD} -e \
's|Q_OS_LINUX|Q_OS_UNIX| ; \
/<linux\/fs.h>/s|^|//| ; \
/#define USELDAP/s|^|//|'
pre-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} compiler_TSQM_make_all)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} x2goclient \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} x2goclient.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} x2goclient.desktop \
${STAGEDIR}${DESKTOPDIR})
.for i in 16x16 32x32 48x48 64x64 128x128
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}/apps
(cd ${WRKSRC}/res/img/icons/${i} && ${INSTALL_DATA} x2goclient.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}/apps)
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/icons
(cd ${WRKSRC}/res/img/icons && ${INSTALL_DATA} x2goclient.xpm \
${STAGEDIR}${DATADIR}/icons)
.for i in x2goclient.png x2gosession.png
(cd ${WRKSRC}/res/img/icons/128x128 && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DATADIR}/icons)
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} HOWTO.GPGCARD ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>