2002-01-21 14:19:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/01/21 13:19:08 martti Exp $
|
2001-03-20 20:06:12 +01:00
|
|
|
#
|
|
|
|
|
2001-03-23 15:53:43 +01:00
|
|
|
DISTNAME= citrix_ica-client
|
2001-03-20 20:06:12 +01:00
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
DISTNAME= linuxx86
|
2002-01-18 12:50:40 +01:00
|
|
|
PKGNAME= citrix_ica-6.20.973
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
.if (${MACHINE_ARCH} == "sparc")
|
|
|
|
DISTNAME= solaris
|
2002-01-18 12:50:40 +01:00
|
|
|
PKGNAME= citrix_ica-6.20.976
|
2001-03-20 20:06:12 +01:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
.endif
|
|
|
|
CATEGORIES= net
|
2002-01-18 12:50:40 +01:00
|
|
|
MASTER_SITES= http://download2.citrix.com/files/en/products/nfr/ica/ \
|
|
|
|
http://download2.citrix.com/FILES/en/products/client/ica/current/
|
2001-03-20 20:06:12 +01:00
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.citrix.com/products/clients/ica/technology.asp
|
|
|
|
COMMENT= Citrix(R) client for the Microsoft Windows Terminal Server
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
2002-01-18 12:50:40 +01:00
|
|
|
DEPENDS= suse_x11>=6.4:../../emulators/suse_x11
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc
|
|
|
|
|
|
|
|
# see http://www.citrix.com/download/unix-downloads.htm
|
|
|
|
LICENSE= citrix_ica-license
|
|
|
|
RESTRICTED= License prohibits redistribution
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
|
2001-05-05 19:24:10 +02:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.pre \
|
|
|
|
${PKGDIR}/PLIST.${MACHINE_ARCH} \
|
|
|
|
${PKGDIR}/PLIST.post
|
|
|
|
|
2001-03-20 20:06:12 +01:00
|
|
|
DIST_SUBDIR= citrix
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
NO_BUILD= Yes
|
|
|
|
|
|
|
|
CDIR= ${PREFIX}/lib/ICAClient
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "sparc")
|
2001-05-05 19:27:17 +02:00
|
|
|
.if !exists(/emul/svr4/usr/lib/ld.so)
|
|
|
|
IGNORE= "${PKGNAME} requires SVR4 compability - see compat_svr4(8)"
|
|
|
|
.endif
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
2001-05-09 01:58:44 +02:00
|
|
|
PATCHDIR=${WRKDIR}/.patches
|
|
|
|
pre-patch:
|
|
|
|
${MKDIR} ${PATCHDIR}
|
|
|
|
${CP} ${.CURDIR}/patches/patch-${MACHINE_ARCH}-* ${PATCHDIR}
|
|
|
|
|
2002-01-21 14:19:08 +01:00
|
|
|
pre-install:
|
|
|
|
@if [ -d "${CDIR}" ]; then \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "*** Please remove ${CDIR} and try again ***"; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
2001-03-20 20:06:12 +01:00
|
|
|
do-install:
|
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/response \
|
|
|
|
> ${WRKSRC}/response
|
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/wfcmgr \
|
|
|
|
> ${WRKSRC}/wfcmgr.x
|
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/wfica \
|
|
|
|
> ${WRKSRC}/wfica.x
|
|
|
|
cd ${WRKSRC} && ./setupwfc < response
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
|
2002-01-21 14:19:08 +01:00
|
|
|
${SED} "s#/usr/lib/ICAClient#${CDIR}#g" \
|
|
|
|
< ${CDIR}/util/icalicense.sh > ${CDIR}/util/icalicense.sh.fixed
|
|
|
|
${MV} ${CDIR}/util/icalicense.sh.fixed ${CDIR}/util/icalicense.sh
|
2001-03-20 20:06:12 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|