head	1.71;
access;
symbols
	RELEASE_8_1_0:1.69
	RELEASE_7_3_0:1.69
	RELEASE_8_0_0:1.69
	RELEASE_7_2_0:1.69
	RELEASE_7_1_0:1.68
	RELEASE_6_4_0:1.68
	RELEASE_5_EOL:1.68
	RELEASE_7_0_0:1.67
	RELEASE_6_3_0:1.67
	PRE_XORG_7:1.67
	RELEASE_4_EOL:1.66
	RELEASE_6_2_0:1.66
	RELEASE_6_1_0:1.64
	RELEASE_5_5_0:1.64
	RELEASE_6_0_0:1.63
	RELEASE_5_4_0:1.62
	RELEASE_4_11_0:1.61
	RELEASE_5_3_0:1.58
	RELEASE_4_10_0:1.56
	old_RELEASE_5_2_0:1.53
	old_RELEASE_4_9_0:1.53
	old_RELEASE_5_1_0:1.52
	old_RELEASE_4_8_0:1.52
	old_RELEASE_5_0_0:1.45
	old_RELEASE_4_7_0:1.45
	old_RELEASE_4_6_2:1.42
	old_RELEASE_4_6_1:1.42
	old_RELEASE_4_6_0:1.42
	old_RELEASE_5_0_DP1:1.41
	old_RELEASE_4_5_0:1.39
	old_old_RELEASE_4_4_0:1.29
	old_old_RELEASE_4_3_0:1.26
	old_old_RELEASE_4_2_0:1.22
	old_old_RELEASE_4_1_1:1.19
	old_old_RELEASE_4_1_0:1.13
	old_old_RELEASE_3_5_0:1.13
	old_old_RELEASE_4_0_0:1.10
	old_old_RELEASE_3_4_0:1.4
	old_old_staroffice_5_1a_import:1.1.1.1
	old_old_WIEBE:1.1.1;
locks; strict;
comment	@# @;


1.71
date	2010.09.05.01.06.42;	author dougb;	state dead;
branches;
next	1.70;

1.70
date	2010.08.08.22.59.11;	author dougb;	state Exp;
branches;
next	1.69;

1.69
date	2009.03.19.17.28.41;	author bsam;	state Exp;
branches;
next	1.68;

1.68
date	2008.04.19.17.49.53;	author miwi;	state Exp;
branches;
next	1.67;

1.67
date	2007.04.15.21.06.13;	author gabor;	state Exp;
branches;
next	1.66;

1.66
date	2006.06.12.15.46.43;	author erwin;	state Exp;
branches;
next	1.65;

1.65
date	2006.04.15.06.26.47;	author linimon;	state Exp;
branches;
next	1.64;

1.64
date	2005.10.08.08.49.56;	author lkoeller;	state Exp;
branches;
next	1.63;

1.63
date	2005.06.17.22.59.13;	author netchild;	state Exp;
branches;
next	1.62;

1.62
date	2005.03.01.21.51.35;	author trevor;	state Exp;
branches;
next	1.61;

1.61
date	2004.12.31.18.23.54;	author netchild;	state Exp;
branches;
next	1.60;

1.60
date	2004.11.22.12.33.37;	author mbr;	state Exp;
branches;
next	1.59;

1.59
date	2004.11.22.12.27.09;	author mbr;	state Exp;
branches;
next	1.58;

1.58
date	2004.07.05.13.26.42;	author mbr;	state Exp;
branches;
next	1.57;

1.57
date	2004.05.18.09.44.42;	author mbr;	state Exp;
branches;
next	1.56;

1.56
date	2004.01.22.17.59.26;	author eik;	state Exp;
branches;
next	1.55;

1.55
date	2004.01.09.09.15.38;	author mbr;	state Exp;
branches;
next	1.54;

1.54
date	2004.01.09.09.06.57;	author mbr;	state Exp;
branches;
next	1.53;

1.53
date	2003.07.23.22.18.44;	author mbr;	state Exp;
branches;
next	1.52;

1.52
date	2003.03.07.06.00.37;	author ade;	state Exp;
branches;
next	1.51;

1.51
date	2003.02.22.14.35.22;	author mbr;	state Exp;
branches;
next	1.50;

1.50
date	2003.02.20.00.25.50;	author mbr;	state Exp;
branches;
next	1.49;

1.49
date	2003.02.05.14.04.29;	author mbr;	state Exp;
branches;
next	1.48;

1.48
date	2003.01.22.16.28.32;	author mbr;	state Exp;
branches;
next	1.47;

1.47
date	2003.01.21.23.11.33;	author mbr;	state Exp;
branches;
next	1.46;

1.46
date	2003.01.08.08.36.30;	author obrien;	state Exp;
branches;
next	1.45;

1.45
date	2002.07.17.13.42.32;	author mbr;	state Exp;
branches;
next	1.44;

1.44
date	2002.07.17.13.12.24;	author mbr;	state Exp;
branches;
next	1.43;

1.43
date	2002.05.28.03.22.32;	author obrien;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.22.12.42.35;	author mbr;	state Exp;
branches;
next	1.41;

1.41
date	2002.01.29.16.30.58;	author fenner;	state Exp;
branches;
next	1.40;

1.40
date	2002.01.29.10.34.17;	author knu;	state Exp;
branches;
next	1.39;

1.39
date	2002.01.22.21.14.18;	author mbr;	state Exp;
branches;
next	1.38;

1.38
date	2001.12.24.13.56.00;	author mbr;	state Exp;
branches;
next	1.37;

1.37
date	2001.10.17.20.29.39;	author obrien;	state Exp;
branches;
next	1.36;

1.36
date	2001.10.16.17.31.51;	author obrien;	state Exp;
branches;
next	1.35;

1.35
date	2001.10.16.17.17.52;	author obrien;	state Exp;
branches;
next	1.34;

1.34
date	2001.10.15.22.46.13;	author obrien;	state Exp;
branches;
next	1.33;

1.33
date	2001.10.14.22.52.18;	author alex;	state Exp;
branches;
next	1.32;

1.32
date	2001.10.13.15.23.55;	author alex;	state Exp;
branches;
next	1.31;

1.31
date	2001.10.12.22.36.42;	author demon;	state Exp;
branches;
next	1.30;

1.30
date	2001.10.03.13.01.56;	author jedgar;	state Exp;
branches;
next	1.29;

1.29
date	2001.09.05.20.19.01;	author alex;	state Exp;
branches;
next	1.28;

1.28
date	2001.09.04.22.30.19;	author alex;	state Exp;
branches;
next	1.27;

1.27
date	2001.06.03.16.29.55;	author obrien;	state Exp;
branches;
next	1.26;

1.26
date	2001.03.02.00.50.43;	author jhb;	state Exp;
branches;
next	1.25;

1.25
date	2001.03.02.00.27.40;	author jhb;	state Exp;
branches;
next	1.24;

1.24
date	2000.12.24.14.28.59;	author alex;	state Exp;
branches;
next	1.23;

1.23
date	2000.12.24.14.21.47;	author alex;	state Exp;
branches;
next	1.22;

1.22
date	2000.10.14.20.10.11;	author obrien;	state Exp;
branches;
next	1.21;

1.21
date	2000.10.08.10.19.53;	author asami;	state Exp;
branches;
next	1.20;

1.20
date	2000.09.23.10.32.30;	author jedgar;	state Exp;
branches;
next	1.19;

1.19
date	2000.09.15.16.33.34;	author alex;	state Exp;
branches;
next	1.18;

1.18
date	2000.09.07.14.22.48;	author sheldonh;	state Exp;
branches;
next	1.17;

1.17
date	2000.08.31.10.26.52;	author asmodai;	state Exp;
branches;
next	1.16;

1.16
date	2000.08.28.13.35.26;	author jedgar;	state Exp;
branches;
next	1.15;

1.15
date	2000.08.25.13.47.55;	author jedgar;	state Exp;
branches;
next	1.14;

1.14
date	2000.08.24.19.27.05;	author jedgar;	state Exp;
branches;
next	1.13;

1.13
date	2000.04.17.00.17.28;	author reg;	state Exp;
branches;
next	1.12;

1.12
date	2000.04.14.19.53.25;	author billf;	state Exp;
branches;
next	1.11;

1.11
date	2000.04.14.00.25.41;	author mharo;	state Exp;
branches;
next	1.10;

1.10
date	2000.02.28.23.55.27;	author steve;	state Exp;
branches;
next	1.9;

1.9
date	2000.02.28.08.33.26;	author asami;	state Exp;
branches;
next	1.8;

1.8
date	2000.02.27.15.01.11;	author steve;	state Exp;
branches;
next	1.7;

1.7
date	2000.01.29.21.52.21;	author steve;	state Exp;
branches;
next	1.6;

1.6
date	99.12.31.20.14.55;	author steve;	state Exp;
branches;
next	1.5;

1.5
date	99.12.23.21.13.40;	author steve;	state Exp;
branches;
next	1.4;

1.4
date	99.12.14.23.14.28;	author asami;	state Exp;
branches;
next	1.3;

1.3
date	99.12.10.16.28.35;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	99.12.09.17.13.36;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	99.12.09.17.05.36;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.12.09.17.05.36;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.71
log
@As previously advertised, remove the remaining ports that have no
SHA256 checksum information in the distinfo file.
@
text
@# New ports collection makefile for: StarOffice 7.0 german
# Date created:		08 Januar 2004
# Whom:                 Martin Blapp
#
# $FreeBSD: ports/german/staroffice70/Makefile,v 1.70 2010/08/08 22:59:11 dougb Exp $
#

PORTNAME=	staroffice
PORTVERSION=	7.0
PORTREVISION=	7
CATEGORIES=	german editors linux
MASTER_SITES=	ftp://patches.sun.com/patchroot/all_unsigned/:patch \
		ftp://ftp.sun.co.uk/pub/patches/:patch \
		ftp://ftp.sunsite.auc.dk/disk6/sun-patches/:patch \
		ftp://ftp.math.ohio-state.edu/private/sun/.../:patch \
		ftp://ftp.uga.edu/pub/unix/sun/patches/:patch \
		ftp://ftp.cs.tu-berlin.de/pub/sun/sun-fixes/.../:patch
DISTNAME=	so-7-ga-bin-linux-de.bin
.if !defined(WITH_CDROM)
DISTFILES=      so-7-ga-bin-linux-de.bin 116518-08.tar:patch
.else
DISTFILES=	116518-08.tar:patch
.endif
.if defined(WITH_ADABAS)
DISTFILES+=     soa-7-ga-bin-linux-de.bin
.endif

EXTRACT_ONLY=	116518-08.tar

