summaryrefslogtreecommitdiff
path: root/misc/openoffice2
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2007-11-17 16:28:09 +0000
committerhira <hira@pkgsrc.org>2007-11-17 16:28:09 +0000
commit588bdc350df5decb1453f13e6c48091039fcfaa4 (patch)
tree9c1e8b5c3328fdb53530a5c1cb3ef2e4ddcd53d4 /misc/openoffice2
parent0a6bd0ea3817aad17bc0748dca9aed307f80154e (diff)
downloadpkgsrc-588bdc350df5decb1453f13e6c48091039fcfaa4.tar.gz
Use external db4 and neon. Bump PKGREVISION.
Diffstat (limited to 'misc/openoffice2')
-rw-r--r--misc/openoffice2/Makefile11
-rw-r--r--misc/openoffice2/Makefile.NetBSD.x86_643
-rw-r--r--misc/openoffice2/distinfo6
-rw-r--r--misc/openoffice2/patches/patch-ba39
-rw-r--r--misc/openoffice2/patches/patch-cx17
5 files changed, 64 insertions, 12 deletions
diff --git a/misc/openoffice2/Makefile b/misc/openoffice2/Makefile
index 00df41fd5fa..2a89d69490b 100644
--- a/misc/openoffice2/Makefile
+++ b/misc/openoffice2/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.28 2007/11/11 15:46:25 hira Exp $
+# $NetBSD: Makefile,v 1.29 2007/11/17 16:28:09 hira Exp $
#
OO_VER= 2.3.0
DISTNAME= openoffice-${OO_VER}
PKGNAME= openoffice2-${OO_VER}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=stable/${OO_VER}/}
DIST_SUBDIR= ${DISTNAME}
@@ -54,7 +54,7 @@ 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
+.for pkg in db4 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
@@ -62,6 +62,7 @@ LIBS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${pkg}}/lib
CONFIGURE_ENV+= LIBS=${LIBS:O:u:Q}
CONFIGURE_ENV+= X_LIBS=${X11_LDFLAGS:M*:Q}
+CONFIGURE_ENV+= BLNK_PREFIX_db4=${BUILDLINK_PREFIX.db4}
CONFIGURE_ENV+= BLNK_PREFIX_nas=${BUILDLINK_PREFIX.nas}
CONFIGURE_ARGS+= --with-use-shell=bash
@@ -69,11 +70,13 @@ CONFIGURE_ARGS+= --enable-binfilter
CONFIGURE_ARGS+= --enable-cairo
CONFIGURE_ARGS+= --disable-ldap
CONFIGURE_ARGS+= --with-system-stdlibs
+CONFIGURE_ARGS+= --with-system-db
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-neon
CONFIGURE_ARGS+= --with-system-python
CONFIGURE_ARGS+= --with-system-zlib
@@ -167,6 +170,7 @@ ARCH= ${MACHINE_ARCH:C/i[3-6]86/i386/g}
PYTHON_VERSIONS_ACCEPTED= 24 23 22
.include "../../lang/python/application.mk"
+.include "../../databases/db4/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
@@ -176,6 +180,7 @@ PYTHON_VERSIONS_ACCEPTED= 24 23 22
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../www/neon/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
diff --git a/misc/openoffice2/Makefile.NetBSD.x86_64 b/misc/openoffice2/Makefile.NetBSD.x86_64
index 6adeca56e51..f531525e9e4 100644
--- a/misc/openoffice2/Makefile.NetBSD.x86_64
+++ b/misc/openoffice2/Makefile.NetBSD.x86_64
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.NetBSD.x86_64,v 1.2 2007/11/11 03:35:35 hira Exp $
+# $NetBSD: Makefile.NetBSD.x86_64,v 1.3 2007/11/17 16:28:09 hira Exp $
#OPENOFFICE_DLLSUFFIX= bx
OPENOFFICE_OUTPATH= unxbsdx3
@@ -9,3 +9,4 @@ OPENOFFICE_SETFILE= NetBSDX86-64
# used when making a shared object; recompile with -fPIC
# /usr/lib/libsupc++.a: could not read symbols: Bad value
USE_PKGSRC_GCC= YES
+.include "../../mk/compiler.mk"
diff --git a/misc/openoffice2/distinfo b/misc/openoffice2/distinfo
index 25c1001c269..1a7737a6b33 100644
--- a/misc/openoffice2/distinfo
+++ b/misc/openoffice2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2007/11/11 15:46:25 hira Exp $
+$NetBSD: distinfo,v 1.29 2007/11/17 16:28:09 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
@@ -29,7 +29,7 @@ SHA1 (patch-aq) = e4f2a84598a6a09b4bedc430cd24921f87f822e5
SHA1 (patch-ar) = e3592ddc51a311a90d727ef8b595944a0ac3e623
SHA1 (patch-as) = 55e38c869518e673e8554b2645c1adfb28f6faec
SHA1 (patch-aw) = fdd1665c729cd17d8381ab39f2e6672164a058ad
-SHA1 (patch-ba) = 2745df4a4f7bcfed11ebf0048c76e5e2a5471da1
+SHA1 (patch-ba) = 5d282799df910ed8cb91e8d8f077f89955654018
SHA1 (patch-bb) = a2fe8b7aff8c875bdf15c70619b430f1fdbfa053
SHA1 (patch-bc) = a97ec5574d4ef2f2fbdf411ae2c8d49d9f434077
SHA1 (patch-bd) = f206fef46a0741139ae776f95d2a01f794989fb5
@@ -64,4 +64,4 @@ SHA1 (patch-ct) = f895442c141fb7cc172adca4903bbf784dbe3594
SHA1 (patch-cu) = b930fd94413c2bdf23ea94b074e3bb5e93784009
SHA1 (patch-cv) = 2e14a54d369a255ee39fcec7d4f1d2b11a8f4d2e
SHA1 (patch-cw) = 48545a27326abbfc464cae877262bc8735bb5c01
-SHA1 (patch-cx) = 12bedb293cc3d930fb746884645816648caa2356
+SHA1 (patch-cx) = 4babf4ff88831db1967192ae33e6694410ea304c
diff --git a/misc/openoffice2/patches/patch-ba b/misc/openoffice2/patches/patch-ba
index f2f5381a198..a8bd0d53bf5 100644
--- a/misc/openoffice2/patches/patch-ba
+++ b/misc/openoffice2/patches/patch-ba
@@ -1,7 +1,7 @@
-$NetBSD: patch-ba,v 1.8 2007/11/11 15:46:25 hira Exp $
+$NetBSD: patch-ba,v 1.9 2007/11/17 16:28:09 hira Exp $
--- config_office/configure.orig 2007-08-24 21:31:18.000000000 +0900
-+++ config_office/configure 2007-11-12 00:42:00.000000000 +0900
++++ config_office/configure 2007-11-13 10:30:55.000000000 +0900
@@ -3010,11 +3010,11 @@
test_cups=no
_os=OSF1
@@ -59,6 +59,41 @@ $NetBSD: patch-ba,v 1.8 2007/11/11 15:46:25 hira Exp $
fi
save_CPPFLAGS="$CPPFLAGS"
+@@ -13090,7 +13090,7 @@
+ echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
+ echo "${ECHO_T}$ac_cv_header_db_h" >&6
+ if test $ac_cv_header_db_h = yes; then
+- DB_INCLUDES=/usr/include
++ DB_INCLUDES=${BLNK_PREFIX_db4}/include/db4
+ else
+
+ CFLAGS=-I/usr/include/db4
+@@ -13213,13 +13213,13 @@
+ #AC_CHECK_LIB(db, db_create, [],
+ # [AC_MSG_ERROR([db library not installed or functional])], [])
+
+-echo "$as_me:$LINENO: checking for main in -ldb" >&5
+-echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for main in -ldb4" >&5
++echo $ECHO_N "checking for main in -ldb4... $ECHO_C" >&6
+ if test "${ac_cv_lib_db_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldb $LIBS"
++LIBS="-ldb4 $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -13276,7 +13276,7 @@
+ #define HAVE_LIBDB 1
+ _ACEOF
+
+- LIBS="-ldb $LIBS"
++ LIBS="-ldb4 $LIBS"
+
+ else
+ { { echo "$as_me:$LINENO: error: db not installed or functional" >&5
@@ -18928,7 +18928,7 @@
echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6
diff --git a/misc/openoffice2/patches/patch-cx b/misc/openoffice2/patches/patch-cx
index faa0bf30986..b0a2f327b89 100644
--- a/misc/openoffice2/patches/patch-cx
+++ b/misc/openoffice2/patches/patch-cx
@@ -1,7 +1,7 @@
-$NetBSD: patch-cx,v 1.1 2007/11/11 03:35:36 hira Exp $
+$NetBSD: patch-cx,v 1.2 2007/11/17 16:28:09 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
+--- solenv/inc/libs.mk.orig 2007-07-31 22:06:06.000000000 +0900
++++ solenv/inc/libs.mk 2007-11-13 10:33:35.000000000 +0900
@@ -187,14 +187,14 @@
LINGULIB=$(HM2LIBST)
LNGLIB=-llng$(OFFICEUPD)$(DLLPOSTFIX)
@@ -29,3 +29,14 @@ $NetBSD: patch-cx,v 1.1 2007/11/11 03:35:36 hira Exp $
.ENDIF
.ELSE
JPEG3RDLIB=-ljpeglib
+@@ -221,8 +221,8 @@
+ CURLLIB=-lcurl-3
+ .ELSE # "$(GUI)$(COM)"=="WNTGCC"
+ .IF "$(SYSTEM_DB)" == "YES"
+-BERKELEYLIB=-ldb
+-BERKELEYCPPLIB=-ldb_cxx
++BERKELEYLIB="-L@BLNK_PREFIX_db4@/lib -Wl,-R@BLNK_PREFIX_db4@/lib -ldb4"
++BERKELEYCPPLIB="-L@BLNK_PREFIX_db4@/lib -Wl,-R@BLNK_PREFIX_db4@/lib -ldb4_cxx"
+ .ELSE
+ BERKELEYLIB=-ldb-4.2
+ BERKELEYCPPLIB=-ldb_cxx-4.2