1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/german/citrix_xenapp/Makefile
Thomas Abthorpe 6bf975f73f - Update to 11.0.140395
- Link to build
2009-06-14 05:27:22 +00:00

98 lines
2.6 KiB
Makefile

# New ports collection makefile for: Citrix(R) ICA(R) Client
# Date created: 12 Dez 2000
# Whom: mblapp
#
# $FreeBSD$
#
PORTNAME= citrix_xenapp
PORTVERSION= 11.0.140395
CATEGORIES= german net comms linux
MASTER_SITES=
DISTNAME= ${PORTNAME}-linuxx86-${PORTVERSION}
MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= Access virtual applications and desktops
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= f8
USE_LINUX_APPS= openmotif jpeg png
RESTRICTED= License prohibits redistribution
IS_INTERACTIVE= "Noisy license agreement ignores stdin"
NO_WRKSUBDIR= yes
NO_BUILD= yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
CERTDIR= ${CDIR}/keystore/cacerts
PLIST_SUB= MOZILLA_HOME=${MOZILLA_HOME}
.if defined(ICA_CERTS)
PLIST_SUB+= HAVE_ICA_CERTS="" ICA_CERTS="${ICA_CERTS}" CERTDIR="${CERTDIR}"
.else
PLIST_SUB+= HAVE_ICA_CERTS="@comment "
.endif
.include <bsd.port.pre.mk>
.if defined(BATCH) || defined(PACKAGE_BUILDING)
IGNORE='The distribution file for this port may not be automatically fetched due to licensing restrictions.'
.endif
do-fetch:
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@${ECHO} ""
@${ECHO} "You have to fetch the file manually from"
@${ECHO} ""
@${ECHO} "http://www.citrix.com/English/SS/downloads/details.asp?downloadID=3323"
@${ECHO} ""
@${ECHO} "Once en.linuxx86.tar.gz has been downloaded move it to"
@${ECHO} "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} and restart the build."
@${ECHO} ""
@${FALSE}
.endif
.if defined(ICA_CERTS)
pre-fetch:
.for f in ${ICA_CERTS}
@echo "Checking ${f}"
.if !exists(${DISTDIR}/${f})
@echo "Cert ${f} not found."
@exit 1
.endif
.endfor
.endif
post-patch:
${REINPLACE_CMD} -e 's|DefaultInstallDir=/usr/lib/ICAClient|DefaultInstallDir=${PREFIX}/ICAClient|' ${WRKSRC}/linuxx86/hinst
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
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \
> ${WRKSRC}/wfica.x
cd ${WRKSRC} && ${SH} -c './setupwfc'
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
${MKDIR} ${LINUXBASE}/dev
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
.if defined(ICA_CERTS)
.for f in ${ICA_CERTS}
${INSTALL_DATA} ${DISTDIR}/${f} ${CERTDIR}
.endfor
.endif
.include <bsd.port.post.mk>