DEPRECATED=	sources not available
EXPIRATION_DATE=	2010-09-01

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Wordprocessor/dbase/spreadheet/drawing/chart

ONLY_FOR_ARCHS=	i386
NO_CDROM=	'Must be bought and downloaded direct from Sun via www interface'

IS_INTERACTIVE=	yes
NO_BUILD=	yes
USE_LINUX=	yes
USE_LINUX_APPS=	xorglibs
SOVERSION=	${PORTNAME}${PORTVERSION}
WRKSRC=		${WRKDIR}/${SOVERSION}
TMPDIR=		${WRKDIR}/tmp
LD_PATH=	${TMPDIR}:${WRKSRC}:${LINUXBASE}/lib:${LINUXBASE}/usr/lib
INSTDB.INS=	${PREFIX}/${SOVERSION}/program/instdb.ins
SUNSOLVE=	${WRKDIR}/116518-08
ADABAS_DIST=	soa-7-ga-bin-linux-de.bin
PATCH_DIST=	so-7-pp5-bin-linux.bin

.include <bsd.port.pre.mk>

SIZE!=		/bin/df -k . | ${TAIL} -n 1 | ${AWK} '{print $$4}'
LINPROCFS!=	/sbin/mount | ${GREP} linprocfs | ${AWK} '{print $1}'

pre-fetch:
.if ${LINPROCFS}
	@@${ECHO}
	@@${ECHO} Check if linprocfs is running: YES
.else
	@@${ECHO} Check if linprocfs is running: NO
	@@${ECHO}
	@@${ECHO} ERROR:
	@@${ECHO}
	@@${ECHO} Staroffice setup needs a running linprocfs. it seems
	@@${ECHO} that procfs is not mounted on your system.  Please
	@@${ECHO} read the linprocfs\(5\) manpage and ensure the
	@@${ECHO} the following line is in /etc/fstab, and that the
	@@${ECHO} linprocfs file system is mounted:
	@@${ECHO}
	@@${ECHO} linproc /compat/linux/proc linprocfs rw 0 0
	@@${ECHO}
	@@${FALSE}
.endif
.if !exists(${LINUXBASE}/etc/mtab)
	@@${ECHO}
	@@${ECHO} ERROR:
	@@${ECHO}
	@@${ECHO} The file ${LINUXBASE}/etc/mtab is missing.
	@@${ECHO} Staroffice needs this file else some functions
	@@${ECHO} are not working. You can create it with
	@@${ECHO}
	@@${ECHO} touch ${LINUXBASE}/etc/mtab
	@@${ECHO}
	@@${FALSE}
.else
	@@${ECHO} Check if ${LINUXBASE}/etc/mtab exists: YES
.endif
.if ${SIZE} < 400000
	@@${ECHO}
	@@${ECHO} ERROR:
	@@${ECHO}
	@@${ECHO} There is only ${SIZE}K free disk space in
	@@${ECHO} ${WRKDIRPREFIX}. To unpack Staroffice needs
	@@${ECHO} at least 400000K free diskspace.
	@@${FALSE}
.endif
.if !defined(WITH_ADABAS)
	@@${ECHO}
	@@${ECHO} If you like to install staroffice with ADABAS database support,
	@@${ECHO} cancel this installation now and start make again with
	@@${ECHO} WITH_ADABAS=YES.
	@@${ECHO}
.endif
.if defined(WITH_ADABAS)
	@@${ECHO}
	@@${ECHO} This option is currently broken. The enduser installer fails with this
	@@${ECHO} option and tries to copy missing files.
	@@${ECHO}
	@@${FALSE}
.endif
.if defined(WITH_CDROM)
DLTEST=116518-08.tar
.else
.if exists(/cdrom/linux/office7/setup)
	@@${ECHO}
	@@${ECHO} It seems that you have a Sun StarOffice 7.0 CDROM
	@@${ECHO} mounted on ${CD_MOUNTPT}.  If you wish to install from
	@@${ECHO} this CD-ROM, please run
	@@${ECHO}
	@@${ECHO}        make WITH_CDROM=YES
	@@${ECHO}
	@@${ECHO} Otherwise please unmount the CD-ROM.
	@@${ECHO}
	@@${FALSE}
.endif
DLTEST=${DISTNAME}
.endif
.if !exists(${DISTDIR}/${DLTEST})
IGNORE="Please manually download ${DLTEST} from http://www.sun.com/staroffice.  Put ${DLTEST} into the directory ${DISTDIR} and run make again."
.endif

post-extract:
.if !defined(DISPLAY) || ${DISPLAY} == ""
	@@ ${ECHO}
	@@ ${ECHO} Can\'t open display:
	@@ ${ECHO} Please check your DISPLAY variable.
	@@ ${ECHO}
	@@ ${FALSE}
.else
	@@${MKDIR} ${WRKSRC}
