2000-08-24 19:29:31 +00:00
|
|
|
# New ports collection makefile for: StarOffice 5.2
|
|
|
|
# Date created: 22 August 2000
|
|
|
|
# Whom: Martin Blapp
|
1999-12-09 17:08:31 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 00:25:54 +00:00
|
|
|
PORTNAME= staroffice
|
2000-08-24 19:29:31 +00:00
|
|
|
PORTVERSION= 5.2
|
2000-02-28 08:34:04 +00:00
|
|
|
CATEGORIES= editors linux
|
2000-08-28 13:35:26 +00:00
|
|
|
MASTER_SITES= ftp://ftp.inf.utfsm.cl/pub/UTFSM/StarOffice_5.2/ \
|
|
|
|
ftp://ftp.snerpa.is/pub/linux/ \
|
|
|
|
ftp://ftp.osb.hu/pub/mirrors/staroffice/linux/ \
|
|
|
|
ftp://ftp.uni-linz.ac.at/pub/staroffice_5.2/ \
|
|
|
|
ftp://ftp.labyrinth.net.au/.5/kk/linux/star_office/ \
|
|
|
|
ftp://ftp.acs.oakland.edu/files/Linux/StarOffice/office52/ \
|
|
|
|
ftp://ftp.ctio.noao.edu/linux/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/staroffice/english/ \
|
|
|
|
ftp://ftp.linux.tucows.com/pub/Linuxberg/ \
|
|
|
|
ftp://ftp.jcu.edu.au/pub/StarOffice/ \
|
|
|
|
ftp://ftp.uakom.sk/pub/mirrors/StarOffice/ \
|
|
|
|
ftp://ftp.linux.hr/pub/staroffice/5.2/
|
2000-08-24 19:29:31 +00:00
|
|
|
DISTNAME= so-5_2-ga-bin-linux-en.bin
|
|
|
|
DISTFILES= soa-5_2-ga-bin-linux-en.bin so-5_2-ga-bin-linux-en.bin
|
|
|
|
EXTRACT_ONLY=
|
1999-12-09 17:08:31 +00:00
|
|
|
|
2000-02-28 23:55:27 +00:00
|
|
|
MAINTAINER= mb@imp.ch
|
1999-12-31 20:14:55 +00:00
|
|
|
|
1999-12-14 23:14:36 +00:00
|
|
|
RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
|
1999-12-09 17:08:31 +00:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
NO_CDROM= 'Must be downloaded direct from Sun via www interface'
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
NO_BUILD= yes
|
2000-08-24 19:29:31 +00:00
|
|
|
DIST_SUBDIR= staroffice52
|
|
|
|
WRKSRC= ${WRKDIR}/office52
|
2000-01-29 21:52:21 +00:00
|
|
|
TMPDIR= ${WRKDIR}/tmp
|
2000-08-25 13:48:08 +00:00
|
|
|
ADEBAS= soa-5_2-ga-bin-linux-en.bin
|
1999-12-09 17:08:31 +00:00
|
|
|
|
1999-12-14 23:14:36 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-08-25 13:48:08 +00:00
|
|
|
pre-fetch:
|
2000-08-24 19:29:31 +00:00
|
|
|
.if ${OSVERSION} < 410000
|
2000-08-25 13:48:08 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} OS-VERSION ${OSVERSION}
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Staroffice depends on a scripting fix for
|
|
|
|
@${ECHO} src/sys/i386/linux/linux_sysvec. It should
|
|
|
|
@${ECHO} be revision 1.55.2.1 or higher.
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Please upgrade to FreeBSD 4.1
|
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
1999-12-14 23:14:36 +00:00
|
|
|
.endif
|
2000-08-24 19:29:31 +00:00
|
|
|
.if defined(WITH_CDROM)
|
2000-08-25 13:48:08 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Please mount the Sun StarOffice 5.2 CDROM
|
|
|
|
@${ECHO} onto /cdrom and run make again.
|
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
1999-12-14 23:14:36 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_CDROM)
|
1999-12-14 23:14:36 +00:00
|
|
|
do-extract:
|
2000-08-24 19:29:31 +00:00
|
|
|
@${MKDIR} ${WRKSRC}/office52
|
|
|
|
@cd ${WRKSRC}/office52 && ${LN} -s ${CD_MOUNTPT}/linux/office52/* .
|
1999-12-14 23:14:36 +00:00
|
|
|
.endif
|
|
|
|
|
2000-08-24 19:29:31 +00:00
|
|
|
do-extract:
|
|
|
|
.if !defined(DISPLAY) || ${DISPLAY} == ""
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Can\'t open display:
|
|
|
|
@ ${ECHO} Please check your DISPLAY variable.
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${FALSE}
|
|
|
|
.else
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@${MKDIR} ${TMPDIR}
|
|
|
|
@${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC}
|
|
|
|
@${CP} ${_DISTDIR}/soa-5_2-ga-bin-linux-en.bin ${WRKSRC}
|
|
|
|
@${CHMOD} 755 ${WRKSRC}/${DISTNAME}
|
|
|
|
@${CHMOD} 755 ${WRKSRC}/soa-5_2-ga-bin-linux-en.bin
|
|
|
|
@cd ${WRKSRC}
|
2000-08-25 13:48:08 +00:00
|
|
|
@SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC}
|
2000-08-24 19:29:31 +00:00
|
|
|
@cd ../../
|
|
|
|
.endif
|
1999-12-09 17:08:31 +00:00
|
|
|
|
|
|
|
post-configure:
|
2000-08-24 19:29:31 +00:00
|
|
|
@${PERL} -pi.orig -e 's|DefaultDestPath = "office52";|DefaultDestPath = "${PREFIX}/office52";|' ${WRKSRC}/setup.ins
|
1999-12-09 17:08:31 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-08-24 19:29:31 +00:00
|
|
|
.if !defined(DISPLAY) || ${DISPLAY} == ""
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Can\'t open display:
|
|
|
|
@ ${ECHO} Please check your DISPLAY variable.
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${FALSE}
|
|
|
|
.else
|
|
|
|
.if exists(/compat/linux/usr/local)
|
|
|
|
@${LN} -fs /compat/linux/usr/local/office52 ${PREFIX}/office52
|
|
|
|
.endif
|
1999-12-14 23:14:36 +00:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
2000-08-25 13:48:08 +00:00
|
|
|
@-SAL_IGNOREXERRORS=1 TEMP=${TMPDIR} /compat/linux/bin/sh -c '${WRKSRC}/setup /net'
|
2000-08-24 19:29:31 +00:00
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Ignore the error-message. StarOffice5.2 has been installed
|
|
|
|
@ ${ECHO} successfully on your system.
|
|
|
|
@ ${ECHO}
|
|
|
|
.endif
|
1999-12-09 17:08:31 +00:00
|
|
|
|
2000-08-24 19:29:31 +00:00
|
|
|
post-install:
|
|
|
|
@${PATCH} -s ${PREFIX}/office52/program/setup ${FILESDIR}/setup.patch
|
|
|
|
@${PATCH} -s ${PREFIX}/office52/program/soffice ${FILESDIR}/soffice.patch
|
1999-12-09 17:08:31 +00:00
|
|
|
|
|
|
|
install-user:
|
2000-08-24 19:29:31 +00:00
|
|
|
${PREFIX}/office52/program/setup
|
1999-12-09 17:08:31 +00:00
|
|
|
|
1999-12-14 23:14:36 +00:00
|
|
|
.include <bsd.port.post.mk>
|