2001-10-13 00:36:51 +02:00
# New ports collection makefile for: StarOffice 6.0
# Date created: 03 October 2001
2000-08-24 21:29:31 +02:00
# Whom: Martin Blapp
1999-12-09 18:08:31 +01:00
#
# $FreeBSD$
#
2000-04-14 02:25:54 +02:00
PORTNAME = staroffice
2001-10-13 00:36:51 +02:00
PORTVERSION = 6.0
2000-02-28 09:34:04 +01:00
CATEGORIES = editors linux
2001-10-16 19:17:52 +02:00
MASTER_SITES = ${ MASTER_SITE_LOCAL } \
ftp://ftp.teleport.ch/FreeBSD/patches/
MASTER_SITE_SUBDIR = obrien
2001-10-13 00:36:51 +02:00
DISTNAME = so-6_0-beta-bin-linux-en.bin
2001-10-16 19:17:52 +02:00
DISTFILES = so60dat-20011016.tar.bz2
2001-10-13 00:36:51 +02:00
EXTRACT_SUFX =
2001-10-16 19:17:52 +02:00
EXTRACT_ONLY = so60dat-20011016.tar.bz2
1999-12-09 18:08:31 +01:00
2001-12-24 14:56:04 +01:00
MAINTAINER = mbr@FreeBSD.org
1999-12-31 21:14:55 +01:00
2001-10-15 00:52:18 +02:00
FETCH_DEPENDS = ${ LINUXBASE } /usr/X11R6/lib/libXrender.so.1.0:${ PORTSDIR } /emulators/linux_base-7
BUILD_DEPENDS = ${ LINUXBASE } /usr/X11R6/lib/libXrender.so.1.0:${ PORTSDIR } /emulators/linux_base-7
1999-12-09 18:08:31 +01:00
2002-01-22 22:14:18 +01:00
BROKEN = "SUN beta program for 6.0 has been closed. Distfile is not available anymore"
2001-10-16 19:17:52 +02:00
USE_BZIP2 = yes
1999-12-09 18:08:31 +01:00
ONLY_FOR_ARCHS = i386
NO_CDROM = 'Must be downloaded direct from Sun via www interface'
IS_INTERACTIVE = yes
NO_BUILD = yes
2001-10-13 00:36:51 +02:00
SOVERSION = ${ PORTNAME } ${ PORTVERSION }
KDEHOME = .kde
WRKSRC = ${ WRKDIR } /${ SOVERSION }
2000-01-29 22:52:21 +01:00
TMPDIR = ${ WRKDIR } /tmp
2000-09-23 12:32:30 +02:00
LD_PATH = ${ TMPDIR } :${ WRKSRC } :${ LINUXBASE } /lib:${ LINUXBASE } /usr/lib
2001-10-13 00:36:51 +02:00
INSTDB.INS = ${ PREFIX } /${ SOVERSION } /program/instdb.ins
2001-10-16 19:17:52 +02:00
OPENCONFIG = ${ PREFIX } /${ SOVERSION } /share/config/registry/cache/instance/org/openoffice
2001-10-13 00:36:51 +02:00
2002-01-29 11:34:23 +01:00
SIZE != /bin/df -k . | ${ TAIL } -n 1 | ${ AWK } '{print $$4}'
LINPROCFS != /sbin/mount | ${ GREP } linprocfs | ${ AWK } '{print $1}'
1999-12-09 18:08:31 +01:00
1999-12-15 00:14:36 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2000-08-25 15:48:08 +02:00
pre-fetch :
2001-09-05 00:30:19 +02:00
. i f $ { L I N P R O C F S }
@${ ECHO }
@${ ECHO } Check if linprocfs is running: YES
. e l s e
@${ ECHO } -----------------------------------------------------------
@${ ECHO }
@${ ECHO } Staroffice setup needs a running linprocfs, which is not
2001-09-05 22:19:01 +02:00
@${ ECHO } activated on your system. Please read the linprocfs\( 5\)
2001-09-05 00:30:19 +02:00
@${ ECHO } manpage and add the following line to /etc/fstab:
@${ ECHO }
@${ ECHO } linproc /compat/linux/proc linprocfs rw 0 0
@${ ECHO }
@${ ECHO } -----------------------------------------------------------
@${ FALSE }
. e n d i f
2000-08-24 21:29:31 +02:00
. i f $ { O S V E R S I O N } < 4 1 0 0 0 0
2000-08-25 15:48:08 +02:00
@${ ECHO }
@${ ECHO } OS-VERSION ${ OSVERSION }
@${ ECHO }
@${ ECHO } Staroffice depends on a scripting fix for
2000-09-23 12:32:30 +02:00
@${ ECHO } /usr/src/sys/i386/linux/linux_sysvec.c
@${ ECHO } \( revision 1.55.2.1 or higher\)
2000-08-25 15:48:08 +02:00
@${ ECHO }
@${ ECHO } Please upgrade to FreeBSD 4.1
@${ ECHO }
@${ FALSE }
1999-12-15 00:14:36 +01:00
. e n d i f
2001-10-13 00:36:51 +02:00
. i f $ { S I Z E } < 4 0 0 0 0 0
2001-06-03 18:29:56 +02:00
@${ ECHO }
2001-10-15 00:52:18 +02:00
@${ ECHO } There is only ${ SIZE } K free disk space in
@${ ECHO } ${ WRKDIRPREFIX } . To unpack Staroffice needs
@${ ECHO } at least 400000K free diskspace.
2000-08-25 15:48:08 +02:00
@${ FALSE }
1999-12-15 00:14:36 +01:00
. e n d i f
2001-10-13 00:36:51 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2001-10-13 17:23:55 +02:00
IGNORE = " Please manually download ${ DISTNAME } ${ EXTRACT_SUFX } from http://www.sun.com/staroffice. Put ${ DISTNAME } ${ EXTRACT_SUFX } into the directory ${ DISTDIR } and run make again. "
2000-09-15 18:33:34 +02:00
. e n d i f
1999-12-15 00:14:36 +01:00
2000-08-24 21:29:31 +02: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 }
@${ CHMOD } 755 ${ WRKSRC } /${ DISTNAME }
@cd ${ WRKSRC }
2000-08-25 15:48:08 +02:00
@SAL_IGNOREXERRORS= 1 ${ WRKSRC } /${ DISTNAME } -extract ${ WRKSRC }
2001-06-03 18:29:56 +02:00
@${ RM } ${ WRKSRC } /${ DISTNAME }
2000-08-24 21:29:31 +02:00
@cd ../../
2000-12-24 15:28:59 +01:00
@for file in ${ EXTRACT_ONLY } ; do \
if ! ( cd ${ WRKDIR } && ${ EXTRACT_CMD } ${ EXTRACT_BEFORE_ARGS } \
${ _DISTDIR } /$$ file ${ EXTRACT_AFTER_ARGS } ) ; \
then \
exit 1; \
fi \
done
2000-08-24 21:29:31 +02:00
. e n d i f
1999-12-09 18:08:31 +01:00
post-configure :
2001-10-16 19:31:51 +02:00
@${ PERL } -pi.orig -e \
's|DefaultDestPath = "staroffice%PRODUCTVERSION";|DefaultDestPath = "${PREFIX}/staroffice%PRODUCTVERSION";|' \
${ WRKSRC } /setup.ins
1999-12-09 18:08:31 +01:00
do-install :
2000-08-24 21:29:31 +02: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
2000-09-23 12:32:30 +02:00
. i f e x i s t s ( $ { L I N U X B A S E } / $ { P R E F I X } )
2001-10-13 00:36:51 +02:00
@${ LN } -fs ${ LINUXBASE } /${ PREFIX } /${ SOVERSION } ${ PREFIX } /${ SOVERSION }
2001-10-15 00:52:18 +02:00
. e n d i f
. i f ! e x i s t s ( $ { L I N U X B A S E } / u s r / X 1 1 R 6 / l i b / l i b X r e n d e r . s o )
2001-10-16 19:31:51 +02:00
@${ LN } -fs ${ LINUXBASE } /usr/X11R6/lib/libXrender.so.1.0 \
${ WRKDIR } /tmp/libXrender.so
2000-08-24 21:29:31 +02:00
. e n d i f
2000-10-08 12:23:48 +02:00
@${ CAT } ${ PKGMESSAGE }
2001-10-16 19:31:51 +02:00
@-SAL_IGNOREXERRORS= 1 PATH = " /bin: ${ PATH } " LD_LIBRARY_PATH = ${ LD_PATH } \
TEMP = ${ TMPDIR } ${ LINUXBASE } /bin/sh -c '${WRKSRC}/setup -net'
2001-10-13 00:36:51 +02:00
@if [ -f ${ PREFIX } /${ SOVERSION } /program/setup ] ; then \
2000-09-07 16:22:48 +02:00
${ ECHO } ; \
2001-10-13 00:36:51 +02:00
${ ECHO } Ignore the error-message. StarOffice6.0 has been installed ; \
2000-09-07 16:22:48 +02:00
${ ECHO } successfully on your system. ; \
${ ECHO } ; \
else \
${ ECHO } ; \
2001-10-13 00:36:51 +02:00
${ ECHO } An error occured during StarOffice6.0 install. Please send a mail with debug-output and ; \
2000-09-07 16:22:48 +02:00
${ ECHO } some information about your FreeBSD-environment to mb@imp.ch. Thanks. ; \
${ ECHO } ; \
${ FALSE } ; \
fi
2001-10-16 19:17:52 +02:00
@${ MKDIR } -p ${ PREFIX } /${ SOVERSION } /share/config/registry/cache/instance/org/openoffice
@${ MKDIR } ${ OPENCONFIG } /Office
@${ MKDIR } ${ OPENCONFIG } /ucb
2001-10-16 19:31:51 +02:00
. f o r f i n C a l c . d a t C h a r t . d a t C o m m o n . d a t D a t a A c c e s s . d a t D r a w . d a t I m p r e s s . d a t \
Java.dat Labels.dat Linguistic.dat Math.dat SFX.dat TypeDetection.dat \
Views.dat Writer.dat WriterWeb.dat
@${ INSTALL_DATA } ${ WRKDIR } /Office/${ f } ${ OPENCONFIG } /Office
. e n d f o r
. f o r f i n C o n f i g u r a t i o n . d a t H i e r a r c h y . d a t S t o r e . d a t
@${ INSTALL_DATA } ${ WRKDIR } /ucb/${ f } ${ OPENCONFIG } /ucb
. e n d f o r
@${ INSTALL_DATA } ${ WRKDIR } /Inet.dat ${ OPENCONFIG }
. f o r f i n S e t u p . d a t U s e r P r o f i l e . d a t
@${ INSTALL_DATA } ${ WRKDIR } /${ f } ${ OPENCONFIG }
. e n d f o r
2000-08-24 21:29:31 +02:00
. e n d i f
1999-12-09 18:08:31 +01:00
2000-08-24 21:29:31 +02:00
post-install :
2001-10-16 19:31:51 +02:00
@${ MV } ${ INSTDB .INS } ${ INSTDB .INS } .orig
2001-10-13 00:36:51 +02:00
@${ SED } -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \
2001-10-16 19:31:51 +02:00
${ INSTDB .INS } .orig > ${ INSTDB .INS }
2001-10-17 22:29:39 +02:00
@${ INSTALL_SCRIPT } ${ PREFIX } /${ SOVERSION } /program/soffice \
2001-10-16 19:31:51 +02:00
${ PREFIX } /${ SOVERSION } /program/spadmin
2001-10-15 00:52:18 +02:00
. i f ! e x i s t s ( $ { L I N U X B A S E } / u s r / X 1 1 R 6 / l i b / l i b X r e n d e r . s o )
@${ LN } -fs ${ LINUXBASE } /usr/X11R6/lib/libXrender.so.1.0 ${ PREFIX } /${ SOVERSION } /program/libXrender.so
. e n d i f
1999-12-09 18:08:31 +01:00
install-user :
2001-10-16 19:17:52 +02:00
@-SAL_IGNOREXERRORS= 1 PATH = " /bin: ${ PATH } " ${ LINUXBASE } /bin/sh -c \
${ PREFIX } /${ SOVERSION } /program/setup
2001-10-16 19:31:51 +02:00
1999-12-15 00:14:36 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >