b1d7edf609
- Add USES= webplugin:linux - Plist cleanup PR: 179420 Differential Revision: https://reviews.freebsd.org/D1112 Submitted by: upiter77@lycos.com Approved by: swills (mentor)
82 lines
2.2 KiB
Makefile
82 lines
2.2 KiB
Makefile
# Created by: msmith
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= citrix_ica
|
|
PORTVERSION= 12.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= net comms linux
|
|
MASTER_SITES= #
|
|
DISTNAME= linuxx86_12.1.0.203066
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Citrix(R) Presentation Server(TM) client
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
USES= webplugin:linux
|
|
WEBPLUGIN_FILES= npica.so
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= alsalib gtk2 openmotif
|
|
RESTRICTED= License prohibits redistribution
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
CDIR= ${PREFIX}/ICAClient
|
|
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
|
|
|
|
SUB_FILES= wfcmgr wfica
|
|
SUB_LIST= CDIR=${CDIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
IGNORE=May not be redistributed due to licensing. Please visit http://www.citrix.com/downloads/citrix-receiver/receivers-by-platform/receiver-for-linux-121.html to accept their license and download ${DISTFILES} into ${DISTDIR}
|
|
.endif
|
|
|
|
pre-fetch:
|
|
.if defined(ICA_CERTS)
|
|
.for f in ${ICA_CERTS}
|
|
@echo "Checking ${f}"
|
|
.if !exists(${DISTDIR}/${f})
|
|
@echo "Cert ${f} not found."
|
|
@exit 1
|
|
.endif
|
|
.endfor
|
|
.endif
|
|
|
|
do-install:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${STAGEDIR}${PREFIX}|g' ${WRKDIR}/linuxx86/hinst
|
|
@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
|
|
cd ${WRKSRC} && ${SH} -c './setupwfc'
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wfcmgr ${STAGEDIR}${PREFIX}/bin/wfcmgr
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wfica ${STAGEDIR}${PREFIX}/bin/wfica
|
|
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
|
|
${MKDIR} ${STAGEDIR}${CDIR}
|
|
${MKDIR} ${STAGEDIR}${CDIR}/config
|
|
cd ${WRKDIR}/linuxx86/linuxx86.cor/ && ${COPYTREE_SHARE} . ${STAGEDIR}${CDIR}
|
|
cp ${WRKDIR}/setupwfc ${STAGEDIR}${CDIR}
|
|
|
|
.if defined(ICA_CERTS)
|
|
${MKDIR} ${STAGEDIR}${CERTDIR}
|
|
.for f in ${ICA_CERTS}
|
|
${INSTALL_DATA} ${DISTDIR}/${f} ${STAGEDIR}${CERTDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|