aboutsummaryrefslogtreecommitdiff
path: root/net/citrix_xenapp/Makefile
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-01-22 00:43:03 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-01-22 00:43:03 +0000
commitcb151ad3211654ef5eeeafe5cf523e45b0b91252 (patch)
treec73a7f85d9e31b88218ece48b039696a2bc38f28 /net/citrix_xenapp/Makefile
parent0f601033c423c530e531e1dd563bdfeef4a94b3d (diff)
downloadports-cb151ad3211654ef5eeeafe5cf523e45b0b91252.tar.gz
ports-cb151ad3211654ef5eeeafe5cf523e45b0b91252.zip
Notes
Diffstat (limited to 'net/citrix_xenapp/Makefile')
-rw-r--r--net/citrix_xenapp/Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/net/citrix_xenapp/Makefile b/net/citrix_xenapp/Makefile
index 46a2c57bab1a..b988519800fd 100644
--- a/net/citrix_xenapp/Makefile
+++ b/net/citrix_xenapp/Makefile
@@ -26,6 +26,14 @@ 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 !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
@@ -43,14 +51,18 @@ do-install:
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
- @if (test -d "/usr/lib/netscape"\
- || test -d "/usr/local/netscape"\
- || test -d "/usr/local/lib/netscape") ; \
- then \
- ${ECHO} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
- else \
- ${ECHO} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ; \
- fi
+
+ @${ECHO} -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} -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 \