freebsd-ports/german/citrix_ica/Makefile
Martin Blapp 5ff28879f9 Change my email address, upgrade to latest version and fix
the endless loop during install in the case no netscape
was installed.

PR:		ports/31390
Reviewed by:	Dmitry Sivachenko <mitya@cavia.pp.ru>
2001-12-23 23:27:43 +00:00

62 lines
2 KiB
Makefile

# New ports collection makefile for: Citrix(R) ICA(R) Client
# Date created: 12 Dez 2000
# Whom: mblapp
#
# $FreeBSD$
#
PORTNAME= citrix_ica
PORTVERSION= 6.20.974
CATEGORIES= german net comms linux
MASTER_SITES=
DISTNAME= linuxx86
MAINTAINER= mbr@FreeBSD.org
RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
ONLY_FOR_ARCHS= i386
RESTRICTED= "License prohibits redistribution"
IS_INTERACTIVE= "Noisy license agreement ignores stdin"
DIST_SUBDIR= citrix_ica
NO_WRKSUBDIR= Yes
NO_BUILD= Yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE='The distribution file for this port may not be automatically fetched due to licensing restrictions. You MUST fetch the file manually after reading and agreeing to the license at: http://www.citrix.com/download/bin/license.asp?client=linux Once ${DISTFILES} has been downloaded, move it to ${DISTDIR}/${DIST_SUBDIR} and then restart this build.'
.endif
do-install:
@if (test -d "${CDIR}") ; \
then \
${ECHO} "-----------------------------------------------------------" ; \
${ECHO} "" ; \
${ECHO} "A ${CDIR} installation does already exist." ; \
${ECHO} "Please move it away or delete the old port" ; \
${ECHO} "" ; \
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
@if (test -d "/usr/lib/netscape"\
|| test -d "/usr/local/netscape"\
|| test -d "/usr/local/lib/netscape") ; \
then \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\n3" > ${WRKSRC}/response ; \
else \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\nj\n3" > ${WRKSRC}/response ; \
fi
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \
> ${WRKSRC}/wfica.x
cd ${WRKSRC} && ${LINUXBASE}/bin/sh -c './setupwfc < response'
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
.include <bsd.port.post.mk>