2007-01-19 09:56:45 +01:00
|
|
|
# $NetBSD: Makefile,v 1.30 2007/01/19 08:56:45 sborrill Exp $
|
2002-08-05 02:34:56 +02:00
|
|
|
#
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2003-08-11 12:39:32 +02:00
|
|
|
# A default so lintpkgsrc is happy, overridden below
|
2002-08-05 02:34:56 +02:00
|
|
|
DISTNAME= citrix
|
2007-01-18 23:34:05 +01:00
|
|
|
PKGNAME= citrix_ica-9.0.0
|
2001-03-20 20:06:12 +01:00
|
|
|
CATEGORIES= net
|
2002-08-05 02:34:56 +02:00
|
|
|
MASTER_SITES= http://download2.citrix.com/files/en/products/client/ica/current/
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-01-19 09:56:45 +01:00
|
|
|
MAINTAINER= sborrill@NetBSD.org
|
2001-03-20 20:06:12 +01:00
|
|
|
HOMEPAGE= http://www.citrix.com/products/clients/ica/technology.asp
|
2007-01-18 23:34:05 +01:00
|
|
|
COMMENT= Citrix(R) ICA client for the Citrix(R) Presentation Server(TM)
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2003-08-11 12:39:32 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-01-18 23:34:05 +01:00
|
|
|
ONLY_FOR_PLATFORM= Linux-*-i[3-6]86 NetBSD-*-i386 NetBSD-*-sparc SunOS-*-sparc
|
2005-12-17 11:52:53 +01:00
|
|
|
ONLY_FOR_PLATFORM+= DragonFly-*-i386
|
2003-08-11 12:39:32 +02:00
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2005-02-20 13:58:09 +01:00
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
2003-08-11 12:39:32 +02:00
|
|
|
DISTNAME= linuxx86
|
2007-01-18 23:34:05 +01:00
|
|
|
PKGNAME= citrix_ica-9.0.0
|
2005-02-20 13:58:09 +01:00
|
|
|
. elif ${MACHINE_ARCH} == "sparc"
|
2007-01-18 23:34:05 +01:00
|
|
|
DISTNAME= en.solaris
|
|
|
|
PKGNAME= citrix_ica-8.46
|
2003-08-11 12:39:32 +02:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
2005-02-20 13:58:09 +01:00
|
|
|
. endif
|
2003-08-11 12:39:32 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
2007-01-18 23:34:05 +01:00
|
|
|
DISTNAME= en.solaris
|
|
|
|
PKGNAME= citrix_ica-8.46
|
2003-08-11 12:39:32 +02:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
2005-12-12 15:43:23 +01:00
|
|
|
.elif ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
|
2003-08-11 12:39:32 +02:00
|
|
|
DISTNAME= linuxx86
|
2007-01-18 23:34:05 +01:00
|
|
|
PKGNAME= citrix_ica-9.0.0
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# see http://www.citrix.com/download/unix-downloads.htm
|
2005-12-12 15:43:23 +01:00
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") && ${MACHINE_ARCH} == "i386"
|
2005-12-05 21:49:47 +01:00
|
|
|
DEPENDS+= suse_x11>=6.4:../../emulators/${SUSE_DIR_PREFIX}_x11
|
2007-01-18 23:34:05 +01:00
|
|
|
DEPENDS+= suse_openmotif>=6.4:../../emulators/${SUSE_DIR_PREFIX}_openmotif
|
2003-08-11 12:39:32 +02:00
|
|
|
.endif
|
|
|
|
|
2002-08-05 02:34:56 +02:00
|
|
|
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-03-20 20:06:12 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-12-05 21:49:47 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2002-08-05 02:34:56 +02: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-02-20 13:58:09 +01:00
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
|
|
|
|
. if !exists(/emul/svr4/usr/lib/ld.so)
|
2005-12-05 21:49:47 +01:00
|
|
|
PKG_FAIL_REASON+= "${PKGNAME} requires SVR4 compability - see compat_svr4(8)"
|
2005-02-20 13:58:09 +01:00
|
|
|
. endif
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
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-18 23:34:05 +01:00
|
|
|
${PATCH} <$$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-01-18 23:34:05 +01:00
|
|
|
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
|
|
|
|
2005-12-12 15:43:23 +01:00
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") && ${MACHINE_ARCH} == "i386"
|
2003-03-26 05:05:37 +01:00
|
|
|
. include "../../emulators/suse_linux/Makefile.application"
|
2002-08-05 02:34:56 +02:00
|
|
|
.endif
|
2003-03-26 05:05:37 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|