summaryrefslogtreecommitdiff
path: root/misc/openoffice2-bin/Makefile
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
commit73255c04214c80641491cc967fadace5b301923f (patch)
tree4688625ab33e2ff1ad342ab1c89ba2b58a5c7904 /misc/openoffice2-bin/Makefile
parentcab31f738589abbb4937d01e446c730650c04347 (diff)
downloadpkgsrc-73255c04214c80641491cc967fadace5b301923f.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/openoffice2-bin/Makefile')
-rw-r--r--misc/openoffice2-bin/Makefile102
1 files changed, 102 insertions, 0 deletions
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"