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-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
1999-12-09 17:08:31 +00:00
1999-12-14 23:14:36 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2000-08-24 19:29:31 +00:00
#
# Staroffice depends on a scripting fix for
# src/sys/i386/linux/linux_sysvec. It should
# be revision 1.55.2.1 or higher. Please upgrade
# to FreeBSD 4.1
#
. i f $ { O S V E R S I O N } < 4 1 0 0 0 0
BROKEN = YES
1999-12-14 23:14:36 +00:00
. e n d i f
2000-08-24 19:29:31 +00:00
. i f d e f i n e d ( W I T H _ C D R O M )
IGNORE = "Please mount the Sun StarOffice 5.2 CDROM onto /cdrom and run make again."
1999-12-14 23:14:36 +00:00
. e l s e # FTP/web download
2000-08-24 19:29:31 +00:00
. i f ! e x i s t s ( $ { _ D I S T D I R } / $ { D I S T N A M E } )
IGNORE = " Please manually download ${ DISTNAME } from http://www.sun.com/staroffice. Put ${ DISTNAME } into the directory ${ _DISTDIR } and run make again. Or, if you have the Sun StarOffice 5.2 CDROM, please run 'make USE_CDROM=yes' "
1999-12-09 17:08:31 +00:00
. e n d i f
1999-12-14 23:14:36 +00:00
. e n d i f
2000-04-17 00:18:05 +00:00
. i f d e f i n e d ( W I T H _ C D R O M )
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
. e n d i f
2000-08-24 19:29:31 +00:00
do-extract :
. i f ! d e f i n e d ( D I S P L A Y ) | | ${DISPLAY} = = ""
@ ${ ECHO }
@ ${ ECHO } Can\' t open display:
@ ${ ECHO } Please check your DISPLAY variable.
@ ${ ECHO }
@ ${ FALSE }
. e l s e
@${ 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 }
@${ WRKSRC } /${ DISTNAME } -extract ${ WRKSRC }
@cd ../../
. e n d i f
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
. i f ! d e f i n e d ( D I S P L A Y ) | | ${DISPLAY} = = ""
@ ${ ECHO }
@ ${ ECHO } Can\' t open display:
@ ${ ECHO } Please check your DISPLAY variable.
@ ${ ECHO }
@ ${ FALSE }
. e l s e
. i f e x i s t s ( / c o m p a t / l i n u x / u s r / l o c a l )
@${ LN } -fs /compat/linux/usr/local/office52 ${ PREFIX } /office52
. e n d i f
1999-12-14 23:14:36 +00:00
@${ CAT } ${ PKGDIR } /MESSAGE
2000-08-24 19:29:31 +00:00
@-TEMP= ${ TMPDIR } /compat/linux/bin/sh -c '${WRKSRC}/setup /net'
@ ${ ECHO }
@ ${ ECHO } Ignore the error-message. StarOffice5.2 has been installed
@ ${ ECHO } successfully on your system.
@ ${ ECHO }
. e n d i f
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
. i n c l u d e < b s d . p o r t . p o s t . m k >