pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/openoffice2 - Use hardcoded file list instead of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e42958790000
branches:  trunk
changeset: 535205:e42958790000
user:      hira <hira%pkgsrc.org@localhost>
date:      Sun Nov 11 03:35:35 2007 +0000

description:
- Use hardcoded file list instead of output of ls(1).  The output is
   broken on some environment (sorry, I don't know why).
   Reported and tested by wiz@.
 - Use external expat and jpeg.  Requested by wiz@.
 - Add `ooo-external-libwpd' option.  It's disabled by default
   bacause the converters/libwpd depends on some GNOME libraries.

Bump PKGREVISION.

diffstat:

 misc/openoffice2/Makefile               |  20 +++++++++++++++++++-
 misc/openoffice2/Makefile.NetBSD.i386   |   4 ++--
 misc/openoffice2/Makefile.NetBSD.x86_64 |   4 ++--
 misc/openoffice2/distinfo               |   4 +++-
 misc/openoffice2/options.mk             |  12 +++++++++---
 misc/openoffice2/patches/patch-cw       |  32 ++++++++++++++++++++++++++++++++
 misc/openoffice2/patches/patch-cx       |  31 +++++++++++++++++++++++++++++++
 7 files changed, 98 insertions(+), 9 deletions(-)

diffs (199 lines):

diff -r 09be21349171 -r e42958790000 misc/openoffice2/Makefile
--- a/misc/openoffice2/Makefile Sun Nov 11 01:25:09 2007 +0000
+++ b/misc/openoffice2/Makefile Sun Nov 11 03:35:35 2007 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.26 2007/10/12 15:41:43 hira Exp $
+# $NetBSD: Makefile,v 1.27 2007/11/11 03:35:35 hira Exp $
 #
 
 OO_VER=                        2.3.0
 DISTNAME=              openoffice-${OO_VER}
 PKGNAME=               openoffice2-${OO_VER}
+PKGREVISION=           1
 CATEGORIES=            misc
 MASTER_SITES=          ${MASTER_SITE_OPENOFFICE:=stable/${OO_VER}/}
 DIST_SUBDIR=           ${DISTNAME}
@@ -48,13 +49,28 @@
 ONLY_FOR_PLATFORM+=    NetBSD-1.6Z[G-Z]*-x86_64 NetBSD-[2-9]*-x86_64
 
 GNU_CONFIGURE=         yes
+
+SUBST_CLASSES+=                lib
+SUBST_STAGE.lib=       post-patch
+SUBST_MESSAGE.lib=     Adding library paths
+SUBST_FILES.lib=       solenv/inc/libs.mk
+.for pkg in expat jpeg zlib
+SUBST_SED.lib+=                -e 's,@BLNK_PREFIX_${pkg}@,${BUILDLINK_PREFIX.${pkg}},g'
+LIBS+=                 -L${BUILDLINK_PREFIX.${pkg}}/lib
+LIBS+=                 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${pkg}}/lib
+.endfor
+
+CONFIGURE_ENV+=                LIBS=${LIBS:O:u:Q}
 CONFIGURE_ENV+=                X_LIBS=${X11_LDFLAGS:M*:Q}
+
 CONFIGURE_ARGS+=       --with-use-shell=bash
 CONFIGURE_ARGS+=       --enable-binfilter
 CONFIGURE_ARGS+=       --enable-cairo
 CONFIGURE_ARGS+=       --disable-ldap
 CONFIGURE_ARGS+=       --with-system-stdlibs
+CONFIGURE_ARGS+=       --with-system-expat
 CONFIGURE_ARGS+=       --with-system-freetype
+CONFIGURE_ARGS+=       --with-system-jpeg
 CONFIGURE_ARGS+=       --with-system-libxml2
 CONFIGURE_ARGS+=       --with-system-libxslt
 CONFIGURE_ARGS+=       --with-system-python
@@ -155,6 +171,8 @@
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../textproc/libxslt/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
diff -r 09be21349171 -r e42958790000 misc/openoffice2/Makefile.NetBSD.i386
--- a/misc/openoffice2/Makefile.NetBSD.i386     Sun Nov 11 01:25:09 2007 +0000
+++ b/misc/openoffice2/Makefile.NetBSD.i386     Sun Nov 11 03:35:35 2007 +0000
@@ -1,5 +1,5 @@
-# $NetBSD: Makefile.NetBSD.i386,v 1.2 2007/04/05 23:24:01 hira Exp $
+# $NetBSD: Makefile.NetBSD.i386,v 1.3 2007/11/11 03:35:35 hira Exp $
 
-OPENOFFICE_DLLSUFFIX=  bi
+#OPENOFFICE_DLLSUFFIX= bi
 OPENOFFICE_OUTPATH=    unxbsdi3
 OPENOFFICE_SETFILE=    NetBSDX86
diff -r 09be21349171 -r e42958790000 misc/openoffice2/Makefile.NetBSD.x86_64
--- a/misc/openoffice2/Makefile.NetBSD.x86_64   Sun Nov 11 01:25:09 2007 +0000
+++ b/misc/openoffice2/Makefile.NetBSD.x86_64   Sun Nov 11 03:35:35 2007 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.NetBSD.x86_64,v 1.1 2007/10/12 15:41:43 hira Exp $
+# $NetBSD: Makefile.NetBSD.x86_64,v 1.2 2007/11/11 03:35:35 hira Exp $
 
-OPENOFFICE_DLLSUFFIX=  bx
+#OPENOFFICE_DLLSUFFIX= bx
 OPENOFFICE_OUTPATH=    unxbsdx3
 OPENOFFICE_SETFILE=    NetBSDX86-64
 
diff -r 09be21349171 -r e42958790000 misc/openoffice2/distinfo
--- a/misc/openoffice2/distinfo Sun Nov 11 01:25:09 2007 +0000
+++ b/misc/openoffice2/distinfo Sun Nov 11 03:35:35 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2007/10/12 15:41:43 hira Exp $
+$NetBSD: distinfo,v 1.27 2007/11/11 03:35:35 hira Exp $
 
 SHA1 (openoffice-2.3.0/OOo_2.3.0_src_binfilter.tar.bz2) = a45b356092fc61aba68d0b7536bb3f723cd62937
 RMD160 (openoffice-2.3.0/OOo_2.3.0_src_binfilter.tar.bz2) = 441a43c2a2d5418c9d3b55a89790f31598000bde
@@ -63,3 +63,5 @@
 SHA1 (patch-ct) = f895442c141fb7cc172adca4903bbf784dbe3594
 SHA1 (patch-cu) = b930fd94413c2bdf23ea94b074e3bb5e93784009
 SHA1 (patch-cv) = 2e14a54d369a255ee39fcec7d4f1d2b11a8f4d2e
+SHA1 (patch-cw) = 48545a27326abbfc464cae877262bc8735bb5c01
+SHA1 (patch-cx) = 12bedb293cc3d930fb746884645816648caa2356
diff -r 09be21349171 -r e42958790000 misc/openoffice2/options.mk
--- a/misc/openoffice2/options.mk       Sun Nov 11 01:25:09 2007 +0000
+++ b/misc/openoffice2/options.mk       Sun Nov 11 03:35:35 2007 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: options.mk,v 1.14 2007/10/08 15:06:07 hira Exp $
+# $NetBSD: options.mk,v 1.15 2007/11/11 03:35:36 hira Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.openoffice2
-PKG_SUPPORTED_OPTIONS=         cups gnome gtk2 kde
+PKG_SUPPORTED_OPTIONS=         cups gnome gtk2 kde ooo-external-libwpd
 PKG_OPTIONS_OPTIONAL_GROUPS=   browser
 PKG_OPTIONS_GROUP.browser=     firefox seamonkey # firefox-gtk1 seamonkey-gtk1
-# The list from solenv/inc/postset.mk:completelangiso.
+# The list from completelangiso in solenv/inc/postset.mk.
 OO_SUPPORTED_LANGUAGES=                af ar as-IN be-BY bg br bn bn-BD bn-IN bs ca \
                                cs cy da de dz el en-GB en-US en-ZA eo es et \
                                eu fa fi fr ga gl gu-IN he hi-IN hr hu it ja \
@@ -33,6 +33,7 @@
 .elif !empty(PKG_OPTIONS:Mseamonkey)
 CONFIGURE_ARGS+=       --with-system-mozilla=seamonkey
 .include "../../www/seamonkey/buildlink3.mk"
+# The following browsers do not install *.pc files.
 #.elif !empty(PKG_OPTIONS:Mfirefox-gtk1)
 #CONFIGURE_ARGS+=      --with-system-mozilla=firefox
 #.include "../../www/firefox-gtk1/buildlink3.mk"
@@ -43,6 +44,11 @@
 CONFIGURE_ARGS+=       --disable-mozilla
 .endif
 
+.if !empty(PKG_OPTIONS:Mooo-external-libwpd)
+CONFIGURE_ARGS+=       --with-system-libwpd
+.include "../../converters/libwpd/buildlink3.mk"
+.endif
+
 .if !empty(PKG_OPTIONS:Mcups)
 CONFIGURE_ARGS+=       --enable-cups
 .include "../../print/cups/buildlink3.mk"
diff -r 09be21349171 -r e42958790000 misc/openoffice2/patches/patch-cw
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2/patches/patch-cw Sun Nov 11 03:35:35 2007 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-cw,v 1.1 2007/11/11 03:35:36 hira Exp $
+
+--- i18npool/source/collator/makefile.mk.orig  2007-01-26 00:25:50.000000000 +0900
++++ i18npool/source/collator/makefile.mk       2007-11-09 02:40:37.000000000 +0900
+@@ -46,7 +46,26 @@
+ 
+ # --- Files --------------------------------------------------------
+ 
+-tempvar:=$(shell cd data && ls *.txt)
++tempvar= \
++      dz_charset.txt \
++      hu_charset.txt \
++      ja_charset.txt \
++      ja_phonetic_alphanumeric_first.txt \
++      ja_phonetic_alphanumeric_last.txt \
++      km_charset.txt \
++      ko_charset.txt \
++      ku_alphanumeric.txt \
++      ln_charset.txt \
++      ne_charset.txt \
++      vi_charset.txt \
++      zh_TW_charset.txt \
++      zh_TW_radical.txt \
++      zh_TW_stroke.txt \
++      zh_charset.txt \
++      zh_pinyin.txt \
++      zh_radical.txt \
++      zh_stroke.txt \
++      zh_zhuyin.txt
+ LOCAL_RULE_LANGS:=$(uniq $(foreach,i,$(tempvar) $(i:s/-/_/:s/_/ /:1)))
+ rules_dependencies:=$(foreach,i,$(tempvar) data$/$i)
+ 
diff -r 09be21349171 -r e42958790000 misc/openoffice2/patches/patch-cx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2/patches/patch-cx Sun Nov 11 03:35:35 2007 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-cx,v 1.1 2007/11/11 03:35:36 hira Exp $
+
+--- solenv/inc/libs.mk.orig    2007-11-09 05:07:41.000000000 +0900
++++ solenv/inc/libs.mk 2007-11-09 05:19:45.000000000 +0900
+@@ -187,14 +187,14 @@
+ LINGULIB=$(HM2LIBST)
+ LNGLIB=-llng$(OFFICEUPD)$(DLLPOSTFIX)
+ .IF "$(SYSTEM_EXPAT)"=="YES"
+-EXPAT3RDLIB=-lexpat
+-EXPATASCII3RDLIB=-lexpat
++EXPAT3RDLIB="-L@BLNK_PREFIX_expat@/lib -Wl,-R@BLNK_PREFIX_expat@/lib -lexpat"
++EXPATASCII3RDLIB="-L@BLNK_PREFIX_expat@/lib -Wl,-R@BLNK_PREFIX_expat@/lib -lexpat"
+ .ELSE
+ EXPAT3RDLIB=-lexpat_xmlparse -lexpat_xmltok
+ EXPATASCII3RDLIB=-lascii_expat_xmlparse -lexpat_xmltok
+ .ENDIF
+ .IF "$(SYSTEM_ZLIB)"=="YES"
+-ZLIB3RDLIB=-lz
++ZLIB3RDLIB="-L@BLNK_PREFIX_zlib@/lib -Wl,-R@BLNK_PREFIX_zlib@/lib -lz"
+ .ELSE
+ ZLIB3RDLIB=-lzlib
+ .ENDIF
+@@ -209,7 +209,7 @@
+ JPEG3RDLIB=/usr/lib/libjpeg.so
+ .ENDIF
+ .ELSE
+-JPEG3RDLIB=-ljpeg
++JPEG3RDLIB="-L@BLNK_PREFIX_jpeg@/lib -Wl,-R@BLNK_PREFIX_jpeg@/lib -ljpeg"
+ .ENDIF
+ .ELSE
+ JPEG3RDLIB=-ljpeglib



Home | Main Index | Thread Index | Old Index