freebsd-ports/net/citrix_ica/Makefile
Martin Blapp 1501be706e Upgrade these ports to new versions. While we are here, clean
up the IGNORE message, and make the manual install idiot proof.
Remove the need for a dist subdir, let the user rename the
distfile to a more useful distname. Fix pkg-plist.
2002-09-14 08:09:35 +00:00

88 lines
2.5 KiB
Makefile

# New ports collection makefile for: Citrix(R) ICA(R) Client
# Date created: 20 Sep 1998
# Whom: msmith
#
# $FreeBSD$
#
PORTNAME= citrix_ica
PORTVERSION= 6.30.1052
CATEGORIES= net comms linux
MASTER_SITES=
DISTNAME= ${PORTNAME}-linuxx86
MAINTAINER= mbr@FreeBSD.org
RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
ONLY_FOR_ARCHS= i386
RESTRICTED= "License prohibits redistribution"
IS_INTERACTIVE= "Noisy license agreement ignores stdin"
NO_WRKSUBDIR= yes
NO_BUILD= yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= /usr/local/libexec/netscape \
/usr/local/libexec/netscape-linux \
/usr/local/netscape \
/usr/local/netscape-linux \
/usr/local/lib/netscape \
/usr/local/lib/netscape-linux \
${MOZILLA_HOME}
.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 after reading and"
@${ECHO} "agreeing to the license at:"
@${ECHO} ""
@${ECHO} "http://www.citrix.com/download/bin/license.asp?client=linux"
@${ECHO} ""
@${ECHO} "Once linuxx86.tar.gz has been downloaded move it to"
@${ECHO} "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} and restart the build."
@${ECHO} ""
@${FALSE}
.endif
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
@${ECHO_CMD} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ;
@for dir in ${NSCP}; do \
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
case $${BIN} in \
\(SYSV\),) \
${ECHO_CMD} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
esac \
fi \
done
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \
> ${WRKSRC}/wfica.x
cd ${WRKSRC} && ${LINUXBASE}/bin/sh -c './setupwfc < response'
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
.include <bsd.port.post.mk>