2010-10-24 16:58:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.53 2010/10/24 21:16:25 ajacoutot Exp $
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
|
|
|
|
COMMENT-main= multi-platform productivity suite
|
|
|
|
COMMENT-kde= optional integration of OpenOffice to the KDE environment
|
|
|
|
COMMENT-java= optional integration of OpenOffice java features
|
|
|
|
|
2010-06-26 11:48:11 -04:00
|
|
|
VERSION= 3.2.1
|
2008-10-30 14:51:05 -04:00
|
|
|
DISTNAME= OOo_${VERSION}
|
2010-06-26 11:48:11 -04:00
|
|
|
WRKDIST= ${WRKDIR}/OOO320_m19
|
|
|
|
PKGNAME= openoffice-${VERSION}
|
2010-08-30 18:23:28 -04:00
|
|
|
PKGNAME-main= openoffice-${VERSION}
|
|
|
|
PKGNAME-kde= openoffice-kde-${VERSION}
|
|
|
|
PKGNAME-java= openoffice-java-${VERSION}
|
2010-10-11 04:11:24 -04:00
|
|
|
REVISION-main= 4
|
2010-08-30 18:23:28 -04:00
|
|
|
REVISION-kde= 1
|
2010-09-26 11:26:54 -04:00
|
|
|
REVISION-java= 2
|
2008-10-30 14:51:05 -04:00
|
|
|
CATEGORIES= editors productivity
|
|
|
|
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openoffice.org/
|
2009-01-30 20:06:20 -05:00
|
|
|
MASTER_SITES= http://vlaai.snt.utwente.nl/pub/software/openoffice/stable/${VERSION}/ \
|
|
|
|
http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/build/Sources/ \
|
2008-10-30 14:51:05 -04:00
|
|
|
http://humppa.hu/ooo/ \
|
|
|
|
ftp://ftp.ussg.iu.edu/pub/openoffice/stable/${VERSION}/ \
|
|
|
|
ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/OpenOffice/stable/${VERSION}/ \
|
|
|
|
ftp://ftp.tu-chemnitz.de/pub/openoffice/stable/${VERSION}/ \
|
|
|
|
ftp://ftp.nluug.nl/pub/office/openoffice/stable/${VERSION}/ \
|
|
|
|
http://vlaai.snt.utwente.nl/pub/software/openoffice/stable/${VERSION}/ \
|
2009-08-19 00:44:37 -04:00
|
|
|
ftp://openoffice.mirror.cygnal.ca/openoffice/stable/${VERSION}/
|
2008-10-30 14:51:05 -04:00
|
|
|
MASTER_SITES0= http://www.bsd.hu/~robert/ooo/ \
|
|
|
|
http://humppa.hu/ooo/
|
|
|
|
|
2009-12-22 05:38:55 -05:00
|
|
|
DISTFILES= ooo-desktop-0.2.tar.gz:0
|
2009-05-08 11:43:50 -04:00
|
|
|
|
2009-01-30 20:06:20 -05:00
|
|
|
.for dfile in binfilter core extensions l10n system
|
|
|
|
DISTFILES+= ${DISTNAME}_src_${dfile}.tar.bz2
|
|
|
|
.endfor
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
DIST_SUBDIR= openoffice
|
|
|
|
|
|
|
|
# See http://www.openoffice.org/about.html#licenses
|
|
|
|
# and http://www.openoffice.org/license.html
|
2009-08-10 10:07:43 -04:00
|
|
|
# and http://www.openoffice.org/FAQs/faq-licensing.html
|
2008-10-30 14:51:05 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2009-05-08 11:43:50 -04:00
|
|
|
MULTI_PACKAGES= -main -kde
|
2008-10-30 14:51:05 -04:00
|
|
|
|
2009-05-08 11:43:50 -04:00
|
|
|
PSEUDO_FLAVORS= normal_build parallel no_lang
|
|
|
|
FLAVORS= debug no_java
|
2008-10-30 14:51:05 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2009-05-08 11:43:50 -04:00
|
|
|
.if ${FLAVOR:L:Mparallel}
|
|
|
|
DISTFILES+= nbcat-0.1.tar.gz:0
|
|
|
|
.else
|
|
|
|
SUPDISTFILES+= nbcat-0.1.tar.gz:0
|
|
|
|
.endif
|
|
|
|
|
2009-05-08 11:47:32 -04:00
|
|
|
.if !${FLAVOR:L:Mno_java}
|
2009-05-08 11:43:50 -04:00
|
|
|
MULTI_PACKAGES+= -java
|
|
|
|
.endif
|
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
.if !${FLAVOR:L:Mno_lang}
|
|
|
|
LANGS= bg ca de es fa fi fr hu it ja ko \
|
|
|
|
lt lv nl pl pt-BR ru sl sv
|
|
|
|
|
|
|
|
.for l in ${LANGS:L}
|
|
|
|
MULTI_PACKAGES+= -i18n-$l
|
2010-06-26 11:48:11 -04:00
|
|
|
PKGNAME-i18n-$l= openoffice-i18n-$l-${VERSION}
|
2010-09-29 11:46:29 -04:00
|
|
|
REVISION-i18n-$l= 0
|
2008-10-30 14:51:05 -04:00
|
|
|
COMMENT-i18n-$l= $l language pack for OpenOffice.Org
|
2009-02-09 15:36:02 -05:00
|
|
|
RUN_DEPENDS-i18n-$l= ::editors/openoffice3
|
2008-10-30 14:51:05 -04:00
|
|
|
WANTLIB-i18n-$l=
|
|
|
|
LIB_DEPENDS-i18n-$l=
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= :zip-*:archivers/zip \
|
|
|
|
:unzip-*:archivers/unzip \
|
2010-04-12 14:45:27 -04:00
|
|
|
:gtar-*:archivers/gtar \
|
2008-10-30 14:51:05 -04:00
|
|
|
:bison-*:devel/bison \
|
|
|
|
:tcsh-*:shells/tcsh \
|
2009-02-06 18:06:27 -05:00
|
|
|
:bash-*:shells/bash \
|
2008-10-30 14:51:05 -04:00
|
|
|
:p5-Archive-Zip-*:archivers/p5-Archive-Zip \
|
|
|
|
::print/cups \
|
2010-04-06 17:56:31 -04:00
|
|
|
:boost->=1.41.0:devel/boost \
|
Security fix: Use the xpdf version from our portstree for the pdf
importer. This basically updates the xpdf version used by the
importer from xpdf-3.02pl3 to xpdf-3.02pl4 and probably addresses
CVE-2009-3603, CVE-2009-3604, CVE-2009-3605, CVE-2009-3606,
CVE-2009-3608, and CVE-2009-3609.
I tried to build the pdf importer with poppler, but it failed badly
on PDF files containing any graphics.
While here, disable the (snake oil) DRM "feature", like we already
do in xpdf and poppler, and pass the correct flags to the xpdf
build.
Note: the extension concept of this software is stupid^W"enterprise
ready". If you ever enabled the pdf importing extension, you will
have to disable and re-enable it to get the new extension installed
(somewhere under ~/.openoffice.org or similar).
"just fucking commit you slacker ;)" robert@
2009-11-28 13:33:57 -05:00
|
|
|
:xpdf-3.02:textproc/xpdf:patch
|
2008-10-30 14:51:05 -04:00
|
|
|
|
2009-08-10 10:07:43 -04:00
|
|
|
MODULES+= lang/python \
|
|
|
|
devel/gconf2
|
|
|
|
MODGCONF2_LIBDEP=No
|
2010-09-30 03:21:18 -04:00
|
|
|
LIB_DEPENDS-main=gdk-x11-2.0.>=400.14,gtk-x11-2.0.>=400.14::x11/gtk+2 \
|
2008-10-30 14:51:05 -04:00
|
|
|
${MODPY_LIB_DEPENDS} \
|
2009-03-15 09:23:36 -04:00
|
|
|
db.>=4:db->=4,<5:databases/db/v4 \
|
2008-10-30 14:51:05 -04:00
|
|
|
xslt.>=3::textproc/libxslt \
|
|
|
|
curl.>=7::net/curl \
|
|
|
|
neon.>=24::net/neon \
|
|
|
|
wpd.>=8::textproc/libwpd \
|
2009-08-10 10:07:43 -04:00
|
|
|
icuuc.>=0,icudata.>=0,icui18n,icule::textproc/icu4c \
|
2009-01-22 12:44:38 -05:00
|
|
|
::devel/gperf \
|
2009-01-30 20:06:20 -05:00
|
|
|
raptor.>=2::textproc/raptor \
|
2009-08-10 10:07:43 -04:00
|
|
|
rasqal,rdf.>=0::textproc/redland \
|
|
|
|
${MODGCONF2_LIB_DEPENDS}
|
|
|
|
WANTLIB-main= ICE ORBit-2 SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp \
|
|
|
|
Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo \
|
|
|
|
crypto dbus-1 expat fontconfig freetype gio-2.0 glib-2.0 \
|
2010-10-11 04:11:24 -04:00
|
|
|
gmodule-2.0 gobject-2.0 gthread-2.0 iconv intl \
|
2009-08-10 10:07:43 -04:00
|
|
|
jpeg m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
|
2010-09-30 03:21:18 -04:00
|
|
|
png pthread pthread-stubs ssl util xcb xml2 z gdk_pixbuf-2.0
|
2010-10-24 11:53:55 -04:00
|
|
|
WANTLIB-main += ${MODPY_WANTLIB}
|
2009-05-08 11:43:50 -04:00
|
|
|
RUN_DEPENDS-main= :desktop-file-utils-*:devel/desktop-file-utils
|
2008-10-30 14:51:05 -04:00
|
|
|
|
2010-05-26 16:36:31 -04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${COMPILER_VERSION:L:Mgcc4}
|
|
|
|
STDLIB= stdc++
|
|
|
|
.else
|
|
|
|
STDLIB= estdc++
|
|
|
|
LIB_DEPENDS-main+= estdc++.>=11:libstdc++->=4.2,<4.3|libstdc++->=4.2v0,<4.3v0:lang/gcc/4.2,-estdc
|
|
|
|
.endif
|
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
MODULES+= x11/qt3
|
2009-02-09 15:36:02 -05:00
|
|
|
RUN_DEPENDS-kde= ::editors/openoffice3
|
2008-10-30 14:51:05 -04:00
|
|
|
LIB_DEPENDS-kde= ${MODQT_LIB_DEPENDS} \
|
|
|
|
kabc,kdecore,kdeui,kio::x11/kde/libs3
|
2010-05-26 16:36:31 -04:00
|
|
|
WANTLIB-kde= X11 Xau Xdmcp Xext Xrandr Xrender ${STDLIB} m \
|
2009-08-10 02:29:51 -04:00
|
|
|
pthread-stubs xcb
|
2008-10-30 14:51:05 -04:00
|
|
|
|
2009-05-08 11:47:32 -04:00
|
|
|
.if !${FLAVOR:L:Mno_java}
|
2008-10-30 14:51:05 -04:00
|
|
|
MODULES+= java
|
|
|
|
MODJAVA_VER= 1.4+
|
|
|
|
MODJAVA_JRERUN= Yes
|
2009-05-08 11:43:50 -04:00
|
|
|
.endif
|
|
|
|
LIB_DEPENDS-java= :db-java->=4,<5:databases/db/v4,-java,java \
|
|
|
|
::devel/apache-ant
|
2008-10-30 14:51:05 -04:00
|
|
|
RUN_DEPENDS-java= ${MODJAVA_RUN_DEPENDS} \
|
2009-02-09 15:36:02 -05:00
|
|
|
::editors/openoffice3 \
|
2009-05-08 11:43:50 -04:00
|
|
|
::java/javaPathHelper
|
2010-05-26 16:36:31 -04:00
|
|
|
WANTLIB-java= c ${STDLIB} m pthread
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
|
|
|
PATCHORIG= .orig.port
|
|
|
|
|
|
|
|
MODULES+= gcc4
|
|
|
|
MODGCC4_ARCHES= *
|
|
|
|
MODGCC4_LANGS= c c++
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
AUTOCONF_DIR= ${WRKCONF}
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
2009-04-26 07:01:04 -04:00
|
|
|
QTINC="${MODQT_INCDIR}" QTDIR="${MODQT_LIBDIR}"
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --disable-gnome-vfs \
|
|
|
|
--disable-mozilla \
|
|
|
|
--disable-odk \
|
|
|
|
--disable-pasf \
|
|
|
|
--enable-cairo \
|
|
|
|
--enable-kde \
|
2010-03-30 07:03:07 -04:00
|
|
|
--enable-hids \
|
2008-10-30 14:51:05 -04:00
|
|
|
--with-system-jpeg \
|
|
|
|
--with-system-python \
|
|
|
|
--with-system-libxml \
|
|
|
|
--with-system-stdlibs \
|
|
|
|
--with-system-freetype \
|
|
|
|
--with-system-curl \
|
|
|
|
--with-system-zlib \
|
|
|
|
--with-system-expat \
|
|
|
|
--with-system-neon \
|
|
|
|
--with-system-db \
|
|
|
|
--with-system-boost \
|
|
|
|
--with-system-libwpd \
|
|
|
|
--with-system-openssl \
|
|
|
|
--with-system-icu \
|
2009-01-22 12:44:38 -05:00
|
|
|
--with-system-redland \
|
2008-10-30 14:51:05 -04:00
|
|
|
--with-epm=internal \
|
|
|
|
--with-alloc=system \
|
2009-01-30 20:06:20 -05:00
|
|
|
--with-vba-package-format="builtin" \
|
2008-10-30 14:51:05 -04:00
|
|
|
--with-lang="en-US ${LANGS}"
|
|
|
|
|
2009-05-08 11:47:32 -04:00
|
|
|
.if !${FLAVOR:L:Mno_java}
|
2009-05-08 11:43:50 -04:00
|
|
|
CONFIGURE_ARGS+=--with-java \
|
|
|
|
--with-jdk-home=${JAVA_HOME} \
|
|
|
|
--with-ant-home=${LOCALBASE}/ant/lib \
|
2010-09-26 11:26:54 -04:00
|
|
|
--with-db-jar=${LOCALBASE}/lib/db4/db.jar \
|
|
|
|
--enable-report-builder \
|
|
|
|
--enable-wiki-publisher
|
|
|
|
EXTENSIONS = swext/wiki-publisher.oxt \
|
|
|
|
report-builder.oxt
|
2009-05-08 11:43:50 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-java
|
|
|
|
.endif
|
|
|
|
|
2009-01-22 12:44:38 -05:00
|
|
|
# Some cool OpenOffice.Org extensions
|
2009-01-30 20:06:20 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-minimizer \
|
|
|
|
--enable-presenter-console \
|
2010-09-26 11:26:54 -04:00
|
|
|
--enable-pdfimport
|
|
|
|
EXTENSIONS += minimizer/presentation-minimizer.oxt \
|
2009-01-30 20:06:20 -05:00
|
|
|
presenter/presenter-screen.oxt \
|
2010-09-26 11:26:54 -04:00
|
|
|
pdfimport/pdfimport.oxt
|
2009-01-22 12:44:38 -05:00
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
CONFIGURE_ARGS+= --enable-symbols \
|
|
|
|
--enable-debug
|
|
|
|
.endif
|
|
|
|
|
Security fix: Use the xpdf version from our portstree for the pdf
importer. This basically updates the xpdf version used by the
importer from xpdf-3.02pl3 to xpdf-3.02pl4 and probably addresses
CVE-2009-3603, CVE-2009-3604, CVE-2009-3605, CVE-2009-3606,
CVE-2009-3608, and CVE-2009-3609.
I tried to build the pdf importer with poppler, but it failed badly
on PDF files containing any graphics.
While here, disable the (snake oil) DRM "feature", like we already
do in xpdf and poppler, and pass the correct flags to the xpdf
build.
Note: the extension concept of this software is stupid^W"enterprise
ready". If you ever enabled the pdf importing extension, you will
have to disable and re-enable it to get the new extension installed
(somewhere under ~/.openoffice.org or similar).
"just fucking commit you slacker ;)" robert@
2009-11-28 13:33:57 -05:00
|
|
|
MAKE_ENV+= envcflags="${CFLAGS}" LOCALBASE="${LOCALBASE}"
|
2010-03-30 07:03:07 -04:00
|
|
|
.if !${FLAVOR:L:Mno_java}
|
|
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${JAVA_HOME}/jre/lib/${ARCH}:${JAVA_HOME}/jre/lib/${ARCH}/client:${JAVA_HOME}/jre/lib/${ARCH}/server
|
|
|
|
.endif
|
2010-09-26 11:26:54 -04:00
|
|
|
MAKE_ENV+= TMP=${WRKSRC} PYTHON="${MODPY_BIN}"
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
# kludge
|
|
|
|
TCSH= ${LOCALBASE}/bin/tcsh
|
|
|
|
|
2009-05-08 11:43:50 -04:00
|
|
|
.if ${FLAVOR:L:Mparallel}
|
|
|
|
NCPU!= echo $$((`sysctl -n hw.ncpu`+1))
|
2010-03-30 07:03:07 -04:00
|
|
|
NCPUFLAG= -P ${NCPU}
|
2009-05-08 11:43:50 -04:00
|
|
|
.endif
|
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
.if ${FLAVOR:L:Mnormal_build}
|
2010-04-02 04:25:33 -04:00
|
|
|
BUILD_CMD= cd instsetoo_native && build.pl ${NCPUFLAG} --all && \
|
2009-05-08 11:43:50 -04:00
|
|
|
cd util && dmake ooolanguagepack
|
2008-10-30 14:51:05 -04:00
|
|
|
.else
|
2010-04-02 04:25:33 -04:00
|
|
|
BUILD_CMD= cd instsetoo_native && build.pl ${NCPUFLAG} --all --dlv_switch -link && \
|
2008-10-30 14:51:05 -04:00
|
|
|
cd util && dmake ooolanguagepack
|
|
|
|
.endif
|
|
|
|
|
Security fix: Use the xpdf version from our portstree for the pdf
importer. This basically updates the xpdf version used by the
importer from xpdf-3.02pl3 to xpdf-3.02pl4 and probably addresses
CVE-2009-3603, CVE-2009-3604, CVE-2009-3605, CVE-2009-3606,
CVE-2009-3608, and CVE-2009-3609.
I tried to build the pdf importer with poppler, but it failed badly
on PDF files containing any graphics.
While here, disable the (snake oil) DRM "feature", like we already
do in xpdf and poppler, and pass the correct flags to the xpdf
build.
Note: the extension concept of this software is stupid^W"enterprise
ready". If you ever enabled the pdf importing extension, you will
have to disable and re-enable it to get the new extension installed
(somewhere under ~/.openoffice.org or similar).
"just fucking commit you slacker ;)" robert@
2009-11-28 13:33:57 -05:00
|
|
|
post-extract:
|
|
|
|
@mkdir -p ${WRKDIST}/xpdf/unxobsd.pro/misc
|
2010-06-26 11:48:11 -04:00
|
|
|
@mv ${WRKDIR}/textproc/xpdf/xpdf-3.02 ${WRKDIST}/xpdf/unxobsd.pro/misc/ > \
|
|
|
|
${WRKDIST}/xpdf/unxobsd.pro/misc/so_unpacked_xpdflib
|
Security fix: Use the xpdf version from our portstree for the pdf
importer. This basically updates the xpdf version used by the
importer from xpdf-3.02pl3 to xpdf-3.02pl4 and probably addresses
CVE-2009-3603, CVE-2009-3604, CVE-2009-3605, CVE-2009-3606,
CVE-2009-3608, and CVE-2009-3609.
I tried to build the pdf importer with poppler, but it failed badly
on PDF files containing any graphics.
While here, disable the (snake oil) DRM "feature", like we already
do in xpdf and poppler, and pass the correct flags to the xpdf
build.
Note: the extension concept of this software is stupid^W"enterprise
ready". If you ever enabled the pdf importing extension, you will
have to disable and re-enable it to get the new extension installed
(somewhere under ~/.openoffice.org or similar).
"just fucking commit you slacker ;)" robert@
2009-11-28 13:33:57 -05:00
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
pre-patch:
|
2009-05-08 11:43:50 -04:00
|
|
|
.if ${FLAVOR:L:Mparallel}
|
|
|
|
ln -fs ${WRKDIR}/cat.${ARCH} ${WRKDIR}/bin/cat
|
|
|
|
.endif
|
2008-10-30 14:51:05 -04:00
|
|
|
.for arch in intel x86-64
|
|
|
|
@cd ${WRKSRC}/bridges/source/cpp_uno && \
|
|
|
|
cp -R gcc3_freebsd_${arch} gcc3_openbsd_${arch} && \
|
|
|
|
perl -pi -e "s,FREEBSD,OPENBSD,g" gcc3_openbsd_${arch}/makefile.mk
|
|
|
|
.endfor
|
|
|
|
|
2010-05-26 16:36:31 -04:00
|
|
|
post-patch:
|
|
|
|
.for f in external/gcc3_specific/makefile.mk solenv/inc/unxobsd.mk
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
perl -pi -e "s,%%STDLIB%%,${STDLIB},g" ${f}
|
|
|
|
.endfor
|
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKBUILD} && \
|
|
|
|
./bootstrap && \
|
2009-08-10 10:07:43 -04:00
|
|
|
${SETENV} ${MAKE_ENV} ${TCSH} -c 'limit descriptors 256 && source OpenBSDEnv.Set && ${BUILD_CMD}'
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
do-install:
|
2009-01-30 20:06:20 -05:00
|
|
|
@rm -Rf ${WRKDIR}/tmp
|
|
|
|
@mkdir ${WRKDIR}/tmp
|
|
|
|
|
2008-10-30 14:51:05 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/openoffice
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/48x48/apps
|
|
|
|
|
|
|
|
cd ${WRKDIR}/ooo-desktop && \
|
|
|
|
for DFILE in `ls -1 *.desktop`; do \
|
|
|
|
${INSTALL_DATA} $$DFILE \
|
|
|
|
${PREFIX}/share/applications/openoffice; \
|
|
|
|
done && \
|
|
|
|
for ICONS in `ls -1 *.png`; do \
|
|
|
|
${INSTALL_DATA} $$ICONS ${PREFIX}/share/icons/hicolor/48x48/apps; \
|
|
|
|
done
|
|
|
|
|
2010-03-30 07:03:07 -04:00
|
|
|
cd ${WRKSRC}/instsetoo_native/unxobsd.pro/OpenOffice/portable/install/en-US/openbsd && \
|
2008-10-30 14:51:05 -04:00
|
|
|
for SW in `ls -1 *.sw`; do \
|
2009-01-30 20:06:20 -05:00
|
|
|
${TAR} xf $$SW -C ${WRKDIR}/tmp; \
|
2008-10-30 14:51:05 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
.for l in ${LANGS}
|
2010-03-30 07:03:07 -04:00
|
|
|
cd ${WRKSRC}/instsetoo_native/unxobsd.pro/OpenOffice_languagepack/portable/install/$l/openbsd && \
|
2008-10-30 14:51:05 -04:00
|
|
|
for SW in `ls -1 *.sw`; do \
|
2009-01-30 20:06:20 -05:00
|
|
|
${TAR} xf $$SW -C ${WRKDIR}/tmp; \
|
2008-10-30 14:51:05 -04:00
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
|
2009-01-30 20:06:20 -05:00
|
|
|
cd ${WRKDIR}/tmp/opt ; ${TAR} cf - -C . . | ${TAR} xf - -C ${PREFIX}
|
|
|
|
|
2010-03-30 07:03:07 -04:00
|
|
|
cd ${WRKSRC}/solver/320/unxobsd.pro/bin && \
|
2009-01-30 20:06:20 -05:00
|
|
|
${INSTALL_DATA} ${EXTENSIONS} ${PREFIX}/openoffice.org3/share/extension/install
|
2008-10-30 14:51:05 -04:00
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/soffice.sh ${PREFIX}/bin/soffice
|
|
|
|
perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g; \
|
|
|
|
s,%%X11BASE%%,${X11BASE},g" \
|
|
|
|
${PREFIX}/bin/soffice \
|
|
|
|
|
|
|
|
cd ${PREFIX}/bin && \
|
|
|
|
for app in sbase scalc sdraw simpress smath setofficelang spadmin swriter; do \
|
|
|
|
ln -sf soffice $$app ; done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|