freebsd-ports/japanese/citrix_ica/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

82 lines
2.3 KiB
Makefile

# New ports collection makefile for: Citrix(R) ICA(R) Client
# Date created: 2006-05-31
# Whom: Thomas Abthorpe <thomas@goodking.ca>
#
# $FreeBSD$
#
PORTNAME= citrix_ica
PORTVERSION= 10.6
CATEGORIES= japanese net comms linux
MASTER_SITES=
DISTNAME= ${PORTNAME}-linuxx86-ja-${PORTVERSION}
MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= Citrix(R) Presentation Server(TM) client
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= yes
USE_LINUX_APPS= openmotif
RESTRICTED= License prohibits redistribution
IS_INTERACTIVE= "Noisy license agreement ignores stdin"
NO_WRKSUBDIR= Yes
NO_BUILD= Yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= ${LOCALBASE}/libexec/netscape \
${LOCALBASE}/libexec/netscape-linux \
${LOCALBASE}/netscape \
${LOCALBASE}/netscape-linux \
${LOCALBASE}/lib/netscape \
${LOCALBASE}/lib/netscape-linux \
${MOZILLA_HOME}
PLIST_SUB= MOZILLA_HOME=${MOZILLA_HOME}
.include <bsd.port.pre.mk>
.if exists(${PREFIX}/bin/kde-config)
HAVE_KDE= "\\ny"
.endif
.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/site/SS/downloads/details.asp?dID=2755&downloadID=3323"
@${ECHO} ""
@${ECHO} "Once ja.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
${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
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
.include <bsd.port.post.mk>