2009-05-19 10:59:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.39 2009/05/19 08:59:26 wiz Exp $
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
DISTNAME= citrix_ica-10.6.115659
|
2008-02-29 17:41:44 +01:00
|
|
|
PKGREVISION= 1
|
2001-03-20 20:06:12 +01:00
|
|
|
CATEGORIES= net
|
2007-07-29 07:18:36 +02:00
|
|
|
MASTER_SITES= # empty
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-01-19 09:56:45 +01:00
|
|
|
MAINTAINER= sborrill@NetBSD.org
|
2007-01-21 13:44:48 +01:00
|
|
|
HOMEPAGE= http://www.citrix.com/English/SS/downloads/downloads.asp?dID=2755
|
2007-01-18 23:34:05 +01:00
|
|
|
COMMENT= Citrix(R) ICA client for the Citrix(R) Presentation Server(TM)
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= citrix_ica-license
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
RESTRICTED= License prohibits redistribution
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
2003-08-11 12:39:32 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
|
|
EMUL_PLATFORMS+= solaris-sparc
|
2008-10-07 11:57:58 +02:00
|
|
|
EMUL_PLATFORMS+= solaris-i386
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_MODULES.linux= locale motif x11
|
2003-08-11 12:39:32 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${EMUL_PLATFORM} == "linux-i386"
|
2007-03-05 19:01:02 +01:00
|
|
|
DISTNAME= en.linuxx86
|
2007-07-03 15:31:31 +02:00
|
|
|
PKGNAME= citrix_ica-10.6.115659
|
2008-10-07 11:57:58 +02:00
|
|
|
MASTER_SITES= ftp://download2.citrix.com/FILES/en/products/Linux10/
|
2007-07-29 07:18:36 +02:00
|
|
|
.elif ${EMUL_PLATFORM} == "solaris-sparc"
|
2007-01-18 23:34:05 +01:00
|
|
|
DISTNAME= en.solaris
|
2007-01-21 13:44:48 +01:00
|
|
|
PKGNAME= citrix_ica-8.46.110465
|
2007-01-20 00:37:43 +01:00
|
|
|
MASTER_SITES= http://www.citrix.com/site/resources/dynamic/software/
|
2003-08-11 12:39:32 +02:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
2008-10-07 11:57:58 +02:00
|
|
|
.elif ${EMUL_PLATFORM} == "solaris-i386"
|
|
|
|
DISTNAME= en.solx86
|
|
|
|
PKGNAME= citrix_ica-8.50.117422
|
|
|
|
MASTER_SITES= http://www.citrix.com/site/resources/dynamic/software/
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
CDIR= ${PREFIX}/lib/ICAClient
|
2007-01-18 23:34:05 +01:00
|
|
|
USE_TOOLS+= patch
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2005-08-10 19:12:32 +02:00
|
|
|
do-patch:
|
2007-01-18 23:34:05 +01:00
|
|
|
(cd ${WRKSRC}; \
|
2005-08-10 19:12:32 +02:00
|
|
|
for f in ${PATCHDIR}/patch-${MACHINE_ARCH}-*;do \
|
2007-01-20 00:37:43 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} <$$f >/dev/null 2>&1 || ${TRUE}; \
|
2005-08-10 19:12:32 +02:00
|
|
|
done)
|
2001-05-09 01:58:44 +02:00
|
|
|
|
2002-08-05 02:34:56 +02:00
|
|
|
do-build:
|
2003-08-11 12:39:32 +02:00
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/response.${MACHINE_ARCH} \
|
2001-03-20 20:06:12 +01:00
|
|
|
> ${WRKSRC}/response
|
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/wfcmgr \
|
|
|
|
> ${WRKSRC}/wfcmgr.x
|
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/wfica \
|
|
|
|
> ${WRKSRC}/wfica.x
|
2002-08-05 02:34:56 +02:00
|
|
|
|
|
|
|
pre-install:
|
2007-07-29 07:18:36 +02:00
|
|
|
${RUN} if [ `${ID} -u` != 0 ]; then \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "*** ${PKGNAME} must be installed with" \
|
|
|
|
"superuser privileges ***"; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
${RUN} if [ -d "${CDIR}" ]; then \
|
2002-08-05 02:34:56 +02:00
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "*** Please remove ${CDIR} and try again ***"; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
2001-03-20 20:06:12 +01:00
|
|
|
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
|
|
|
|
2003-03-26 05:05:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|