.if defined(WITH_CDROM)
	@@ln -sf /cdrom/linux/office7/* ${WRKSRC}
	@@${MKDIR} ${TMPDIR}
.else
	@@${MKDIR} ${TMPDIR}
	@@${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC}
	@@${CHMOD} 755 ${WRKSRC}/${DISTNAME}
	@@cd ${WRKSRC}
	@@SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC}
	@@${RM} ${WRKSRC}/${DISTNAME}
.endif
.if defined(WITH_ADABAS)
	@@${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC}
	@@${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST}
.endif
.endif

post-configure:
	@@${SED} -i .orig -e \
	    's|DefaultDestPath = "staroffice%PRODUCTVERSION";|DefaultDestPath = "${PREFIX}/staroffice%PRODUCTVERSION";|' \
	    ${WRKSRC}/setup.ins

pre-install:
	@@${CP} ${FILESDIR}/setup.resp ${WRKSRC}
	@@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
                        -e 's#%%SOVERSION%%#${SOVERSION}#g' \
                        ${WRKSRC}/setup.resp

do-install:
.if !defined(DISPLAY) || ${DISPLAY} == ""
	@@ ${ECHO}
	@@ ${ECHO} Can\'t open display:
	@@ ${ECHO} Please check your DISPLAY variable.
	@@ ${ECHO}
	@@ ${FALSE}
.else
.if exists(${LINUXBASE}/${PREFIX}/${SOVERSION})
	@@${LN} -fs ${LINUXBASE}/${PREFIX}/${SOVERSION} ${PREFIX}/${SOVERSION}
.else
	@@${MKDIR} -p ${PREFIX}/${SOVERSION}
.endif
	@@${ECHO} ;
	@@${ECHO_MSG} "===>   STEP 1: Main Setup ${PKGNAME}"
	@@${ECHO} ;
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net -r:${WRKSRC}/setup.resp'
	@@if [ -f ${PREFIX}/${SOVERSION}/program/setup ]; then \
		${ECHO} ; \
		${ECHO} Ignore the error message. StarOffice7.0 has been installed ; \
		${ECHO} successfully on your system. ; \
		${ECHO} ; \
	else \
		${ECHO} ; \
		${ECHO} An error occured during StarOffice7.0 install. Please send a mail with debug-output and ; \
		${ECHO} some information about your FreeBSD-environment to mb@@imp.ch. Thanks. ; \
		${ECHO} ; \
		${FALSE} ; \
	fi
	@@${ECHO} ;
	@@${ECHO_MSG} "===>   STEP 2: Choosing now a workstation installation for user root"
	@@${ECHO} ;
	@@${ECHO} This step is needed to be able to install the service pack. ;
	@@${ECHO} ;
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so)
	@@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 ${PREFIX}/${SOVERSION}/program/libXrender.so
.endif
	@@${SED} -i .orig -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \
	${INSTDB.INS}
.endif
.if defined(WITH_ADABAS)
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/${ADABAS_DIST} -r:${WRKSRC}/setup.resp'
.endif
	@@${ECHO} ;
	@@${ECHO_MSG} "===>   STEP 3: Applying sunsolve patches for ${PKGNAME}"
	@@${ECHO} ;
	@@make install-patch
	@@${CAT} ${PKGMESSAGE}

post-install:
	@@${ECHO_MSG} "===>  Add wrapper scripts";
	@@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/wrapper \
	   > ${WRKDIR}/staroffice7
	 @@${INSTALL_SCRIPT} ${WRKDIR}/staroffice7 ${PREFIX}/bin/staroffice7
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-sagenda
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-scalc
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-sdraw
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-setup
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-sfax
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-simpress
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-spadmin
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-sweb
	@@${LN} -fs ${PREFIX}/bin/staroffice7 ${PREFIX}/bin/staroffice-swriter
	@@${ECHO} StarOffice7.0 has been installed successfully.  In order to use
	@@${ECHO} it, execute ${PREFIX}/bin/staroffice7.
	@@${ECHO}
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".

install-patch:
	@@${CP} ${FILESDIR}/patchsetup.resp ${WRKSRC}
	@@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
                        -e 's#%%SOVERSION%%#${SOVERSION}#g' \
                        ${WRKSRC}/patchsetup.resp
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c 'umask 022 && \
		${WRKSRC}/../116518-08/${PATCH_DIST} -patch:${PREFIX}/${SOVERSION}\
		-r:${WRKSRC}/patchsetup.resp'

install-update:
	@@make extract
	@@make install-patch

.include <bsd.port.post.mk>
@


1.70
log
@Deprecate ports that have been unfetchable for so long that they
do not have SIZE and/or SHA256 in their distinfo files.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.69
log
@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)
@
text
@d30 3
@


1.68
log
@- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
@
text
@d39 1
a39 1
USE_XLIB=	yes
@


1.67
log
@- Remove FreeBSD 4.X support from unmaintained ports in categories starting
  with letter f-h
@
text
@d39 1
a39 1
USE_X_PREFIX=	yes
@


1.66
log
@Rename the USE_CDROM knob to WITH_CDROM. USE_* should only be
defined by the ports infrastructure and ports should define WITH_*
@
text
@a86 13
.if ${OSVERSION} < 450000
	@@${ECHO}
	@@${ECHO} ERROR:
	@@${ECHO}
	@@${ECHO} OS-VERSION ${OSVERSION}
	@@${ECHO}
	@@${ECHO} Staroffice depends on a scripting fix for
	@@${ECHO} /usr/src/sys/i386/linux/linux_sysvec.c
	@@${ECHO}
	@@${ECHO} Please upgrade to FreeBSD 4.5 or later.
	@@${ECHO}
	@@${FALSE}
.endif
@


1.65
log
@Reset mbr due to no answer to an email inquiry about his status, and
maintainer-timeouts.

Hat:	portmgr
@
text
@d19 1
a19 1
.if !defined(USE_CDROM)
d123 1
a123 1
.if defined(USE_CDROM)
d132 1
a132 1
	@@${ECHO}        make USE_CDROM=YES
d153 1
a153 1
.if defined(USE_CDROM)
@


1.64
log
@o) Update to respect new Patch from SUN (Product Update 5)
   (Contact port owner for admission)
@
text
@d30 1
a30 1
MAINTAINER=	mbr@@FreeBSD.org
@


1.63
log
@Mega-patch to cleanup the ports infrastructure regarding our linux bits:
  - USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
    tools to strip binaries anymore, so it's not neccesary anymore to override
    STRIP and STRIP_CMD.
  - USE_LINUX_PREFIX implies NO_MTREE now.
  - In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
    instead upon the native FreeBSD libraries.
  - The variable LINUX_BASE_PORT contains a string which is suitable as an
    item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
    default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
    instead of a hardcoded reference.
  - Change all ports to comply to the "new world order".
  - The Ports Collection now allows to override the default linux_base port.
    Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
    ${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
    ${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
  - If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
    port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
    be marked as IGNORE. [1]
  - Readd USE_LINUX knobs into several ports and make several uses of a
    conditional dependency ("USE_LINUX?=") into an unconditional one
    ("USE_LINUX=") which where removed/changed by Trevor to allow the use of
    alternative linux_base ports. While this is a nice goal, the implementation
    resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
    in this commit is supposed to fix the problem while keeping the feature.
    Basicaly this includes a backout of Trevor's commit, to prevent confusion
    I mention it here explicitely.
  - Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
    Chase dependencies for this.
  - Changes to make linux_devtools installable on amd64, remove some stray
    device nodes (they don't work on recent OS versions and aren't really
    needed).
  - Make linux_base-8 PREFIX clean and remove some stray device nodes.
    Additionally tell a little bit more about how to setup NIS/YP [2].
  - Update the PGSQL dependency in the linux-opengroupware port to a recent
    version (the old one isn't available anymore), I don't know if this
    works (at least it isn't more broken than before).
  - Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
    ports, the former path exists already and gets populated by other
    packages too (PREFIX=LINUXPREFIX!).
  - Fix some obvious (non-linuxolator) bugs in some linux ports while being
    there.
  - Bump PORTREVISION where neccesary.

Requested by:	portmgr (linimon) [1]
Submittted by:	Gerrit Kuehn <gerrit_huehn@@gruft.fido.de [2]
Approved by:	portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on:	ports cluster (kris)
Reviewed by:	silence on emulation@@
Superseedes PR:	69997

Maintainer approval from:
	chris@@chrisburkert.de
	cracauer@@cons.org
	des
	girgen
	jamie@@bishopston.net
	mezz
	mi
	nivit@@users.sf.net
        pat
	simond@@irrelevant.org
	riggs@@rrr.de
	Udo.Schweigert@@Siemens.com
@
text
@d10 1
a10 1
PORTREVISION=	6
d20 1
a20 1
DISTFILES=      so-7-ga-bin-linux-de.bin 116518-06.tar:patch
d22 1
a22 1
DISTFILES=	116518-06.tar:patch
d28 1
a28 1
EXTRACT_ONLY=	116518-06.tar
d45 1
a45 1
SUNSOLVE=	${WRKDIR}/116518-06
d47 1
a47 1
PATCH_DIST=	so-7-pp4-bin-linux.bin
d124 1
a124 1
DLTEST=116518-06.tar
d130 1
a130 1
	@@${ECHO} this CD-ROM, please run 
d248 1
a248 1
	@@${ECHO} 
d258 1
a258 1
		${WRKSRC}/../116518-06/${PATCH_DIST} -patch:${PREFIX}/${SOVERSION}\
@


1.62
log
@Respect the user's USE_LINUX setting.
@
text
@d10 1
a10 1
PORTREVISION=	5
a32 2
RUN_DEPENDS=	${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-XFree86-libs

d38 2
d249 1
@


1.61
log
@Say hello to the linux mega patch, it consolidates our linux bits a
little bit and allows to proceed to a more recent linux_base from
a stable (read as: the major bugs should be ironed out or identified
and most linux ports build just fine) source.

It also allows to ship 4.11 with a working linuxolator (the EOLed
linux_base is marked forbidden because of a security hole).

This is a major update, please read UPDATING (and CHANGES if you
develop linux ports).

Changes:
 - change the default linux_base from v7 to v8
 - add a newer freetype to linux_base-8 for nicer fonts display [1]
 - don't let cpio use hardlinks in the linux_base-8 port to quiet some
   warnings in some cases [2]
 - fix a cut&past error in the linux_base-8 pkg-install script [3]
 - convert the binary knob "USE_LINUX" to a version specifier, e.g.
   USE_LINUX=<value> specifies a dependency upon
   emulators/linux_base-<value>, exceptions are a value of "7" (which
   does what you want and adds a dependency to linux_base) and any
   value without a corresponding port in
   PORTSDIR/emulators/linux_base-<value> (which adds a dependency to
   the default linux_base)
 - don't implicitly add USE_LINUX with the USE_LINUX_PREFIX knob,
   this allows us to use the USE_LINUX_PREFIX knob for linux_base and
   paves the way for splitting up future linux base ports into
   individual pieces
 - remove RESTRICTED from some GPL licensed ports, even when we only
   distribute binaries, we get them from official linux sites, so
   anyone can grab them there if he needs to
 - add a dependency upon the linux X11 bits where necessary (based upon
   guesswork)
 - don't use USE_X_PREFIX in some linux ports since it adds a dependency
   to the FreeBSD X11 libs, as a workaround use PREFIX?= (the clean
   solution would be to remove the implicit USE_XLIB from USE_X_PREFIX)
 - bump the portrevision of the linux ports ("better safe than sorry"
   algorithm)
 - pass maintainership of the important linux infrastructure to a
   mailinglist, hijack freebsd-emulation@@ for this purpose (if somebody
   doesn't like this: tell us your bikeshed color at freebsd-emulation@@,
   my color would be "linuxolator@@" in case someone cares...)
 - add a pkg-install script for linux-fontconfig, but don't use it;
   everything should work without it (the FreeBSD fc-cache program should
   do all the work), but in case we need it we just need to decomment the
   pkg-install part in the Makefile
 - fix some dependencies
 - fix some bugs
 - add some static plists
 - unbreak the ports with dependecies to more than one linux_base

This also fixes some ports which are marked BROKEN because of dependencies
to v7 and v8 of linux_base at the same time.

Known bugs:
 - the linux-mesa and linux-devtools ports install libGL*.so symlinks
 - some "minor" plist bugs (e.g. ld.so.{conf,cache} are modified by
   the linux X11 port, so linx_Base-8 moans at deinstall time)

Future work (interested souls should coordinate with freebsd-emulation@@):
 - add some kind of USE_LINUX_X11 knob to streamline the X11 dependencies,
   or modify the behavior of USE_XLIB in the USE_LINUX case
   AFAIK trevor has some patches.
 - make USE_XLIB and USE_X_PREFIX orthogonal to be able to get rid of
   the PREFIX?= workaround in some linux ports
   Should be discussed/coordinated on/with x11@@.
 - move the RPM bits from x11-toolkits/linux-gtk/Makefile to PORTSDIR/Mk/
 - update to a more recent linux base

PR:			69997, 70539 (and maybe others)
Discussed with/on:	java@@, x11@@, trevor, portmgr
Tested by:		mezz, portmgr, pointyhat
RPM hunted down by:	Joseph Gelinas <scirocco@@tasam.com> [1]
Requested by:		portmgr [2]
Submitted by:		kris [3]
Approved by:		portmgr
@
text
@a37 1
USE_LINUX=	yes
@


1.60
log
@Fix missed path, remove USE_ZIP directive.
@
text
@d10 1
a10 1
PORTREVISION=	4
d33 2
@


1.59
log
@Upgrade to staroffice 7 product update IV.
@
text
@a27 1
USE_ZIP=	YES
d44 1
a44 1
SUNSOLVE=	${WRKDIR}/112887-04
@


1.58
log
@Upgrade to Product Update 3.
@
text
@d10 1
a10 1
PORTREVISION=	3
d12 2
a13 1
MASTER_SITES=	ftp://ftp.sun.co.uk/pub/patches/:patch \
d20 1
a20 1
DISTFILES=      so-7-ga-bin-linux-de.bin 116518-04.zip:patch
d22 1
a22 1
DISTFILES=	116518-04.zip:patch
d29 1
a29 1
EXTRACT_ONLY=	116518-04.zip
d47 1
a47 1
PATCH_DIST=	so-7-pp3-bin-linux.bin
d124 1
a124 1
DLTEST=116518-04.zip
d257 1
a257 1
		${WRKSRC}/../116518-04/${PATCH_DIST} -patch:${PREFIX}/${SOVERSION}\
@


1.57
log
@Upgrade to so-7-pp2 (product update 2)
@
text
@d10 1
a10 1
PORTREVISION=	1
d19 1
a19 1
DISTFILES=      so-7-ga-bin-linux-de.bin 116518-03.tar:patch
d21 1
a21 1
DISTFILES=	116518-03.tar:patch
d27 2
a28 1
EXTRACT_ONLY=	116518-03.tar
d46 1
a46 1
PATCH_DIST=	so-7-pp2-bin-linux.bin
d123 1
a123 1
DLTEST=116518-03.tar
d256 1
a256 1
		${WRKSRC}/../116518-03/${PATCH_DIST} -patch:${PREFIX}/${SOVERSION}\
@


1.56
log
@- fix PKGORIGIN

since ito makes using package tools hard, is marked as FATAL by
portlint and otherwise doesn't affect the port, fix it silently.

Approved by:	marcus (mentor)
@
text
@d10 1
d19 1
a19 1
DISTFILES=      so-7-ga-bin-linux-de.bin 116518-02.tar:patch
d21 1
a21 1
DISTFILES=	116518-02.tar:patch
d27 1
a27 1
EXTRACT_ONLY=	116518-02.tar
d45 1
a45 1
PATCH_DIST=	so-7-pp1-bin-linux.bin
d122 1
a122 1
DLTEST=116518-02.tar
d255 1
a255 1
		${WRKSRC}/../116518-02/${PATCH_DIST} -patch:${PREFIX}/${SOVERSION}\
@


1.55
log
@Fix Makefile comment in port.
@
text
@d10 1
a10 1
CATEGORIES=	editors linux
@


1.54
log
@Add german port of staroffice7.0
@
text
@d1 2
a2 2
# New ports collection makefile for: StarOffice 6.0
# Date created:		03 October 2001
@


1.53
log
@Upgrade to use new patchset 112887-04.tar
@
text
@d9 1
a9 2
PORTVERSION=	6.0
PORTREVISION=	2
d11 2
a12 1
MASTER_SITES=	ftp://ftp.sunsite.auc.dk/disk6/sun-patches/:patch \
d16 1
a16 1
DISTNAME=	so-6_0-ga-bin-linux-en.bin
d18 3
a20 1
DISTFILES=      so-6_0-ga-bin-linux-en.bin 112887-04.tar:patch
d23 1
a23 1
DISTFILES+=	soa-6_0-ga-bin-linux-en.bin
d26 1
a26 1
EXTRACT_ONLY=	112887-04.tar
d43 2
a44 1
ADABAS_DIST=	soa-6_0-ga-bin-linux-en.bin
d113 7
d121 1
a121 1
DLTEST=112887-04.tar
d123 1
a123 1
.if exists(/cdrom/linux/office60/setup)
d125 1
a125 1
	@@${ECHO} It seems that you have a Sun StarOffice 6.0 CDROM
d129 1
a129 1
	@@${ECHO}        make -USE_CDROM
d151 2
a152 1
	@@ln -sf /cdrom/linux/office60/* ${WRKSRC}
d172 6
d186 1
a186 1
.if exists(${LINUXBASE}/${PREFIX})
d188 2
a189 6
.endif
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so)
.if exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0)
	@@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 \
		${WRKDIR}/tmp/libXrender.so
.endif
d195 1
a195 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
d198 1
a198 1
		${ECHO} Ignore the error message. StarOffice6.0 has been installed ; \
d203 1
a203 1
		${ECHO} An error occured during StarOffice6.0 install. Please send a mail with debug-output and ; \
d221 1
a221 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/${ADABAS_DIST}'
d232 13
a244 13
	   > ${WRKDIR}/staroffice6
	 @@${INSTALL_SCRIPT} ${WRKDIR}/staroffice6 ${PREFIX}/bin/staroffice6
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-sagenda
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-scalc
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-sdraw
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-setup
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-sfax
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-simpress
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-spadmin
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-sweb
	@@${LN} -fs ${PREFIX}/bin/staroffice6 ${PREFIX}/bin/staroffice-swriter
	@@${ECHO} StarOffice6.0 has been installed successfully.  In order to use
	@@${ECHO} it, execute ${PREFIX}/bin/staroffice6.
d248 4
d253 3
a255 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-04/so-6_0-pp2-bin-linux.bin -patch:${PREFIX}/staroffice6.0'
@


1.52
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d18 1
a18 1
DISTFILES=      so-6_0-ga-bin-linux-en.bin 112887-03.tar:patch
d24 1
a24 1
EXTRACT_ONLY=	112887-03.tar
d40 1
a40 1
SUNSOLVE=	${WRKDIR}/112887-03
d111 1
a111 1
DLTEST=112887-03.tar
d236 1
a236 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-03/so-6_0-pp2-bin-linux.bin -patch:${PREFIX}/staroffice6.0'
@


1.51
log
@Do not fail if libXrender.so doesn't exist at all.

Submitted by:	"Karel J. Bosschaart" <karelj@@wop21.wop.wtb.tue.nl>
@
text
@d27 1
@


1.50
log
@Make some installation notes more clear. Inspired by
PR 42978.
@
text
@d172 1
d175 1
@


1.49
log
@Fetch the sunsolve patch for inofficial distsites, we have the
md5 checksums to be sure it's really the correct file.

Add wrappers like the ones openoffice port has. While we are here,
remove the install-user target, we don't need it anymore.

Fix the patch installation, it does not need to check if the path
"/compat/linux/$PREFIX/staroffice60" does exist.

Pointed out by:		rwatson
@
text
@d52 1
d56 5
a60 3
	@@${ECHO} Staroffice setup needs a running linprocfs, which is not
	@@${ECHO} activated on your system. Please read the linprocfs\(5\)
	@@${ECHO} manpage and add the following line to /etc/fstab:
a87 1
	@@${ECHO} \(revision 1.55.2.1 or higher\)
d89 1
a89 1
	@@${ECHO} Please upgrade to FreeBSD 4.5
d112 12
d182 1
a182 1
		${ECHO} Ignore the error-message. StarOffice6.0 has been installed ; \
d227 3
@


1.48
log
@Remove obsolete line
@
text
@d10 1
a10 1
PORTREVISION=	1
d12 4
a15 1
MASTER_SITES=
d18 1
a18 1
DISTFILES=      so-6_0-ga-bin-linux-en.bin 112887-03.tar
d29 1
a29 1
NO_CDROM=	'Must be downloaded direct from Sun via www interface'
a187 1
	@@make install-user
d199 14
a212 3
install-user:
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" ${LINUXBASE}/bin/sh -c \
		${PREFIX}/${SOVERSION}/program/setup
d216 1
a216 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-03/so-6_0-pp1-bin-linux.bin'
a219 1
	@@make install-user
@


1.47
log
@Update StarOffice6.0 to patchlevel 3
Add basic CDROM install support

Submitted by:		obrien
@
text
@a184 1
	    ${INSTDB.INS}.orig > ${INSTDB.INS}
@


1.46
log
@Use tabs.
@
text
@d14 3
a16 1
DISTFILES=	so-6_0-ga-bin-linux-en.bin 112887-02.tar.Z
d21 1
a21 1
EXTRACT_ONLY=	112887-02.tar.Z
d36 1
a36 1
SUNSOLVE=	${WRKDIR}/112887-02
d104 7
a110 2
.if !exists(${DISTDIR}/${DISTNAME})
IGNORE="Please manually download ${DISTNAME} from http://www.sun.com/staroffice.  Put ${DISTNAME} into the directory ${DISTDIR} and run make again."
d122 3
d131 1
d139 1
a139 1
	@@${PERL} -pi.orig -e \
d183 2
a184 2
	@@${MV} ${INSTDB.INS} ${INSTDB.INS}.orig
	@@${SED} -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \
d204 1
a204 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-02/so-6_0-pp1-bin-linux.bin'
@


1.45
log
@Add install-update target to update a installed version with
the service pack.
@
text
@d14 1
a14 1
DISTFILES=      so-6_0-ga-bin-linux-en.bin 112887-02.tar.Z
d16 1
a16 1
DISTFILES+=     soa-6_0-ga-bin-linux-en.bin
@


1.44
log
@Upgrade to Service Pack I
@
text
@d195 5
@


1.43
log
@Explict dependancy on version 7 of linux_base is not needed anymore.
The linux_base port is now at RH version 7.
@
text
@d10 1
d14 1
a14 1
DISTFILES=      so-6_0-ga-bin-linux-en.bin
d19 2
d34 1
d106 1
a106 1
do-extract:
d147 3
a149 1
	@@${CAT} ${PKGMESSAGE}
d164 12
d181 5
a185 8

post-install:
	@@${MV} ${INSTDB.INS} ${INSTDB.INS}.orig
	@@${SED} -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \
	    ${INSTDB.INS}.orig > ${INSTDB.INS}
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so)
	@@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 ${PREFIX}/${SOVERSION}/program/libXrender.so
.endif
d190 4
@


1.42
log
@Update to 6.0 final
@
text
@a19 3
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

d22 2
@


1.41
log
@Don't try to use ${AWK}, ${GREP} and ${TAIL} in != before including
 bsd.port.pre.mk .

Submitted by:	distfile survey
@
text
@d11 6
a16 7
MASTER_SITES=	${MASTER_SITE_LOCAL} \
		ftp://ftp.teleport.ch/FreeBSD/patches/
MASTER_SITE_SUBDIR=	obrien
DISTNAME=	so-6_0-beta-bin-linux-en.bin
DISTFILES=	so60dat-20011016.tar.bz2
EXTRACT_SUFX=
EXTRACT_ONLY=	so60dat-20011016.tar.bz2
a22 2
BROKEN=		"SUN beta program for 6.0 has been closed. Distfile is not available anymore"
USE_BZIP2=	yes
a27 1
KDEHOME=	.kde
d32 1
a32 1
OPENCONFIG=	${PREFIX}/${SOVERSION}/share/config/registry/cache/instance/org/openoffice
d44 2
a45 1
	@@${ECHO} -----------------------------------------------------------
a52 1
	@@${ECHO} -----------------------------------------------------------
d55 17
a71 1
.if ${OSVERSION} < 410000
d79 1
a79 1
	@@${ECHO} Please upgrade to FreeBSD 4.1
d85 2
d92 9
a100 2
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
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."
d118 4
a121 8
	@@cd ../../
	@@for file in ${EXTRACT_ONLY}; do \
		if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
		    ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS}) ; \
		then \
			exit 1; \
		fi \
	done
d146 1
a146 1
		TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup -net'
d159 4
a162 15
	@@${MKDIR} -p ${PREFIX}/${SOVERSION}/share/config/registry/cache/instance/org/openoffice
	@@${MKDIR} ${OPENCONFIG}/Office
	@@${MKDIR} ${OPENCONFIG}/ucb
.for f in Calc.dat Chart.dat Common.dat DataAccess.dat Draw.dat Impress.dat \
    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
.endfor
.for f in Configuration.dat Hierarchy.dat Store.dat
	@@${INSTALL_DATA} ${WRKDIR}/ucb/${f} ${OPENCONFIG}/ucb
.endfor
	@@${INSTALL_DATA} ${WRKDIR}/Inet.dat ${OPENCONFIG}
.for f in Setup.dat UserProfile.dat
	@@${INSTALL_DATA} ${WRKDIR}/${f} ${OPENCONFIG}
.endfor
a168 2
	@@${INSTALL_SCRIPT} ${PREFIX}/${SOVERSION}/program/soffice \
		${PREFIX}/${SOVERSION}/program/spadmin
@


1.40
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
@
text
@d38 2
a41 2

.include <bsd.port.pre.mk>
@


1.39
log
@Mark port broken (until April when 6.0 get's released :-)

Submitted by:		Joachim Strmbergson <watchman@@ludd.luth.se>
@
text
@d38 2
a39 2
SIZE!=		/bin/df -k . | /usr/bin/tail -n 1 | /usr/bin/awk '{print $$4}'
LINPROCFS!=	/sbin/mount | /usr/bin/grep linprocfs | /usr/bin/awk '{print $1}'
@


1.38
log
@Maintainer is now a committer

Approved by:	demon
@
text
@d24 1
@


1.37
log
@Opps, this is a bourne script, not binary.
@
text
@d19 1
a19 1
MAINTAINER=	mb@@imp.ch
@


1.36
log
@Clean up the Makefile some by using .for and reducing wrapped lines.
@
text
@d162 1
a162 1
	@@${INSTALL_PROGRAM} ${PREFIX}/${SOVERSION}/program/soffice \
@


1.35
log
@Farther tweaks to fix the coredumping during setup.

Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d107 3
a109 1
	@@${PERL} -pi.orig -e 's|DefaultDestPath = "staroffice%PRODUCTVERSION";|DefaultDestPath = "${PREFIX}/staroffice%PRODUCTVERSION";|' ${WRKSRC}/setup.ins
d123 2
a124 1
	@@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 ${WRKDIR}/tmp/libXrender.so
d127 2
a128 1
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup -net'
d144 12
a155 21
	@@${CP} ${WRKDIR}/Office/SFX.dat ${OPENCONFIG}/Office/SFX.dat
	@@${CP} ${WRKDIR}/Office/Labels.dat ${OPENCONFIG}/Office/Labels.dat
	@@${CP} ${WRKDIR}/Office/Impress.dat ${OPENCONFIG}/Office/Impress.dat
	@@${CP} ${WRKDIR}/Office/Draw.dat ${OPENCONFIG}/Office/Draw.dat
	@@${CP} ${WRKDIR}/Office/Java.dat ${OPENCONFIG}/Office/Java.dat
	@@${CP} ${WRKDIR}/Office/Chart.dat ${OPENCONFIG}/Office/Chart.dat
	@@${CP} ${WRKDIR}/Office/Calc.dat ${OPENCONFIG}/Office/Calc.dat
	@@${CP} ${WRKDIR}/Office/Linguistic.dat ${OPENCONFIG}/Office/Linguistic.dat
	@@${CP} ${WRKDIR}/Office/Writer.dat ${OPENCONFIG}/Office/Writer.dat
	@@${CP} ${WRKDIR}/Office/Common.dat ${OPENCONFIG}/Office/Common.dat
	@@${CP} ${WRKDIR}/Office/TypeDetection.dat ${OPENCONFIG}/Office/TypeDetection.dat
	@@${CP} ${WRKDIR}/Office/DataAccess.dat ${OPENCONFIG}/Office/DataAccess.dat
	@@${CP} ${WRKDIR}/Office/Math.dat ${OPENCONFIG}/Office/Math.dat
	@@${CP} ${WRKDIR}/Office/Views.dat ${OPENCONFIG}/Office/Views.dat
	@@${CP} ${WRKDIR}/Office/WriterWeb.dat ${OPENCONFIG}/Office/WriterWeb.dat
	@@${CP} ${WRKDIR}/ucb/Configuration.dat ${OPENCONFIG}/ucb/Configuration.dat
	@@${CP} ${WRKDIR}/ucb/Store.dat ${OPENCONFIG}/ucb/Store.dat
	@@${CP} ${WRKDIR}/ucb/Hierarchy.dat ${OPENCONFIG}/ucb/Hierarchy.dat
	@@${CP} ${WRKDIR}/Inet.dat ${OPENCONFIG}/Inet.dat
	@@${CP} ${WRKDIR}/UserProfile.dat ${OPENCONFIG}/UserProfile.dat
	@@${CP} ${WRKDIR}/Setup.dat ${OPENCONFIG}/Setup.dat
d159 1
a159 1
	@@${CP} ${INSTDB.INS} ${INSTDB.INS}.orig
d161 3
a163 3
	    < ${INSTDB.INS}.orig > ${INSTDB.INS}
	@@${CP} ${PREFIX}/${SOVERSION}/program/soffice ${PREFIX}/${SOVERSION}/program/spadmin
	@@${CHMOD} 755 ${PREFIX}/${SOVERSION}/program/spadmin
d171 1
@


1.34
log
@We can more easily just echo the single line that is in sversionrc
than copy & sed it.
@
text
@d11 3
a13 1
MASTER_SITES=
d15 1
d17 1
a17 1
EXTRACT_ONLY=
d24 1
d35 1
d37 1
a37 1
SIZE!=		/bin/df -k ${WRKDIRPREFIX} | /usr/bin/tail -n 1 | /usr/bin/awk '{print $$4}'
d137 24
d174 2
a175 223
.if !exists(/home/mb/staroffice6.0/setup)
.if !exists(${HOME}/.sversionrc)
	@@${ECHO} "[Versions]" >> "${HOME}/.sversionrc"
.endif
	@@${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/autotext"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/temp"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/autocorr"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/backup"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/basic"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry/instance"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry/instance/org"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry/instance/org/openoffice"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry/instance/org/openoffice/Office"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/config/registry/instance/org/openoffice/ucb"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/template"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/database"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/database/biblio"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/gallery"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/wordbook"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/store"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/plugin"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/psprint"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/psprint/driver"
	@@${MKDIR} "${HOME}/${SOVERSION}/user/psprint/fontmetric"
	@@${MKDIR} "${HOME}/${SOVERSION}/share/autocorr"
	@@${MKDIR} "${HOME}/${SOVERSION}/share/plugin"
	@@${MKDIR} "${HOME}/${SOVERSION}/share/cde/information and setup"
	@@${MKDIR} "${HOME}/${SOVERSION}/share/cde/auto pilots"
	@@${MKDIR} "${HOME}/${SOVERSION}/share/cde/other"
	@@${SED} -e 's|%%HOME%%|${HOME}|' -e 's|%%PREFIX%%|${PREFIX}|' \
		< "${FILESDIR}/Setup.xml" > "${HOME}/${SOVERSION}/user/config/registry/instance/org/openoffice/Setup.xml"
	@@${SED} -e 's|%%HOME%%|${HOME}|' -e 's|%%PREFIX%%|${PREFIX}|' \
		< "${FILESDIR}/UserProfile.xml" > "${HOME}/${SOVERSION}/user/config/registry/instance/org/openoffice/UserProfile.xml"
	@@${SED} -e 's|%%HOME%%|${HOME}|' -e 's|%%PREFIX%%|${PREFIX}|' \
		< "${FILESDIR}/instdb.ins.patch" > "${HOME}/${SOVERSION}/instdb.ins.patch"
	@@${CP} ${INSTDB.INS} ${HOME}/${SOVERSION}/
	@@${CP} "${FILESDIR}/javarc" ${HOME}/${SOVERSION}/user/config/
	@@${PATCH} -s ${HOME}/${SOVERSION}/instdb.ins < ${HOME}/${SOVERSION}/instdb.ins.patch
	@@${RM} "${HOME}/${SOVERSION}/instdb.ins.patch"
	@@${RM} "${HOME}/${SOVERSION}/instdb.ins.orig"
	@@${CP} "${FILESDIR}/sregistryrc" "${HOME}/${SOVERSION}/user/"
	@@${CP} "${PREFIX}/${SOVERSION}/user/autotext/english/mytexts.bau" \
		"${HOME}/${SOVERSION}/user/autotext/mytexts.bau"
	@@${CP} "${PREFIX}/${SOVERSION}/user/database/biblio/biblio.dbf" \
		"${HOME}/${SOVERSION}/user/database/biblio/biblio.dbf"
	@@${CP} "${PREFIX}/${SOVERSION}/user/gallery/sg100.sdv" \
		"${HOME}/${SOVERSION}/user/gallery/sg100.sdv"
	@@${CP} "${PREFIX}/${SOVERSION}/user/gallery/sg100.thm" \
		"${HOME}/${SOVERSION}/user/gallery/sg100.thm"
	@@${CP} "${PREFIX}/${SOVERSION}/user/gallery/sg30.sdv" \
		"${HOME}/${SOVERSION}/user/gallery/sg30.sdv"
	@@${CP} "${PREFIX}/${SOVERSION}/user/gallery/sg30.thm" \
		"${HOME}/${SOVERSION}/user/gallery/sg30.thm"
	@@${CP} "${PREFIX}/${SOVERSION}/user/basic/dialogs.xli" \
		"${HOME}/${SOVERSION}/user/basic/dialogs.xli"
	@@${CP} "${PREFIX}/${SOVERSION}/user/basic/script.xli" \
		"${HOME}/${SOVERSION}/user/basic/script.xli"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/arrowhd.soe" \
		"${HOME}/${SOVERSION}/user/config/arrowhd.soe"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/classic.sog" \
		"${HOME}/${SOVERSION}/user/config/classic.sog"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/hatching.soh" \
		"${HOME}/${SOVERSION}/user/config/hatching.soh"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/modern.sog" \
		"${HOME}/${SOVERSION}/user/config/modern.sog"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/palette.soc" \
		"${HOME}/${SOVERSION}/user/config/palette.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/styles.sod" \
		"${HOME}/${SOVERSION}/user/config/styles.sod"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/autotbl.fmt" \
		"${HOME}/${SOVERSION}/user/config/autotbl.fmt"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/dbtitle.rdb" \
		"${HOME}/${SOVERSION}/user/config/dbtitle.rdb"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/cmyk.soc" \
		"${HOME}/${SOVERSION}/user/config/cmyk.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/gallery.soc" \
		"${HOME}/${SOVERSION}/user/config/gallery.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/html.soc" \
		"${HOME}/${SOVERSION}/user/config/html.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.sob" \
		"${HOME}/${SOVERSION}/user/config/standard.sob"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.soc" \
		"${HOME}/${SOVERSION}/user/config/standard.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.sod" \
		"${HOME}/${SOVERSION}/user/config/standard.sod"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.soe" \
		"${HOME}/${SOVERSION}/user/config/standard.soe"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.sog" \
		"${HOME}/${SOVERSION}/user/config/standard.sog"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/standard.soh" \
		"${HOME}/${SOVERSION}/user/config/standard.soh"
	@@${CP} "${PREFIX}/${SOVERSION}/user/config/web.soc" \
		"${HOME}/${SOVERSION}/user/config/web.soc"
	@@${CP} "${PREFIX}/${SOVERSION}/LICENSE" \
		"${HOME}/${SOVERSION}/LICENSE"
	@@${CP} "${PREFIX}/${SOVERSION}/README" \
		"${HOME}/${SOVERSION}/README"
	@@${LN} -fs "${PREFIX}/${SOVERSION}/program/setup" "${HOME}/${SOVERSION}/setup"
	@@${LN} -fs "${PREFIX}/${SOVERSION}/program/soffice" "${HOME}/${SOVERSION}/soffice"
	@@${LN} -fs "${PREFIX}/${SOVERSION}/program/spadmin" "${HOME}/${SOVERSION}/spadmin"
.if exists(${HOME}/.gnome/apps)
	@@${MKDIR} "${HOME}/.gnome/apps/StarOffice 6.0"
	@@${MKDIR} "${HOME}/.gnome/apps/StarOffice 6.0/information and setup"
	@@${MKDIR} "${HOME}/.gnome/apps/StarOffice 6.0/other"
	@@${MKDIR} "${HOME}/.gnome/apps/StarOffice 6.0/auto pilots"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/information and setup/.directory" \
		"${HOME}/.gnome/apps/StarOffice 6.0/information and setup/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/information and setup/setup.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/information and setup/setup.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/.order" \
		"${HOME}/.gnome/apps/StarOffice 6.0/.order"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/.directory" \
		"${HOME}/.gnome/apps/StarOffice 6.0/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/template.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/template.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/other/.directory" \
		"${HOME}/.gnome/apps/StarOffice 6.0/other/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/other/masterdoc.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/other/masterdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/other/mathdoc.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/other/mathdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/other/labels.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/other/labels.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/other/vcards.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/other/vcards.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/auto pilots/.directory" \
		"${HOME}/.gnome/apps/StarOffice 6.0/auto pilots/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/auto pilots/letter.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/auto pilots/letter.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/auto pilots/fax.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/auto pilots/fax.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/auto pilots/agenda.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/auto pilots/agenda.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/auto pilots/memo.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/auto pilots/memo.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/textdoc.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/textdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/webdoc.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/webdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/spreadsheet.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/spreadsheet.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/drawing.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/drawing.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/gnome/net/presentation.desktop" \
		"${HOME}/.gnome/apps/StarOffice 6.0/presentation.desktop"
.endif
.if exists(${HOME}/${KDEHOME})
	@@${MKDIR} "${HOME}/${KDEHOME}/share/mimelnk"
	@@${MKDIR} "${HOME}/${KDEHOME}/share/mimelnk/application"
	@@${MKDIR} "${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0"
	@@${MKDIR} "${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other"
	@@${MKDIR} "${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots"
	@@${MKDIR} "${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/information and setup"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.impress.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.impress.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.impress.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.impress.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.draw.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.draw.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.draw.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.draw.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.calc.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.calc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.calc.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.calc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.chart.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.chart.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.writer.desktop"  \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.writer.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.writer.global.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.writer.global.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.sun.xml.math.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.sun.xml.math.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.writer.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.writer.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.writer-global.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.writer-global.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/mimelnk/application/vnd.stardivision.math.desktop" \
		"${HOME}/${KDEHOME}/share/mimelnk/application/vnd.stardivision.math.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/presentation.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/presentation.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/drawing.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/drawing.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/spreadsheet.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/spreadsheet.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/other/.directory" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/other/masterdoc.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other/masterdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/other/mathdoc.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other/mathdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/other/labels.desktop"  \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other/labels.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/other/vcards.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/other/vcards.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/auto pilots/.directory" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/auto pilots/letter.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots/letter.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/auto pilots/fax.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots/fax.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/auto pilots/agenda.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots/agenda.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/auto pilots/memo.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/auto pilots/memo.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/textdoc.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/textdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/webdoc.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/webdoc.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/information and setup/.directory" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/information and setup/.directory "
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/information and setup/setup.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/information and setup/setup.desktop"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/.order" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/.order"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/.directory" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/.directory"
	@@${CP} "${PREFIX}/${SOVERSION}/share/kde/net/applnk/StarOffice 6.0/template.desktop" \
		"${HOME}/${KDEHOME}/share/applnk/StarOffice 6.0/template.desktop"
.endif
.endif
@


1.33
log
@- Add missing file sversionrc
- Added fix for WRKDIRPREFIX size and better english.
  Thank goes to Mike Meyer <mwm@@mired.org>
- Depend on installed libXrender.so.1.0 (linux-base-7)
- Create symlink for libXrender.so within the staroffice
  installation.
- Fix broken ".if !exists" cases with "ls -fs" instead just
  "ln -s"
- Fix spelling errors

Submitted by:	Martin Blapp <mb@@imp.ch> (MAINTAINER)
@
text
@d146 3
a148 1
.if exists(${HOME}/.sversionrc)
a149 3
.else
	@@${SED} -e 's|%%HOME%%|${HOME}|' < "${FILESDIR}/sversionrc" > "${HOME}/.sversionrc"
.endif
@


1.32
log
@Remove additional "'"

PR:		31242
Submitted by:	David <ddavid_3@@yahoo.com>
Approved by:	maintainer
@
text
@d18 2
a19 2
FETCH_DEPENDS=	${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
BUILD_DEPENDS=	${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
d32 1
a32 1
SIZE!=		/bin/df -k . | /usr/bin/tail -n 1 | /usr/bin/awk '{print $$4}'
d67 3
a69 3
	@@${ECHO} There is too few free disk space in your port
	@@${ECHO} directory. To unpack Staroffice needs
	@@${ECHO} at least 400MB free diskspace.
d115 3
d140 3
d149 1
a149 1
	@@${SED} -e 's|%%HOME%%|${HOME}|' < "${FILESDIR}/.sversionrc" > "${HOME}/.sversionrc"
d245 3
a247 3
	@@${LN} -s "${PREFIX}/${SOVERSION}/program/setup" "${HOME}/${SOVERSION}/setup"
	@@${LN} -s "${PREFIX}/${SOVERSION}/program/soffice" "${HOME}/${SOVERSION}/soffice"
	@@${LN} -s "${PREFIX}/${SOVERSION}/program/spadmin" "${HOME}/${SOVERSION}/spadmin"
@


1.31
log
@Upgrade to StarOffice 6.0 (repo-copied from staroffice52).

PR:		31161
Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d73 1
a73 1
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.'"
@


1.30
log
@Fix the CDROM install of StarOffice.

PR:		30983
Submitted by:	Maintainer
@
text
@d1 2
a2 2
# New ports collection makefile for: StarOffice 5.2
# Date created:		22 August 2000
d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.29 2001/09/05 20:19:01 alex Exp $
d9 1
a9 1
PORTVERSION=	5.2
d11 4
a14 19
MASTER_SITES=	ftp://ftp.csua.berkeley.edu/pub/.1/ports/distfiles/staroffice52/ \
		ftp://sunsite.cnlab-switch.ch/mirror/staroffice/english/ \
		ftp://ftp.snerpa.is/pub/linux/staroffice/ \
		ftp://ftp.linux.tucows.com/pub/Linuxberg/ \
		ftp://ftp.linux.hr/pub/staroffice/5.2/ \
		ftp://ftp.sunsite.auc.dk/disk2/sun-patches/ \
		ftp://sunsite.uio.no/pub/sun/sun-patches/ \
		ftp://ftp.hu-berlin.de/pub/mirrors/sunsolve.sun.com/pub/patches/ \
		ftp://ftp.sunet.se/pub7/security/vendor/sun/patches/
DISTNAME=	so-5_2-ga-bin-linux-en.bin
.if defined(WITH_CDROM)
DISTFILES=	109939-02.tar.Z
.else
DISTFILES=	so-5_2-ga-bin-linux-en.bin 109939-02.tar.Z
.if defined(WITH_ADABAS)
DISTFILES+=	soa-5_2-ga-bin-linux-en.bin
.endif
.endif
EXTRACT_ONLY=	109939-02.tar.Z
d19 1
d25 3
a27 2
DIST_SUBDIR=	staroffice52
WRKSRC=		${WRKDIR}/office52
d30 2
a31 3
INSTDB.INS=	${PREFIX}/office52/program/instdb.ins
SUNSOLVE=	${WRKDIR}/109939-02
ADABAS_DIST=	soa-5_2-ga-bin-linux-en.bin
d65 1
a65 1
.if ${SIZE} < 250000
d69 1
a69 16
	@@${ECHO} at least 250MB free diskspace.
	@@${FALSE}
.endif
.if !defined(WITH_ADABAS)
	@@ ${ECHO}
	@@ ${ECHO} If you like to install staroffice with ADABAS database support,
	@@ ${ECHO} cancel this installation now and start make again with
	@@ ${ECHO} WITH_ADABAS=YES. 
	@@ ${ECHO}
.endif
.if defined(WITH_CDROM)
.if !exists(${CD_MOUNTPT}/linux/office52/setup)
	@@${ECHO}
	@@${ECHO} Please mount the Sun StarOffice 5.2 CDROM
	@@${ECHO} onto ${CD_MOUNTPT} and run make again.
	@@${ECHO}
d72 2
a85 11
.if defined(WITH_CDROM)
.if !exists(${CD_MOUNTPT}/linux/office52/setup)
.if defined(WITH_ADABAS)
	@@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/adabas/adabas .
	@@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/adabas/f_0000 .
	@@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/adabas/f_0001 .
.endif
	@@${MKDIR} ${WRKSRC}
	@@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/office52/* .
.endif
.else
a87 4
.if defined(WITH_ADABAS)
	@@${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC}
	@@${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST}
.endif
a90 1
.endif
d102 1
a102 1
	@@${PERL} -pi.orig -e 's|DefaultDestPath = "office52";|DefaultDestPath = "${PREFIX}/office52";|' ${WRKSRC}/setup.ins
d113 1
a113 1
	@@ ${LN} -fs ${LINUXBASE}/${PREFIX}/office52 ${PREFIX}/office52
d116 2
a117 2
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
	@@if [ -f ${PREFIX}/office52/program/setup ]; then \
d119 1
a119 1
		${ECHO} Ignore the error-message. StarOffice5.2 has been installed ; \
d124 1
a124 1
		${ECHO} An error occured during StarOffice5.2 install. Please send a mail with debug-output and ; \
a128 6
.if ! defined(WITH_CDROM)
	@@${ECHO_MSG} "===>   Applying sunsolve patches for ${PKGNAME}"
	@@for file in ${SUNSOLVE}/* ; do \
		${CP} -Rv $$file ${PREFIX}/office52/ ; \
	done
.endif
a131 2
	@@${PATCH} -s ${PREFIX}/office52/program/setup ${FILESDIR}/setup.patch
	@@${PATCH} -s ${PREFIX}/office52/program/soffice ${FILESDIR}/soffice.patch
d133 1
a133 1
	@@${SED} -e 's%DefaultDestPath = "${PREFIX}/office52%DefaultDestPath = "office52%' \
d135 2
d139 224
a362 3
	@@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" ${LINUXBASE}/bin/sh -c \
		${PREFIX}/office52/program/setup

@


1.29
log
@Use full path to mount and utilites, because /sbin might not be in PATH.
Fix last-minute brainos in the message for linprocfs.

Submitted by:	fenner
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.28 2001/09/04 22:30:19 alex Exp $
d21 3
d28 1
a102 7
.if defined(WITH_CDROM)
do-extract: do-extract-cdrom
do-extract-cdrom:
	@@${MKDIR} ${WRKSRC}
	@@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/office52/* .
.endif

d113 11
d133 1
@


1.28
log
@- Add check for installed and running linprocfs
- Sync french version with the english and german version

Submitted by:   Martin Blapp <mb@@imp.ch> (MAINTAINER)
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.27 2001/06/03 16:29:55 obrien Exp $
d43 1
a43 1
LINPROCFS!=	mount | grep linprocfs | awk '{print $1}'
d55 1
a55 1
	@@${ECHO} activated on your system. Please read the linprocfs(5)
@


1.27
log
@Minor Staroffice 5.2 fixes and addons for the english and german port.

- Remove non working MASTER_SITES
- Make Adabas installation optional with make WITH_ADABAS=YES
- Add a check for free disk space in Makefile
- Replace a "/usr/local" with $PREFIX, which should fix make $PREFIX=
- Replace german "umlauts" in the german port.

Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.26 2001/03/02 00:50:43 jhb Exp $
d43 1
d48 15
@


1.26
log
@The path needs to be dinked with for the install-user target as well.

Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.25 2001/03/02 00:27:40 jhb Exp $
d11 1
a11 8
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://sunsite.anu.edu.au/mnt/disk3/sun-info/sun-patches/ \
		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/ \
d13 1
a14 2
		ftp://ftp.jcu.edu.au/pub/StarOffice/ \
		ftp://ftp.uakom.sk/pub/mirrors/StarOffice/ \
d16 2
a17 4
		ftp://ftp.isst.fhg.de/ISST/Sun/Staroffice/5.2/ \
		ftp://ftp.cityline.net/mirrors2/sun-patches-all/ \
		ftp://ftp.gtn.com/os/Sun/patches/ \
		ftp://ftp.jaist.ac.jp/.arc07/sun-info/sun-patches/ \
a18 1
		ftp://sunsite.uio.no/pub/sun/sun-patches/ \
d21 4
a24 1
DISTFILES=	soa-5_2-ga-bin-linux-en.bin so-5_2-ga-bin-linux-en.bin 109939-02.tar.Z
d41 2
d59 14
a100 1
	@@${CP} ${_DISTDIR}/soa-5_2-ga-bin-linux-en.bin ${WRKSRC}
d102 4
a105 1
	@@${CHMOD} 755 ${WRKSRC}/soa-5_2-ga-bin-linux-en.bin
d108 1
d159 1
a159 1
	@@${SED} -e 's%DefaultDestPath = "/usr/local/office52%DefaultDestPath = "office52%' \
@


1.25
log
@Ensure that /bin is at the head of the path when running the setup program
so that we get the right uname binary.

PR:		24049, 25231, 25443, 25458
Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.24 2000/12/24 14:28:59 alex Exp $
d152 2
a153 1
	${PREFIX}/office52/program/setup
@


1.24
log
@Add SunSolve Patch 109939-02.
This fixes numerous bugs.  See the PR for details.

PR:		23783
Submitted by:	Martin Blapp <mb@@imp.ch> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.23 2000/12/24 14:21:47 alex Exp $
d123 1
a123 1
	@@-SAL_IGNOREXERRORS=1 TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
@


1.23
log
@Fix default $PATH settings for user-installation.

PR:		23773
Submitted by:	Martin Blapp <mb@@imp.ch> (maintainer)
Thanks to:	jedgar ("or bug Alex") =)
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.22 2000/10/14 20:10:11 obrien Exp $
d15 1
d23 8
a30 1
		ftp://ftp.linux.hr/pub/staroffice/5.2/
d32 2
a33 2
DISTFILES=	soa-5_2-ga-bin-linux-en.bin so-5_2-ga-bin-linux-en.bin
EXTRACT_ONLY=
d48 1
d99 7
d120 1
a120 1
	@@${LN} -fs ${LINUXBASE}/${PREFIX}/office52 ${PREFIX}/office52
d136 6
@


1.22
log
@Fix CDROM based installs.

Approved by:	Martin Blapp <mb@@imp.ch>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.21 2000/10/08 10:19:53 asami Exp $
d39 1
d125 3
@


1.21
log
@Change PKGDIR from pkg/ to .  Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.20 2000/09/23 10:32:30 jedgar Exp $
d59 1
a59 1
	@@${ECHO} onto /cdrom and run make again.
d66 4
a69 3
do-extract:
	@@${MKDIR} ${WRKSRC}/office52
	@@cd ${WRKSRC}/office52 && ${LN} -s ${CD_MOUNTPT}/linux/office52/* .
@


1.20
log
@- Fix ${LINUXBASE} for /compat/linux
- Fix some warning text

Submitted by:	Maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.19 2000/09/15 16:33:34 alex Exp $
d104 1
a104 1
	@@${CAT} ${PKGDIR}/MESSAGE
@


1.19
log
@* Depend on libc6, this should fix some lib-problems. Also automatically
  install linuxbase if it's not yet installed.
* Fix the cdrom installation

Submitted by:	Martin Blapp <mp@@imp.ch> (MAINTAINER) on IRC
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.18 2000/09/07 14:22:48 sheldonh Exp $
d29 1
a29 2
DEPENDS=	${PORTSDIR}/emulators/linux_base
RUN_DEPENDS=	/compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
d38 1
a38 1
LD_PATH=	${TMPDIR}:${WRKSRC}:/compat/linux/lib:/compat/linux/usr/lib
d48 2
a49 2
	@@${ECHO} src/sys/i386/linux/linux_sysvec. It should
	@@${ECHO} be revision 1.55.2.1 or higher.
d101 2
a102 2
.if exists(/compat/linux/${PREFIX})
	@@${LN} -fs /compat/linux/${PREFIX}/office52 ${PREFIX}/office52
d105 1
a105 1
	@@-SAL_IGNOREXERRORS=1 TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} /compat/linux/bin/sh -c '${WRKSRC}/setup /net'
@


1.18
log
@Fix the error detection routines at the end.
Remove some unused cruft.
Get LD_LIBRARY_PATH recognized properly.
PREFIX-clean.

Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.17 2000/08/31 10:26:52 asmodai Exp $
d29 2
a30 1
RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
d57 1
d63 1
@


1.17
log
@Add some more help to solve potential installation problems.
Also add reporting address.

Submitted by:	MAINTAINER <Martin Blapp <mb@@imp.ch>>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.16 2000/08/28 13:35:26 jedgar Exp $
d38 1
a38 1
ADEBAS=		soa-5_2-ga-bin-linux-en.bin
d99 2
a100 2
.if exists(/compat/linux/usr/local)
	@@${LN} -fs /compat/linux/usr/local/office52 ${PREFIX}/office52
d103 13
a115 14
	@@LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TMPDIR}:${WRKSRC}:/compat/linux/lib:/compat/linux/usr/lib
	@@-SAL_IGNOREXERRORS=1 TEMP=${TMPDIR} /compat/linux/bin/sh -c '${WRKSRC}/setup /net'
.if exists(/usr/local/office52/program/setup)
	@@ ${ECHO}
	@@ ${ECHO} Ignore the error-message. StarOffice5.2 has been installed
	@@ ${ECHO} successfully on your system.
	@@ ${ECHO}
.else
	@@ ${ECHO}
	@@ ${ECHO} An error occured during StarOffice5.2 install. Please send a mail with debug-output and
	@@ ${ECHO} some information about your FreeBSD-environment to mb@@imp.ch. Thanks.
	@@ ${ECHO}
	@@ ${FALSE}
.endif
@


1.16
log
@Add MASTER_SITES and remove notice about manually downloading

Submitted by:	Martin Blapp <mb@@imp.ch> (Maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.15 2000/08/25 13:47:55 jedgar Exp $
d103 1
d105 1
d110 7
@


1.15
log
@- Add DISPLAY functionality to keep StarOffice from crashing during
  installation and startup
- Make a few cosmetic fixes to the Makefile(s)

Submitted by:	Martin Blapp <mb@@imp.ch> (Maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.14 2000/08/24 19:27:05 jedgar Exp $
d11 12
a60 14
.else
.if !exists(${_DISTDIR}/${DISTNAME})
	@@${ECHO} Please manually download ${DISTFILES}
	@@${ECHO} from http://www.sun.com/staroffice.
	@@${ECHO}
	@@${ECHO} ${ADEBAS} is the database part of Staroffice.
	@@${ECHO}
	@@${ECHO} Put ${DISTFILES} into the directory
	@@${ECHO} ${_DISTDIR} and run make again.
	@@${ECHO} Or, if you have the Sun StarOffice 5.2 CDROM,
	@@${ECHO} please run 'make USE_CDROM=yes'
	@@${ECHO}
	@@${FALSE}
.endif
@


1.14
log
@New port: staroffice52 (after repo-copy from staroffice5)

Submitted by:	Martin Blapp <mb@@imp.ch>
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice52/Makefile,v 1.13 2000/04/17 00:17:28 reg Exp $
d26 1
d30 1
a30 6
#
# 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
#
d32 10
a41 1
BROKEN= YES
a42 1

d44 6
a49 2
IGNORE= "Please mount the Sun StarOffice 5.2 CDROM onto /cdrom and run make again."
.else	# FTP/web download
d51 11
a61 1
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'"
d86 1
a86 1
	@@${WRKSRC}/${DISTNAME} -extract ${WRKSRC}
d105 1
a105 1
	@@-TEMP=${TMPDIR} /compat/linux/bin/sh -c '${WRKSRC}/setup /net'
@


1.13
log
@Standardize all user defined options to the booleans WITH_FOO and
WITHOUT_FOO.  Begin the process of reserving these prefixes for user defined
options.

No comment by:	ports
@
text
@d1 3
a3 3
# New ports collection makefile for:	StarOffice 5.1a
# Date created:		30 October 1999
# Whom:			dkwiebe
d5 1
a5 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.12 2000/04/14 19:53:25 billf Exp $
d9 1
a9 1
PORTVERSION=	5.1a
d11 3
a13 8
MASTER_SITES=	http://afug.hypermart.net/files/ \
		http://www.hagenhomes.com/freebsd/files/  \
		ftp://ftp.stat.duke.edu/pub/Users/sto/StarOffice51a/  \
		ftp://ftp.stardivision.de/pub/support/so51a/nwspatch/unxlnxi/  \
		ftp://ftp.stardivision.de/pub/support/so51a/db/unxlnxi/
DISTNAME=	so51a_lnx_01
EXTRACT_SUFX=	.tar
DISTFILES=	applicat.rdb.gz libofa517li.so libsdb517li.so
a16 1
BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
a21 3
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
EXTRACT_CMD=	${CAT}
EXTRACT_BEFORE_ARGS=	-u
d23 2
a24 2
DIST_SUBDIR=	staroffice5
WRKSRC=		${WRKDIR}/so51inst
d29 10
d40 1
a40 3
.if !exists(/cdrom/linux/office51/setup.zip)
IGNORE="Please mount the Sun StarOffice 5.1 CDROM onto /cdrom and run make again."
.endif
d42 2
a43 3
DISTFILES+=	${DISTNAME}${EXTRACT_SUFX}
.if !exists(${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
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.  Or, if you have the Sun StarOffice 5.1 CDROM, please run 'make WITH_CDROM=yes'"
d49 2
a50 2
	@@${MKDIR} ${WRKSRC}/office51
	@@cd ${WRKSRC}/office51 && ${LN} -s /cdrom/linux/office51/* .
d53 18
a70 4
post-extract:
	@@unzip -u -L ${WRKDIR}/so51inst/office51/setup.zip -d ${WRKDIR}/tmp
	@@${CP} -p ${_DISTDIR}/applicat.rdb.gz ${WRKDIR}
	@@${GZIP_CMD} -d ${WRKDIR}/applicat.rdb.gz
d73 1
a73 1
	@@${PERL} -pi.orig -e 's|DefaultDestPath = "Office51";|DefaultDestPath = "${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins
d76 10
a85 6
	@@${CP} /compat/linux/etc/ld.so.conf ${TMPDIR}/ld.so.conf.tmp
	@@${ECHO} "${WRKDIR}/tmp" >> ${TMPDIR}/ld.so.conf.tmp
	@@${ECHO} "/usr/X11R6/lib" >> ${TMPDIR}/ld.so.conf.tmp
	@@PATH=${PATH}:${TMPDIR}/sv001.tmp:/compat/linux/tmp/sv001.tmp:/compat/linux/tmp:/tmp
	@@LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TMPDIR}:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/compat/linux/lib
	@@/compat/linux/sbin/ldconfig -f ${TMPDIR}/ld.so.conf.tmp
d87 6
a92 1
	@@-TEMP=${TMPDIR} ${WRKDIR}/so51inst/office51/setup /net
d94 3
a96 8
	@@${INSTALL_DATA} ${WRKDIR}/applicat.rdb ${PREFIX}/Office51/bin
	@@${INSTALL_DATA} ${_DISTDIR}/libofa517li.so ${PREFIX}/Office51/lib
	@@${INSTALL_DATA} ${_DISTDIR}/libsdb517li.so ${PREFIX}/Office51/lib
	@@${CHMOD} 100755 ${PREFIX}/Office51/lib/libofa517li.so
	@@${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so
	@@${PATCH} -s ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch
	@@${PATCH} -s ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch
	@@${PERL} -pi -e 's|DefaultDestPath = "${PREFIX}/Office51";|DefaultDestPath = "~/Office51";|' ${PREFIX}/Office51/instdb.ins
d99 1
a99 1
	${PREFIX}/Office51/bin/setup
@


1.12
log
@/usr/compat -> /compat, peter's commit to osf1_base reminded me I had this.
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.11 2000/04/14 00:25:41 mharo Exp $
d38 1
a38 1
.if defined(USE_CDROM)
d45 1
a45 1
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.  Or, if you have the Sun StarOffice 5.1 CDROM, please run 'make USE_CDROM=yes'"
d49 1
a49 1
.if defined(USE_CDROM)
@


1.11
log
@portname/portversion update
@
text
@d5 1
a5 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.10 2000/02/28 23:55:27 steve Exp $
d67 3
a69 3
	@@PATH=${PATH}:${TMPDIR}/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp
	@@LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TMPDIR}:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib
	@@/usr/compat/linux/sbin/ldconfig -f ${TMPDIR}/ld.so.conf.tmp
@


1.10
log
@Add mb@@imp.ch as the new MAINTAINER.

Submitted by:	Darren Wiebe <dkwiebe@@hagenhomes.com>
@
text
@a1 1
# Version required:     5.1a
d5 1
a5 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.9 2000/02/28 08:33:26 asami Exp $
d8 2
a9 2
DISTNAME=	so51a_lnx_01
PKGNAME=	staroffice-5.1a
d16 1
@


1.9
log
@Add virtual category "linux" to Linux apps and support libs/utils.
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.8 2000/02/27 15:01:11 steve Exp $
d20 1
a20 1
MAINTAINER=	ports@@FreeBSD.org
@


1.8
log
@Misc. small fixes from the maintainer.

PR:		16935
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.7 2000/01/29 21:52:21 steve Exp $
d11 1
a11 1
CATEGORIES=	editors
@


1.7
log
@From maintainer:
  This fixes the ${TEMPDIR} and ${TMPDIR} problem with the StarOffice5
  port.  It also puts my correct email address in.

PR:		16432
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.6 1999/12/31 20:14:55 steve Exp $
d12 2
a13 1
MASTER_SITES=	ftp://ftp.hagenhomes.com/freebsd/files/  \
d20 1
a20 1
MAINTAINER=	dkwiebe@@hagenhomes.com
d66 1
a66 1
	@@${ECHO} "${TMPDIR}/sv001.tmp" >> ${TMPDIR}/ld.so.conf.tmp
a72 2
# A seperate target as we need to be able to run this stuff independantly.
post-install:
a80 1
	@@${INSTALL_DATA} ${FILESDIR}/dot.sversionrc /root/.sversionrc
@


1.6
log
@Add another distribution site for patches and changes the default for the
TEMPDIR variable.

PR:		15764
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.5 1999/12/23 21:13:40 steve Exp $
d12 1
a12 1
MASTER_SITES=	ftp://ftp.hagenhomes.com/pub/  \
d19 1
a19 1
MAINTAINER=	dkiwebe@@hagenhomes.com
d33 1
a33 1
TEMPDIR=	${WRKDIR}/tmp
d65 3
a67 3
	@@${ECHO} "${TEMPDIR}/sv001.tmp" >> ${TMPDIR}/ld.so.conf.tmp
	@@PATH=${PATH}:${TEMPDIR}/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp
	@@LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TEMPDIR}:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib
d70 1
a70 1
	@@-TEMP=${TEMPDIR} ${WRKDIR}/so51inst/office51/setup /net
@


1.5
log
@Remove '-v' from the invocation of ln(1).

PR:		15623
Submitted by:	Udo Schweigert <ust@@cert.siemens.de>
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.4 1999/12/14 23:14:28 asami Exp $
d19 2
a23 2
MAINTAINER=	dkiwebe@@hagenhomes.com

d33 1
d63 6
a68 5
	@@${ECHO} "${WRKDIR}/tmp" >> /compat/linux/etc/ld.so.conf
	@@${ECHO} "/tmp/sv001.tmp" >> /compat/linux/etc/ld.so.conf
	@@PATH=${PATH}:/tmp/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp
	@@LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/tmp:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib
	@@/usr/compat/linux/sbin/ldconfig
d70 1
a70 1
	@@-${WRKDIR}/so51inst/office51/setup /net
@


1.4
log
@"Quite sorry for sending this so late.  I just got my hands on a Sun
StarOffice CDROM and found out how broken the port really was.
It also uses a DIST_SUBDIR now."

Submitted by:	obrien
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.3 1999/12/10 16:28:35 obrien Exp $
d50 1
a50 1
	@@cd ${WRKSRC}/office51 && ${LN} -s -v /cdrom/linux/office51/* .
@


1.3
log
@Fix buglet in the perl expression.

Noticed by:	Brian Handy <handy@@lambic.physics.montana.edu>
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.2 1999/12/09 17:13:36 obrien Exp $
d12 4
a15 1
MASTER_SITES=	"" # manual fetch
d17 1
d19 2
a20 8
PATCH_SITES=	ftp://ftp.hagenhomes.com/pub/ \
		ftp://ftp.stat.duke.edu/pub/~sto/StarOffice51a/ \
		ftp://ftp.stardivision.de/pub/support/so51a/nwspatch/unxlnxi/ \
		ftp://ftp.stardivision.de/pub/support/so51a/db/unxlnxi/
PATCHFILES=	applicat.rdb libofa517li.so libsdb517li.so

RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base \
		${PREFIX}/bin/unzip:${PORTSDIR}/archivers/unzip
d27 3
d31 1
d34 10
a43 2
.if !exists(${DISTDIR}/${DISTFILES})
IGNORE="Please manually download ${DISTFILES} from www.sun.com/staroffice or copy them from your Sun StarOffice CDROM.  Put ${DISTFILES} into the directory ${DISTDIR} and run make again."
d45 12
d59 1
a59 1
	${PERL} -pi.orig -e 's|DefaultDestPath = "Office51";|DefaultDestPath = "${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins
d62 7
a68 10
	unzip -u -L ${WRKDIR}/so51inst/office51/setup.zip -d ${WRKDIR}/tmp
	${ECHO} "${WRKDIR}/tmp" >> /compat/linux/etc/ld.so.conf
	${ECHO} "/tmp/sv001.tmp" >> /compat/linux/etc/ld.so.conf
	PATH=${PATH}:/tmp/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp
	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/tmp:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib
	/usr/compat/linux/sbin/ldconfig
	${INSTALL_DATA} ${FILESDIR}/dot.sversionrc /root/.sversionrc
	${TOUCH} ${WRKDIR}/.install-done
	${CAT} ${PKGDIR}/MESSAGE
	${WRKDIR}/so51inst/office51/setup /net
d70 1
d72 9
a80 8
	${INSTALL_DATA} ${DISTDIR}/applicat.rdb ${PREFIX}/Office51/bin
	${INSTALL_DATA} ${DISTDIR}/libofa517li.so ${PREFIX}/Office51/lib
	${INSTALL_DATA} ${DISTDIR}/libsdb517li.so ${PREFIX}/Office51/lib
	${CHMOD} 100755 ${PREFIX}/Office51/lib/libofa517li.so
	${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so
	${PATCH} ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch
	${PATCH} ${PREFIX}/Office51/instdb.ins ${FILESDIR}/instdb.ins.patch
	${PATCH} ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch
d85 1
a85 1
.include <bsd.port.mk>
@


1.2
log
@I didn't notice there was a .file file as part of the port, and it was
in the wrong place.  The .dot files has been renamed dot.file and moved
to files/
@
text
@d6 1
a6 1
# $FreeBSD: ports/editors/staroffice5/Makefile,v 1.1.1.1 1999/12/09 17:05:36 obrien Exp $
d37 1
a37 1
	${PERL} -pi.orig -e 's/DefaultDestPath = "Office51";/DefaultDestPath = "${PREFIX}/Office51";/' ${WRKSRC}/office51/setup.ins
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $FreeBSD$
d46 1
a46 1
	${CP} ${PKGDIR}/.sversionrc /root
@


1.1.1.1
log
@This is Sun's version 5.1a of StarOffice, an office productivity suite
simular to Microsoft Office.

PR:		14899
Submitted by:	Darren Wiebe <dkwiebe@@heartland.ab.ca>	(reworked by me)
@
text
@@
