1 # $NetBSD: Makefile,v 1.43 2013/02/12 13:55:48 sborrill Exp $
3 DISTNAME= citrix_ica-10.6.115659
8 MAINTAINER= sborrill@NetBSD.org
9 HOMEPAGE= http://www.citrix.com/English/ss/downloads/results.asp?productID=186&c1=sot2755
10 COMMENT= Citrix(R) ICA client for the Citrix(R) Presentation Server(TM)
11 LICENSE= citrix_ica-license
13 RESTRICTED= License prohibits redistribution
14 NO_SRC_ON_FTP= ${RESTRICTED}
15 NO_BIN_ON_FTP= ${RESTRICTED}
16 NO_SRC_ON_CDROM= ${RESTRICTED}
17 NO_BIN_ON_CDROM= ${RESTRICTED}
19 # "Abort Traps" indefinitely in pbulk
20 NOT_FOR_PLATFORM+= DragonFly-*-*
22 EMUL_PLATFORMS= linux-i386
23 EMUL_PLATFORMS+= solaris-sparc
24 EMUL_PLATFORMS+= solaris-i386
25 EMUL_MODULES.linux= locale motif x11
27 PKG_DESTDIR_SUPPORT= destdir
29 .include "../../mk/bsd.prefs.mk"
31 PATCH_ARCH= ${MACHINE_ARCH}
32 .if ${EMUL_PLATFORM} == "linux-i386"
34 PKGNAME= citrix_ica-10.6.115659
36 MASTER_SITES= ftp://download2.citrix.com/FILES/en/products/Linux10/
37 .elif ${EMUL_PLATFORM} == "solaris-sparc"
39 PKGNAME= citrix_ica-8.63.165401
40 HOMEPAGE= http://www.citrix.com/English/ss/downloads/details.asp?downloadId=1859901&productId=186&c1=sot2755
43 .elif ${EMUL_PLATFORM} == "solaris-i386"
45 PKGNAME= citrix_ica-8.63.165401
46 HOMEPAGE= http://www.citrix.com/English/ss/downloads/details.asp?downloadId=1859901&productId=186&c1=sot2755
52 DIST_SUBDIR= ${PKGNAME_NOREV}
54 PLAIN_CDIR= ${PREFIX}/lib/ICAClient
55 CDIR= ${DESTDIR}${PLAIN_CDIR}
58 INSTALLATION_DIRS= bin lib
60 .if ${MASTER_SITES} == "manual"
61 FETCH_MESSAGE= "Please fetch ${DISTFILES} manually from"
62 FETCH_MESSAGE+= "${HOMEPAGE}"
63 FETCH_MESSAGE+= "and put into"
64 FETCH_MESSAGE+= "${DISTDIR}/${PKGNAME_NOREV}"
69 for f in ${PATCHDIR}/patch-${PATCH_ARCH}-*;do \
70 ${PATCH} ${PATCH_ARGS} <$$f >/dev/null 2>&1 || ${TRUE}; \
74 ${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/response.${MACHINE_ARCH} \
76 ${SED} s%DESTINATION%${PLAIN_CDIR}% ${FILESDIR}/wfcmgr \
78 ${SED} s%DESTINATION%${PLAIN_CDIR}% ${FILESDIR}/wfica \
82 ${RUN} if [ `${ID} -u` != 0 ]; then \
84 ${ECHO} "*** ${PKGNAME} must be installed with" \
85 "superuser privileges ***"; \
89 ${RUN} if [ -d "${CDIR}" ]; then \
91 ${ECHO} "*** Please remove ${CDIR} and try again ***"; \
97 cd ${WRKSRC} && ./setupwfc < response
98 ${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${DESTDIR}${PREFIX}/bin/wfcmgr
99 ${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${DESTDIR}${PREFIX}/bin/wfica
100 ${SED} "s#/usr/lib/ICAClient#${PLAIN_CDIR}#g" \
101 < ${CDIR}/util/icalicense.sh > ${CDIR}/util/icalicense.sh.fixed
102 ${MV} ${CDIR}/util/icalicense.sh.fixed ${CDIR}/util/icalicense.sh
105 .for f in desktop/Citrix_PNA.desktop desktop/wfcmgr.desktop wfica.sh \
107 sed -e s,${CDIR:Q},${PLAIN_CDIR:Q},g ${CDIR}/${f} > ${CDIR}/${f}.new
108 mv ${CDIR}/${f}.new ${CDIR}/${f}
111 .include "../../mk/bsd.pkg.mk"