summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbad <bad@pkgsrc.org>2009-01-31 22:05:53 +0000
committerbad <bad@pkgsrc.org>2009-01-31 22:05:53 +0000
commitfad663194f32424ad40686679ad529ed5434b3f0 (patch)
tree873a4c8271dd4c2f1460f81477f371544097384e
parent01b2dc372683c40a80f4e142948e6d7440959229 (diff)
downloadpkgsrc-fad663194f32424ad40686679ad529ed5434b3f0.tar.gz
Initial import of OpenOffice.org 3.0.1 package from pre-build binaries
provided by openoffice.org. Release notes available under: http://development.openoffice.org/releases/3.0.1.html http://development.openoffice.org/releases/3.0.0.html
-rw-r--r--misc/openoffice3-bin/DEINSTALL15
-rw-r--r--misc/openoffice3-bin/DESCR14
-rw-r--r--misc/openoffice3-bin/INSTALL18
-rw-r--r--misc/openoffice3-bin/Makefile78
-rw-r--r--misc/openoffice3-bin/PLIST.proglinks8
-rw-r--r--misc/openoffice3-bin/distinfo5
-rw-r--r--misc/openoffice3-bin/files/soffice17
-rw-r--r--misc/openoffice3-bin/files/soffice-patch17
-rw-r--r--misc/openoffice3-bin/options.mk12
9 files changed, 184 insertions, 0 deletions
diff --git a/misc/openoffice3-bin/DEINSTALL b/misc/openoffice3-bin/DEINSTALL
new file mode 100644
index 00000000000..a52ed5f56a3
--- /dev/null
+++ b/misc/openoffice3-bin/DEINSTALL
@@ -0,0 +1,15 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+#
+# This file contains the contents of the OOo rpm pre-uninstall,
+# post-uninstall scripts.
+
+PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
+
+case ${STAGE} in
+DEINSTALL)
+ if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
+ then
+ ${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
+ fi
+ ;;
+esac
diff --git a/misc/openoffice3-bin/DESCR b/misc/openoffice3-bin/DESCR
new file mode 100644
index 00000000000..0eecb8e7ef8
--- /dev/null
+++ b/misc/openoffice3-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/openoffice3-bin/INSTALL b/misc/openoffice3-bin/INSTALL
new file mode 100644
index 00000000000..e580b23e2fa
--- /dev/null
+++ b/misc/openoffice3-bin/INSTALL
@@ -0,0 +1,18 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+#
+# This file contains the contents of the OOo rpm pre-install, post-install
+# scripts.
+
+PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
+
+case ${STAGE} in
+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
+ ;;
+esac
diff --git a/misc/openoffice3-bin/Makefile b/misc/openoffice3-bin/Makefile
new file mode 100644
index 00000000000..d86c847acc6
--- /dev/null
+++ b/misc/openoffice3-bin/Makefile
@@ -0,0 +1,78 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+
+DISTNAME= openoffice3-bin # overridden below
+PKGNAME= openoffice3-bin-${OO_RELEASE}
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=stable/${OO_RELEASE}/}
+
+MAINTAINER= bad@NetBSD.org
+HOMEPAGE= http://www.openoffice.org/
+COMMENT= Integrated office productivity suite (binary pkg)
+
+CONFLICTS+= staroffice-[0-9]*
+CONFLICTS+= openoffice-[0-9]*
+CONFLICTS+= openoffice-bin-[0-9]*
+CONFLICTS+= openoffice2-bin-[0-9]*
+CONFLICTS+= openoffice2-[0-9]*
+CONFLICTS+= openoffice3-[0-9]*
+CONFLICTS+= openoffice-linux-[0-9]*
+
+OO_VER= 3
+OO_RELEASE= 3.0.1
+PLIST_SUBST+= VER=${OO_VER:Q}
+MESSAGE_SUBST+= VER=${OO_VER:Q}
+FILES_SUBST+= VER=${OO_VER:Q}
+
+TEMP?= ${WRKSRC}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+BUILD_DIRS= # empty
+
+PLIST_SRC= ${PKGDIR}/PLIST.proglinks
+PLIST_SRC+= ${WRKDIR}/PLIST
+
+EMUL_PLATFORMS= linux-i386
+#EMUL_PLATFORMS+= solaris-i386 solaris-sparc
+EMUL_MODULES.linux= compat freetype2 x11
+EMUL_REQD= suse>=10.0
+
+EMUL_PKG_FMT= rpm
+RPMFILES= ${WRKSRC}/RPMS/*.rpm
+RPM2PKG_PREFIX= ${PREFIX}
+RPM2PKG_SUBPREFIX= # empty
+RPM2PKG_STAGE= do-install
+RUN_LDCONFIG= no
+
+USE_TOOLS+= patch
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+DISTNAME= OOo_${OO_RELEASE}_LinuxIntel_install_en-US
+WRKSRC= ${WRKDIR}/OOO300_m15_native_packed-1_en-US.9379
+.elif ${EMUL_PLATFORM} == "solaris-i386"
+DISTNAME= OOo_${OO_RELEASE}_Solarisx86_install_en-US
+WRKSRC= ${WRKDIR}/OOO300_m15_native_packed-1_en-US.9379/packages
+.elif ${EMUL_PLATFORM} == "solaris-sparc"
+DISTNAME= OOo_${OO_RELEASE}_SolarisSparc_install_en-US
+WRKSRC= ${WRKDIR}/OOO300_m15_native_packed-1_en-US.9379/packages
+.endif
+
+.include "options.mk"
+
+do-install:
+ ${PATCH} -d ${PREFIX}/openoffice.org${OO_VER}/program < ${FILESDIR}/soffice-patch
+ uniq ${RPM2PKG_PLIST} > ${WRKDIR}/PLIST
+.if defined(PKG_JVM) && !empty(PKG_JVM)
+ ${RM} -f ${PREFIX}/bin/soffice
+ ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" -e "s|@@OO_VER@@|${OO_VER}|g" \
+ -e "s|@@JAVA_HOME@@|${PKG_JAVA_HOME}|g" \
+ < ${FILESDIR}/soffice > ${PREFIX}/bin/soffice
+ ${CHMOD} +x ${PREFIX}/bin/soffice
+.else
+ ${LN} -sf ../openoffice.org${OO_VER}/program/soffice ${PREFIX}/bin/soffice
+.endif
+.for i in scalc sdraw simpress smath spadmin swriter
+ ${LN} -sf ../openoffice.org${OO_VER}/program/${i} ${PREFIX}/bin/${i}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/openoffice3-bin/PLIST.proglinks b/misc/openoffice3-bin/PLIST.proglinks
new file mode 100644
index 00000000000..e77f2259487
--- /dev/null
+++ b/misc/openoffice3-bin/PLIST.proglinks
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.proglinks,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+bin/scalc
+bin/sdraw
+bin/simpress
+bin/smath
+bin/soffice
+bin/spadmin
+bin/swriter
diff --git a/misc/openoffice3-bin/distinfo b/misc/openoffice3-bin/distinfo
new file mode 100644
index 00000000000..a0235a643ab
--- /dev/null
+++ b/misc/openoffice3-bin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+
+SHA1 (OOo_3.0.1_LinuxIntel_install_en-US.tar.gz) = 6d3754ccb27e2a4b58635bc37e002e76f19bb4c7
+RMD160 (OOo_3.0.1_LinuxIntel_install_en-US.tar.gz) = fbf71e7192934472b1e2e477dd86f1471751c7fe
+Size (OOo_3.0.1_LinuxIntel_install_en-US.tar.gz) = 155910588 bytes
diff --git a/misc/openoffice3-bin/files/soffice b/misc/openoffice3-bin/files/soffice
new file mode 100644
index 00000000000..7cd6c4d8ae8
--- /dev/null
+++ b/misc/openoffice3-bin/files/soffice
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: soffice,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+#
+SOINST=@@PREFIX@@/openoffice.org@@OO_VER@@
+
+# make sure we can find `whoami` on solaris
+PATH=${PATH}:/usr/ucb
+
+# add the chosen java directory to $PATH to allow OOo to
+# automatically find it
+PATH=${PATH}:@@JAVA_HOME@@
+
+# default data seg size is too small for java
+ulimit -d `ulimit -H -d`
+
+exec ${SOINST}/program/soffice "$@"
diff --git a/misc/openoffice3-bin/files/soffice-patch b/misc/openoffice3-bin/files/soffice-patch
new file mode 100644
index 00000000000..416b9f44fe0
--- /dev/null
+++ b/misc/openoffice3-bin/files/soffice-patch
@@ -0,0 +1,17 @@
+#
+# $NetBSD: soffice-patch,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+#
+
+--- soffice.orig 2009-01-18 23:49:18.000000000 +0100
++++ soffice 2009-01-19 00:10:22.000000000 +0100
+@@ -73,6 +73,10 @@
+ esac
+ done
+
++# Set LD_LIBRARY_PATH so that javaldx finds libuno_sal.so.3:
++LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/../ure/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
++export LD_LIBRARY_PATH
++
+ # extend the ld_library_path for java: javaldx checks the sofficerc for us
+ if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+ my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
diff --git a/misc/openoffice3-bin/options.mk b/misc/openoffice3-bin/options.mk
new file mode 100644
index 00000000000..c7c2893147d
--- /dev/null
+++ b/misc/openoffice3-bin/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1.1.1 2009/01/31 22:05:53 bad Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openoffice-bin
+PKG_SUPPORTED_OPTIONS= java
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mjava)
+PKG_JVMS_ACCEPTED= blackdown-jdk13 sun-jdk13 sun-jdk14 sun-jdk15
+USE_JAVA= run
+.include "../../mk/java-vm.mk"
+.endif