summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormrauch <mrauch@pkgsrc.org>2005-10-09 13:39:53 +0000
committermrauch <mrauch@pkgsrc.org>2005-10-09 13:39:53 +0000
commit16ffa11dd7e2c45d119ea4e915149fa1cbf12621 (patch)
tree4688625ab33e2ff1ad342ab1c89ba2b58a5c7904 /misc
parent41c74501aaef6a86177459bf626e5281477964ec (diff)
downloadpkgsrc-16ffa11dd7e2c45d119ea4e915149fa1cbf12621.tar.gz
OpenOffice.org is a multiplatform and multilingual office suite and an
open-source project. Compatible with all other major office suites, the product is free to download, use, and distribute. New features in version 2 include: * Open Standards XML File Format (OASIS OpenDocument) * New CustomShapes (compatible with Microsoft AutoShapes) * Enhanced PDF Export * New enhanced Database Frontend * Mail Merge Wizard * Support for Nested Tables * Digital Signatures Support * XForms Support * WordPerfect Filters A complete list is available at http://marketing.openoffice.org/2.0/featureguide.html. This package was submitted by Geert Hendrickx to tech-pkg, based on an earlier version posted there by myself.
Diffstat (limited to 'misc')
-rw-r--r--misc/openoffice2-bin/DESCR14
-rw-r--r--misc/openoffice2-bin/INSTALL55
-rw-r--r--misc/openoffice2-bin/Makefile102
-rw-r--r--misc/openoffice2-bin/Makefile.NetBSD.i38611
-rw-r--r--misc/openoffice2-bin/PLIST.proglinks6
-rw-r--r--misc/openoffice2-bin/distinfo5
-rw-r--r--misc/openoffice2-bin/files/soffice28
7 files changed, 221 insertions, 0 deletions
diff --git a/misc/openoffice2-bin/DESCR b/misc/openoffice2-bin/DESCR
new file mode 100644
index 00000000000..0eecb8e7ef8
--- /dev/null
+++ b/misc/openoffice2-bin/DESCR
@@ -0,0 +1,14 @@
+OpenOffice.org is an Open Source, community-developed, multi-platform office
+productivity suite. It includes the key desktop applications, such as a
+word processor, spreadsheet, presentation manager, and drawing program,
+with a user interface and feature set similar to other office suites.
+
+Components include:
+ * A universal word processing application for creating business
+ letters, extensive text documents, professional layouts, and HTML
+ documents.
+ * A sophisticated application for performing advanced spreadsheet
+ functions, such as analyzing figures, creating lists, and viewing data.
+ * A tool for creating effective eye-catching presentations.
+ * A vector-oriented draw module that enables the creation of 3D
+ illustrations.
diff --git a/misc/openoffice2-bin/INSTALL b/misc/openoffice2-bin/INSTALL
new file mode 100644
index 00000000000..a591f12dd6f
--- /dev/null
+++ b/misc/openoffice2-bin/INSTALL
@@ -0,0 +1,55 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+# This file contains the contents of the OOo rpm
+# pre-install, post-install, pre-uninstall and post-uninstall scripts
+
+PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
+
+case ${STAGE} in
+PRE-INSTALL)
+ # nothing to do
+ ;;
+
+POST-INSTALL)
+ if [ ! -f $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
+ then
+ if [ -f $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 ]
+ then
+ ${LN} -s $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
+ fi
+ fi
+
+ if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
+ then
+ ${LN} -s $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
+ fi
+
+ if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
+ then
+ ${LN} -s $PRODUCTINSTALLLOCATION/program/python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
+ fi
+
+ if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
+ then
+ chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
+ fi
+ ;;
+
+DEINSTALL)
+ if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
+ then
+ ${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
+ fi
+
+ if [ -h $PRODUCTINSTALLLOCATION/program/python-core ]
+ then
+ ${RM} $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
+ fi
+
+ if [ -h $PRODUCTINSTALLLOCATION/program/python ]
+ then
+ ${RM} $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
+ fi
+ ;;
+
+esac
diff --git a/misc/openoffice2-bin/Makefile b/misc/openoffice2-bin/Makefile
new file mode 100644
index 00000000000..85e8f7ed040
--- /dev/null
+++ b/misc/openoffice2-bin/Makefile
@@ -0,0 +1,102 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+PKGNAME= openoffice2-bin-2.0.0rc2
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=contrib/rc/2.0.0rc2/}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= mrauch@NetBSD.org
+HOMEPAGE= http://www.openoffice.org/
+COMMENT= Integrated office productivity suite (binary pkg)
+
+BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg
+
+RPM2PKG= ${PREFIX}/sbin/rpm2pkg
+RPM2PKGARGS= -d ${PREFIX} -f ${WRKDIR}/PLIST.nouniq -s 1
+
+OO_VER= 2.0
+PLIST_SUBST+= VER=${OO_VER}
+MESSAGE_SUBST+= VER=${OO_VER}
+FILES_SUBST+= VER=${OO_VER}
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+CONFLICTS+= staroffice-[0-9]*
+CONFLICTS+= openoffice-[0-9]*
+CONFLICTS+= openoffice-bin-[0-9]*
+CONFLICTS+= openoffice-linux-[0-9]*
+
+ONLY_FOR_PLATFORM= NetBSD-1.6*-i386 NetBSD-[2-9]*-i386
+ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86
+
+TEMP?= ${WRKSRC}
+CHECK_SHLIBS= no
+
+PLIST_SRC= ${PKGDIR}/PLIST.proglinks
+PLIST_SRC+= ${WRKDIR}/PLIST
+
+.include "../../mk/bsd.prefs.mk"
+
+# group together i386, i486, i586 and i686 (for Linux)
+#
+ARCH= ${MACHINE_ARCH:C/i[3-6]86/i386/g}
+
+USE_PKGINSTALL= yes
+INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
+
+.if ${OPSYS} == "NetBSD"
+. if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+. if !exists(/emul/svr4/usr/lib/ld.so)
+PKG_FAIL_REASON= '${PKGNAME} requires Solaris libraries - see compat_svr4(8)'
+. endif
+DISTNAME= OOo_2.0.0rc2_051005_SolarisSparc_install
+WRKSRC= #unknown
+. elif ${MACHINE_ARCH} == "i386"
+DISTNAME= OOo_2.0.0rc2_051005_LinuxIntel_install
+WRKSRC= ${WRKDIR}/OOO680_m2_native_packed-1_en-US.8964/RPMS
+. endif
+.endif
+
+.if ${OPSYS} == "Linux"
+.if ${ARCH} == "i386"
+DISTNAME= OOo_2.0.0rc2_051005_LinuxIntel_install
+WRKSRC= ${WRKDIR}/OOO680_m2_native_packed-1_en-US.8964/RPMS
+.endif
+.endif
+
+.if ${OPSYS} == "SunOS"
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+DISTNAME= OOo_2.0.0rc2_051005_SolarisSparc_install
+WRKSRC= #unknown
+.elif ${MACHINE_ARCH} == "i386"
+DISTNAME= OOo_2.0.0rc2_051005_SolarisIntel_install
+WRKSRC= #unknown
+.endif
+.endif
+
+# everything specific to your OS/Arch goes into its own Makefile
+
+.if exists(Makefile.${OPSYS}.${ARCH})
+. include "Makefile.${OPSYS}.${ARCH}"
+.endif
+
+.if !defined(DISTNAME)
+DISTNAME= # Dummy to prevent error from missing DISTNAME
+.endif
+
+do-install:
+ ${RM} -f ${WRKDIR}/PLIST.nouniq
+ ${RPM2PKG} ${RPM2PKGARGS} ${WRKSRC}/*.rpm
+ uniq ${WRKDIR}/PLIST.nouniq >${WRKDIR}/PLIST
+ ${RM} -f ${PREFIX}/bin/soffice
+ ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" -e "s|@@OO_VER@@|${OO_VER}|g" \
+ < ${FILESDIR}/soffice > ${PREFIX}/bin/soffice
+ ${CHMOD} +x ${PREFIX}/bin/soffice
+.for i in scalc sdraw simpress swriter
+ ${LN} -sf ../openoffice.org${OO_VER}/program/${i} ${PREFIX}/bin/${i}
+.endfor
+
+.include "../../misc/rpm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/openoffice2-bin/Makefile.NetBSD.i386 b/misc/openoffice2-bin/Makefile.NetBSD.i386
new file mode 100644
index 00000000000..3420c4398b8
--- /dev/null
+++ b/misc/openoffice2-bin/Makefile.NetBSD.i386
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile.NetBSD.i386,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+DEPENDS+= suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
+DEPENDS+= suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
+DEPENDS+= suse_freetype2>=2.0:../../emulators/${SUSE_DIR_PREFIX}_freetype2
+
+.if !exists(/emul/linux/proc/curproc/cmdline) && !exists(/proc/curproc/cmdline)
+PKG_FAIL_REASON= "please mount /emul/linux/proc or /proc"
+.endif
+
+.include "../../emulators/suse_linux/Makefile.application"
diff --git a/misc/openoffice2-bin/PLIST.proglinks b/misc/openoffice2-bin/PLIST.proglinks
new file mode 100644
index 00000000000..e08e814dd2c
--- /dev/null
+++ b/misc/openoffice2-bin/PLIST.proglinks
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.proglinks,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+bin/scalc
+bin/sdraw
+bin/simpress
+bin/soffice
+bin/swriter
diff --git a/misc/openoffice2-bin/distinfo b/misc/openoffice2-bin/distinfo
new file mode 100644
index 00000000000..5e232a0bfdd
--- /dev/null
+++ b/misc/openoffice2-bin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+SHA1 (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = 040c4da488383709c40598f46fa2f18c973b76f8
+RMD160 (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = b1e5e3ac7d8ff0554f38d538bb49defb014aa2ad
+Size (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = 106466794 bytes
diff --git a/misc/openoffice2-bin/files/soffice b/misc/openoffice2-bin/files/soffice
new file mode 100644
index 00000000000..b3ebbd0606c
--- /dev/null
+++ b/misc/openoffice2-bin/files/soffice
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $NetBSD: soffice,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+#
+SOINST=@@PREFIX@@/openoffice.org@@OO_VER@@
+
+# make sure we can find `whoami` on solaris
+PATH=${PATH}:/usr/ucb
+
+# add an existing java directory to $PATH to allow OOo to
+# automatically find it
+#
+if [ -d "@@PREFIX@@/java" ]; then
+ for i in @@PREFIX@@/java/*; do
+ if [ -f "$i/bin/java" ]; then
+ export PATH=$PATH:$i/bin
+ fi
+ done
+fi
+# default data seg size is too small for java
+ulimit -d `ulimit -H -d`
+
+
+# Let the standard pkgsrc libraries be found by dlopen()
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:@@PREFIX@@/lib
+export LD_LIBRARY_PATH
+
+exec ${SOINST}/program/soffice "$@"