Index: head/editors/openoffice-devel/Makefile =================================================================== --- head/editors/openoffice-devel/Makefile +++ head/editors/openoffice-devel/Makefile @@ -3,7 +3,7 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION1}.${AOOVERSION2}.${SVNREVISION} -PORTREVISION= 2 +#PORTREVISION= 1 PORTEPOCH= 3 CATEGORIES= editors java MASTER_SITES= http://ci.apache.org/projects/openoffice/milestones/${AOOVERSION}-${AOORC}-r${SVNREVISION}/source/ \ @@ -51,6 +51,7 @@ libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng.so:${PORTSDIR}/graphics/png \ libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib \ + libgraphite.so:${PORTSDIR}/graphics/silgraphite \ libCoinMP.so:${PORTSDIR}/math/coinmp \ libfreetype.so:${PORTSDIR}/print/freetype2 \ libnss3.so:${PORTSDIR}/security/nss \ @@ -61,7 +62,6 @@ libmythes-1.2.so:${PORTSDIR}/textproc/mythes \ librdf.so:${PORTSDIR}/textproc/redland \ libserf-1.so:${PORTSDIR}/www/serf -# libgraphite.so:${PORTSDIR}/graphics/silgraphite RUN_DEPENDS= \ ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \ ${JAVALIBDIR}/commons-httpclient.jar:${PORTSDIR}/java/jakarta-commons-httpclient \ @@ -73,7 +73,7 @@ AOOVERSION3= 0 # From solenv/inc/minor.mk SOURCEREVISION LAST_MINOR BUILD AOOTAG= AOO420m1\(Build:9800\) -SVNREVISION= 1652526 +SVNREVISION= 1667428 #AOORC=rc3 EXTSRC= ApacheOpenOffice.ext_sources.${AOOVERSION1}.x.x.20150118.tar.gz @@ -83,10 +83,12 @@ AOOSUFFIX= ${AOOVERSION}-${AOORC} OOOSRC= apache-openoffice-${AOOVERSION}-r${SVNREVISION}-src${EXTRACT_SUFX} AOODISTTAG= +TARTYPE= bzip2 .else AOOSUFFIX= ${PORTVERSION} OOOSRC= apache-openoffice-r${SVNREVISION}-src${EXTRACT_SUFX} AOODISTTAG= :snap +TARTYPE= xz .endif OOODIR= openoffice${AOOVERSION1} @@ -111,7 +113,7 @@ USE_XORG= x11 ice xaw xau xext xrender xrandr \ xi xt xcursor xdamage xcomposite xfixes USES= bison compiler desktop-file-utils gmake perl5 pkgconfig python \ - tar:xz + tar:${TARTYPE} WITHOUT_CPU_CFLAGS= true MAKE_JOBS_SAFE= yes @@ -136,16 +138,16 @@ .if ${COMPILER_TYPE} == clang . if ${COMPILER_VERSION} < 35 && ${ARCH} == amd64 BUILD_DEPENDS+= clang35:${PORTSDIR}/lang/clang35 -CPP= ${LOCALBASE}/bin/clang-cpp35 -CC= ${LOCALBASE}/bin/clang35 -CXX= ${LOCALBASE}/bin/clang++35 +CPP= clang-cpp35 +CC= clang35 +CXX= clang++35 . endif +BUILD_DEPENDS+= ${LOCALBASE}/lib/libboost_regex.a:${PORTSDIR}/devel/boost-libs +CONFIGURE_ARGS+= --with-system-boost CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -I${LOCALBASE}/lib -SUBST= s+%%RPATH%%++;s/%%HAVE_STL_INCLUDE_PATH%%/-DHAVE_STL_INCLUDE_PATH/;s/-fno-enforce-eh-specs// .else USE_GCC= yes -SUBST= s+%%RPATH%%+-Wl,-rpath=${_GCC_RUNTIME}+;s/%%HAVE_STL_INCLUDE_PATH%%// +SUBST= "s/-fexceptions/& -fno-enforce-eh-specs/;s/-DHAVE_STL_INCLUDE_PATH//" .endif .if ${ARCH} == amd64 @@ -204,15 +206,19 @@ --with-system-curl \ --enable-crashdump \ --enable-dbus \ + --with-system-dicts \ --with-epm=${LOCALBASE}/bin/epm \ --with-system-expat \ --disable-fetch-external \ --without-fonts \ --with-gnu-patch=${LOCALBASE}/bin/gpatch \ --with-gperf=${LOCALBASE}/bin/gperf \ + --with-system-graphite \ --enable-gstreamer \ --with-system-hunspell \ + --with-external-dict-dir=${LOCALBASE}/share/hunspell \ --with-system-hyphen \ + --with-external-hyph-dir=${LOCALBASE}/share/hyphen \ --with-system-jpeg \ --with-junit=${LOCALBASE}/share/java/classes/junit.jar \ --with-system-libtextcat \ @@ -223,6 +229,7 @@ --with-lucene-core-jar=${JAVALIBDIR}/lucene-core-3.6.2.jar \ --with-lucene-analyzers-jar=${JAVALIBDIR}/lucene-analyzers-3.6.2.jar \ --with-system-mythes \ + --with-external-thes-dir=${LOCALBASE}/share/mythes \ --with-system-nss \ --enable-opengl \ --with-system-openssl \ @@ -239,9 +246,6 @@ --with-system-vigra \ --enable-wiki-publisher \ --with-system-zlib -# system-graphite causes breakage when compiled with clang and linked -# with libc++ because aoo is compiled with gcc and linked with libstdc++. -# --with-system-graphite #OOOEXTENSIONS+= minimizer/presentation-minimizer.oxt #OOOEXTENSIONS+= presenter/presenter-screen.oxt @@ -276,11 +280,15 @@ ${RM} -rf ${WRKSRC}/l10n post-patch: - ${REINPLACE_CMD} -e "${SUBST}" ${WRKSRC}/solenv/gbuild/platform/freebsd.mk - ${REINPLACE_CMD} -e "${SUBST}" ${WRKSRC}/solenv/inc/unxfbsd.mk -.if defined (USE_GCC) && ${ARCH} == i386 +.if defined (USE_GCC) + ${REINPLACE_CMD} -e ${SUBST} ${WRKSRC}/solenv/gbuild/platform/freebsd.mk + ${REINPLACE_CMD} -e ${SUBST} ${WRKSRC}/solenv/inc/unxfbsd.mk +.endif +.if ${ARCH} == i386 # g++49 -Os sometimes leaves inline class methods undefined - if [ ${CXX} = g++49 ]; then \ + # autodoc core dumps when built with with -Os clang 3.6 on i386 + if [ ${CXX} = g++49 -o \ + ${COMPILER_TYPE} = clang -a ${COMPILER_VERSION} = 36 ]; then \ ${REINPLACE_CMD} -e "s/ := -Os/ := -O0/" ${WRKSRC}/solenv/gbuild/platform/freebsd.mk; \ ${REINPLACE_CMD} -e "s/=-Os /=-O0 /" ${WRKSRC}/solenv/inc/unxfbsdi.mk; \ fi @@ -294,7 +302,7 @@ cd ${WRKSUBDIR} ; ${PRINTF} "main=active\n" >> source_config cd ${WRKSUBDIR} ; ${PRINTF} "extras=active\n" >> source_config cd ${WRKSRC} ; ./bootstrap - cd ${WRKSRC} ; ${SETENV} "LANG=C" "LC_ALL=C" ${BASH} -c "source ${FREEBSD_ENV_SET} ; cd instsetoo_native/util ; build.pl --all -P${MAKE_JOBS_NUMBER} -- -P${MAKE_JOBS_NUMBER}" + cd ${WRKSRC} ; ${SETENV} "LANG=C" "LC_ALL=C" FBSD_LDFLAGS="${LDFLAGS}" ${BASH} -c "source ${FREEBSD_ENV_SET} ; cd instsetoo_native/util ; build.pl --all -P${MAKE_JOBS_NUMBER} -- -P${MAKE_JOBS_NUMBER}" do-install: cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/Apache_OpenOffice/archive/install/${LOCALIZED_LANG}/ ; ${LS} *.tar.?z > ${WRKDIR}/INSTALLFILES Index: head/editors/openoffice-devel/distinfo =================================================================== --- head/editors/openoffice-devel/distinfo +++ head/editors/openoffice-devel/distinfo @@ -1,5 +1,5 @@ -SHA256 (openoffice/apache-openoffice-r1652526-src.tar.xz) = 0db1401923df096dd9497813ef5849f3fbe91f9c49f32e252a389649315ec906 -SIZE (openoffice/apache-openoffice-r1652526-src.tar.xz) = 215154504 +SHA256 (openoffice/apache-openoffice-r1667428-src.tar.xz) = 2c481e0f14f3f804b303ae5468991b4b7cdc82ce20660545cfb8cef2f5117c2f +SIZE (openoffice/apache-openoffice-r1667428-src.tar.xz) = 215181884 SHA256 (openoffice/ApacheOpenOffice.ext_sources.4.x.x.20150118.tar.gz) = b01b8894469a80667b0551ea6c0abffd3fb9e79c8a304d48091ff57ab53f10b7 SIZE (openoffice/ApacheOpenOffice.ext_sources.4.x.x.20150118.tar.gz) = 102513542 SHA256 (openoffice/unowinreg.dll) = f563e522922133db9340b0306711c2d8767cc3481dd9e7d9b0d059906d12653c Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_cpp2uno.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_cpp2uno.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_cpp2uno.cxx @@ -0,0 +1,14 @@ +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx.orig 2014-09-19 17:51:13 UTC ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx +@@ -24,6 +24,11 @@ + // MARKER(update_precomp.py): autogen include statement, do not remove + #include "precompiled_bridges.hxx" + ++#include ++#include ++#include ++#include ++ + #include + #include "com/sun/star/uno/RuntimeException.hpp" + #include Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_except.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_except.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_except.cxx @@ -1,11 +1,37 @@ --- bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx.orig 2014-09-19 17:51:13 UTC +++ bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx -@@ -24,7 +24,7 @@ +@@ -24,9 +24,9 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_bridges.hxx" -#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) -+#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || defined(__clang__) ++#include #include +-#endif ++#include + + #include + #include +@@ -182,7 +182,12 @@ type_info * RTTI::getRTTI( typelib_Compo + char const * rttiName = symName.getStr() +4; + #if OSL_DEBUG_LEVEL > 1 + fprintf( stderr,"generated rtti for %s\n", rttiName ); ++#ifndef __GLIBCXX__ /* #i124421# */ ++ const OString aCUnoName = OUStringToOString( unoName, RTL_TEXTENCODING_UTF8); ++ OSL_TRACE( "TypeInfo for \"%s\" not found and cannot be generated.\n", aCUnoName.getStr()); ++#endif /* __GLIBCXX__ */ #endif ++#ifdef __GLIBCXX__ /* #i124421# */ + if (pTypeDescr->pBaseTypeDescription) + { + // ensure availability of base +@@ -196,6 +201,9 @@ type_info * RTTI::getRTTI( typelib_Compo + // this class has no base class + rtti = new __class_type_info( strdup( rttiName ) ); + } ++#else /* __GLIBCXX__ */ ++ rtti = NULL; ++#endif /* __GLIBCXX__ */ + pair< t_rtti_map::iterator, bool > insertion( + m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) ); Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_share.hxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_share.hxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_share.hxx @@ -1,18 +1,17 @@ --- bridges/source/cpp_uno/gcc3_freebsd_intel/share.hxx.orig 2014-09-19 17:51:12 UTC +++ bridges/source/cpp_uno/gcc3_freebsd_intel/share.hxx -@@ -26,6 +26,11 @@ - #include - #include - #include -+#ifndef __GLIBCXX__ -+#include -+ -+using namespace ::__cxxabiv1; -+#endif /* ! __GLIBCXX__ */ +@@ -23,10 +23,6 @@ + #include "uno/mapping.h" + +-#include +-#include +-#include +- namespace CPPU_CURRENT_NAMESPACE { -@@ -34,6 +39,7 @@ void dummy_can_throw_anything( char cons + +@@ -34,6 +30,7 @@ void dummy_can_throw_anything( char cons // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h @@ -20,11 +19,12 @@ struct _Unwind_Exception { unsigned exception_class __attribute__((__mode__(__DI__))); -@@ -63,11 +69,13 @@ struct __cxa_exception +@@ -62,18 +59,21 @@ struct __cxa_exception + _Unwind_Exception unwindHeader; }; - +#endif /* __GLIBCXX__ */ + extern "C" void *__cxa_allocate_exception( std::size_t thrown_size ) throw(); extern "C" void __cxa_throw ( @@ -34,34 +34,21 @@ struct __cxa_eh_globals { __cxa_exception *caughtExceptions; -@@ -75,6 +83,7 @@ struct __cxa_eh_globals + unsigned int uncaughtExceptions; }; extern "C" __cxa_eh_globals *__cxa_get_globals () throw(); - +#endif /* __GLIBCXX__ */ + // ----- +@@ -81,6 +81,10 @@ extern "C" __cxa_eh_globals *__cxa_get_g + void raiseException( + uno_Any * pUnoExc, uno_Mapping * pUno2Cpp ); //================================================================================================== -@@ -84,3 +93,22 @@ void raiseException( ++#ifndef __GLIBCXX__ ++using __cxxabiv1:: __cxa_exception; ++#endif /* __GLIBCXX__ */ ++ void fillUnoException( __cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno ); } -+#ifndef __GLIBCXX__ -+ -+class __class_type_info : public std::type_info -+{ -+public: -+ explicit __class_type_info( const char* pRttiName) -+ : std::type_info( pRttiName) -+ {} -+}; -+ -+class __si_class_type_info : public __class_type_info -+{ -+ const __class_type_info* mpBaseType; -+public: -+ explicit __si_class_type_info( const char* pRttiName, __class_type_info* pBaseType) -+ : __class_type_info( pRttiName), mpBaseType( pBaseType) -+ {} -+}; -+#endif /* ! __GLIBCXX__ */ Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_uno2cpp.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_uno2cpp.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__intel_uno2cpp.cxx @@ -1,14 +1,34 @@ --- bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx.orig 2014-09-19 17:51:13 UTC +++ bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx -@@ -305,7 +305,11 @@ static void cpp_call( +@@ -24,6 +24,10 @@ + // MARKER(update_precomp.py): autogen include statement, do not remove + #include "precompiled_bridges.hxx" + ++#include ++#include ++#include ++#include + #include + + #include +@@ -39,6 +43,11 @@ + + using namespace ::rtl; + using namespace ::com::sun::star::uno; ++#ifdef __GLIBCXX__ ++using CPPU_CURRENT_NAMESPACE::__cxa_get_globals; ++#else ++using __cxxabiv1::__cxa_get_globals; ++#endif + + namespace + { +@@ -305,7 +314,7 @@ static void cpp_call( catch (...) { // fill uno exception -+#ifndef __GLIBCXX__ +- fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); + CPPU_CURRENT_NAMESPACE::fillUnoException( __cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); -+#else /* __GLIBCXX__ */ - fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); -+#endif /* __GLIBCXX__ */ // temporary params for ( ; nTempIndizes--; ) Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_cpp2uno.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_cpp2uno.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_cpp2uno.cxx @@ -0,0 +1,16 @@ +--- bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx.orig 2014-09-19 17:51:12 UTC ++++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno.cxx +@@ -24,9 +24,10 @@ + // MARKER(update_precomp.py): autogen include statement, do not remove + #include "precompiled_bridges.hxx" + +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + #include + #include Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_except.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_except.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_except.cxx @@ -1,11 +1,39 @@ --- bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx.orig 2014-09-19 17:51:13 UTC +++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/except.cxx -@@ -24,7 +24,7 @@ +@@ -24,9 +24,9 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_bridges.hxx" -#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) -+#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || defined(__clang__) ++#include #include - #endif +-#endif ++#include + #include + #include +@@ -182,7 +182,12 @@ type_info * RTTI::getRTTI( typelib_Compo + char const * rttiName = symName.getStr() +4; + #if OSL_DEBUG_LEVEL > 1 + fprintf( stderr,"generated rtti for %s\n", rttiName ); ++#ifndef __GLIBCXX__ /* #i124421# */ ++ const OString aCUnoName = OUStringToOString( unoName, RTL_TEXTENCODING_UTF8); ++ OSL_TRACE( "TypeInfo for \"%s\" not found and cannot be generated.\n", aCUnoName.getStr()); ++#endif /* __GLIBCXX__ */ + #endif ++#ifdef __GLIBCXX__ /* #i124421# */ + if (pTypeDescr->pBaseTypeDescription) + { + // ensure availability of base +@@ -196,7 +201,10 @@ type_info * RTTI::getRTTI( typelib_Compo + // this class has no base class + rtti = new __class_type_info( strdup( rttiName ) ); + } +- ++#else /* __GLIBCXX__ */ ++ rtti = NULL; ++#endif /* __GLIBCXX__ */ ++ + pair< t_rtti_map::iterator, bool > insertion( + m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) ); + OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" ); Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_share.hxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_share.hxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_share.hxx @@ -1,18 +1,17 @@ ---- bridges/source/cpp_uno/gcc3_freebsd_x86-64/share.hxx.orig 2014-09-19 10:51:12.000000000 -0700 -+++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/share.hxx 2015-03-13 09:58:02.000000000 -0700 -@@ -26,6 +26,11 @@ - #include - #include - #include -+#ifndef __GLIBCXX__ -+#include -+ -+using namespace ::__cxxabiv1; -+#endif /* ! __GLIBCXX__ */ - +--- bridges/source/cpp_uno/gcc3_freebsd_x86-64/share.hxx.orig 2014-09-19 17:51:12 UTC ++++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/share.hxx +@@ -23,10 +23,6 @@ + + #include "uno/mapping.h" + +-#include +-#include +-#include +- namespace CPPU_CURRENT_NAMESPACE { -@@ -34,6 +39,7 @@ + +@@ -34,6 +30,7 @@ void dummy_can_throw_anything( char cons // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h @@ -20,11 +19,12 @@ struct _Unwind_Exception { unsigned exception_class __attribute__((__mode__(__DI__))); -@@ -63,11 +69,13 @@ +@@ -62,18 +59,21 @@ struct __cxa_exception + _Unwind_Exception unwindHeader; }; - +#endif /* __GLIBCXX__ */ + extern "C" void *__cxa_allocate_exception( std::size_t thrown_size ) throw(); extern "C" void __cxa_throw ( @@ -34,34 +34,21 @@ struct __cxa_eh_globals { __cxa_exception *caughtExceptions; -@@ -75,6 +83,7 @@ + unsigned int uncaughtExceptions; }; extern "C" __cxa_eh_globals *__cxa_get_globals () throw(); - +#endif /* __GLIBCXX__ */ + // ----- +@@ -81,6 +81,10 @@ extern "C" __cxa_eh_globals *__cxa_get_g + void raiseException( + uno_Any * pUnoExc, uno_Mapping * pUno2Cpp ); //================================================================================================== -@@ -84,3 +93,22 @@ ++#ifndef __GLIBCXX__ ++using __cxxabiv1:: __cxa_exception; ++#endif /* __GLIBCXX__ */ ++ void fillUnoException( __cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno ); } -+#ifndef __GLIBCXX__ -+ -+class __class_type_info : public std::type_info -+{ -+public: -+ explicit __class_type_info( const char* pRttiName) -+ : std::type_info( pRttiName) -+ {} -+}; -+ -+class __si_class_type_info : public __class_type_info -+{ -+ const __class_type_info* mpBaseType; -+public: -+ explicit __si_class_type_info( const char* pRttiName, __class_type_info* pBaseType) -+ : __class_type_info( pRttiName), mpBaseType( pBaseType) -+ {} -+}; -+#endif /* ! __GLIBCXX__ */ Index: head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_uno2cpp.cxx =================================================================== --- head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_uno2cpp.cxx +++ head/editors/openoffice-devel/files/patch-bridges_source_cpp__uno_gcc3__freebsd__x86-64_uno2cpp.cxx @@ -1,14 +1,36 @@ ---- bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx.orig 2014-09-19 10:51:13.000000000 -0700 -+++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx 2015-03-13 09:48:24.000000000 -0700 -@@ -446,7 +446,11 @@ +--- bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx.orig 2014-09-19 17:51:13 UTC ++++ bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp.cxx +@@ -24,9 +24,10 @@ + // MARKER(update_precomp.py): autogen include statement, do not remove + #include "precompiled_bridges.hxx" + +-#include + #include +-#include ++#include ++#include ++#include + #include + #include + +@@ -47,6 +48,11 @@ + + using namespace ::rtl; + using namespace ::com::sun::star::uno; ++#ifdef __GLIBCXX__ ++using CPPU_CURRENT_NAMESPACE::__cxa_get_globals; ++#else ++using __cxxabiv1::__cxa_get_globals; ++#endif + + //================================================================================================== + static void callVirtualMethod(void * pThis, sal_uInt32 nVtableIndex, +@@ -446,7 +452,7 @@ static void cpp_call( catch (...) { // fill uno exception -+#ifndef __GLIBCXX__ +- fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); + CPPU_CURRENT_NAMESPACE::fillUnoException( __cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); -+#else /* __GLIBCXX__ */ - fillUnoException( CPPU_CURRENT_NAMESPACE::__cxa_get_globals()->caughtExceptions, *ppUnoExc, pThis->getBridge()->getCpp2Uno() ); -+#endif /* __GLIBCXX__ */ // temporary params for ( ; nTempIndizes--; ) Index: head/editors/openoffice-devel/files/patch-freebsd.mk =================================================================== --- head/editors/openoffice-devel/files/patch-freebsd.mk +++ head/editors/openoffice-devel/files/patch-freebsd.mk @@ -4,15 +4,23 @@ -fvisibility-inlines-hidden \ -fvisibility=hidden \ -pipe \ -+ %%HAVE_STL_INCLUDE_PATH%% \ ++ -DHAVE_STL_INCLUDE_PATH \ ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) gb_CFLAGS_WERROR := -Werror -@@ -121,6 +122,7 @@ gb_LinkTarget_LDFLAGS += \ +@@ -110,7 +111,6 @@ endif + gb_LinkTarget_EXCEPTIONFLAGS := \ + -DEXCEPTIONS_ON \ + -fexceptions \ +- -fno-enforce-eh-specs \ + + gb_LinkTarget_NOEXCEPTIONFLAGS := \ + -DEXCEPTIONS_OFF \ +@@ -121,6 +121,7 @@ gb_LinkTarget_LDFLAGS += \ -Wl,-z,combreloc \ -Wl,-z,defs \ $(subst -L../lib , ,$(SOLARLIB)) \ -+ %%RPATH%% \ ++ ${FBSD_LDFLAGS} \ \ ifeq ($(HAVE_LD_HASH_STYLE),TRUE) Index: head/editors/openoffice-devel/files/patch-unxfbsd.mk =================================================================== --- head/editors/openoffice-devel/files/patch-unxfbsd.mk +++ head/editors/openoffice-devel/files/patch-unxfbsd.mk @@ -14,34 +14,41 @@ # _PTHREADS is needed for the stl -CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 -+CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 %%HAVE_STL_INCLUDE_PATH%% ++CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 -DHAVE_STL_INCLUDE_PATH # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" -@@ -86,14 +86,14 @@ CFLAGSENABLESYMBOLS=-g # was temporarily - .ENDIF - +@@ -88,7 +88,7 @@ CFLAGSENABLESYMBOLS=-g # was temporarily # flags for the C++ Compiler --CFLAGSCC= -pipe $(ARCH_FLAGS) -+CFLAGSCC= -pipe $(ARCH_FLAGS) %%RPATH%% + CFLAGSCC= -pipe $(ARCH_FLAGS) # Flags for enabling exception handling -CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs +CFLAGSEXCEPTIONS=-fexceptions # Flags for disabling exception handling CFLAGS_NO_EXCEPTIONS=-fno-exceptions - # -fpermissive should be removed as soon as possible --CFLAGSCXX= -pipe $(ARCH_FLAGS) -+CFLAGSCXX= -pipe $(ARCH_FLAGS) %%RPATH%% - .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGSCXX += -fvisibility-inlines-hidden - .ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" @@ -156,7 +156,7 @@ LINKFLAGSRUNPATH_OXT= LINKFLAGSRUNPATH_BOXT=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN'\' #LINKFLAGSRUNPATH_BOXT=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\' LINKFLAGSRUNPATH_NONE= -LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE) -+LINKFLAGS=-Wl,-z,combreloc %%RPATH%% $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE) ++LINKFLAGS=-Wl,-z,combreloc $(LDFLAGS) $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE) # linker flags for linking applications LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \ +@@ -199,11 +199,11 @@ STDSHLCUIMT+=-ltcmalloc + .ENDIF + + # libraries for linking applications +-STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed +-STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ++STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS} ++STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS} + # libraries for linking shared libraries +-STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed +-STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ++STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS} ++STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS} + + X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed + Index: head/editors/openoffice-devel/files/patch-webdav =================================================================== --- head/editors/openoffice-devel/files/patch-webdav +++ head/editors/openoffice-devel/files/patch-webdav @@ -1,133 +0,0 @@ ---- ucb/source/ucp/webdav/SerfUri.hxx_ 2014-02-04 14:39:02.000000000 +0900 -+++ ucb/source/ucp/webdav/SerfUri.hxx 2014-02-04 14:39:18.000000000 +0900 -@@ -23,7 +23,7 @@ - #ifndef INCLUDED_SERFURI_HXX - #define INCLUDED_SERFURI_HXX - --#include -+#include - #include - #include "DAVException.hxx" - ---- ucb/source/ucp/webdav/SerfSession.cxx_ 2014-02-04 14:40:19.000000000 +0900 -+++ ucb/source/ucp/webdav/SerfSession.cxx 2014-02-04 14:40:26.000000000 +0900 -@@ -30,7 +30,7 @@ - #include "ucbhelper/simplecertificatevalidationrequest.hxx" - - #include "AprEnv.hxx" --#include -+#include - - #include "DAVAuthListener.hxx" - #include "SerfTypes.hxx" - ---- ucb/source/ucp/webdav/SerfTypes.hxx 2014-01-24 03:33:21.000000000 +0900 -+++ ucb/source/ucp/webdav/SerfTypes.hxx 2014-02-04 14:38:44.000000000 +0900 -@@ -24,7 +24,7 @@ - #ifndef INCLUDED_SERFTYPES_HXX - #define INCLUDED_SERFTYPES_HXX - --#include -+#include - - typedef serf_connection_t SerfConnection; - ---- ucb/source/ucp/webdav/SerfCallbacks.hxx.orig 2014-02-25 00:24:42.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfCallbacks.hxx 2014-07-28 01:11:38.000000000 -0700 -@@ -23,7 +23,7 @@ - #ifndef INCLUDED_CALLBACKS_HXX - #define INCLUDED_CALLBACKS_HXX - --#include -+#include - - extern "C" apr_status_t Serf_ConnectSetup( apr_socket_t *skt, - serf_bucket_t **read_bkt, ---- ucb/source/ucp/webdav/SerfCopyReqProcImpl.cxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfCopyReqProcImpl.cxx 2014-07-28 01:11:43.000000000 -0700 -@@ -24,7 +24,7 @@ - - #include "SerfCopyReqProcImpl.hxx" - --#include -+#include - - namespace http_dav_ucp - { ---- ucb/source/ucp/webdav/SerfDeleteReqProcImpl.cxx.orig 2014-02-25 00:24:42.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfDeleteReqProcImpl.cxx 2014-07-28 01:11:47.000000000 -0700 -@@ -24,7 +24,7 @@ - - #include "SerfDeleteReqProcImpl.hxx" - --#include -+#include - - namespace http_dav_ucp - { ---- ucb/source/ucp/webdav/SerfMkColReqProcImpl.cxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfMkColReqProcImpl.cxx 2014-07-28 01:11:51.000000000 -0700 -@@ -24,7 +24,7 @@ - - #include "SerfMkColReqProcImpl.hxx" - --#include -+#include - - namespace http_dav_ucp - { ---- ucb/source/ucp/webdav/SerfMoveReqProcImpl.cxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfMoveReqProcImpl.cxx 2014-07-28 01:11:57.000000000 -0700 -@@ -24,7 +24,7 @@ - - #include "SerfMoveReqProcImpl.hxx" - --#include -+#include - - namespace http_dav_ucp - { ---- ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx 2014-07-28 01:12:00.000000000 -0700 -@@ -24,7 +24,7 @@ - - #include "SerfPostReqProcImpl.hxx" - --#include -+#include - - using namespace com::sun::star; - ---- ucb/source/ucp/webdav/SerfPutReqProcImpl.cxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfPutReqProcImpl.cxx 2014-07-28 01:12:05.000000000 -0700 -@@ -26,7 +26,7 @@ - - #include "SerfPutReqProcImpl.hxx" - --#include -+#include - - namespace http_dav_ucp - { ---- ucb/source/ucp/webdav/SerfRequestProcessor.hxx.orig 2014-02-25 00:24:43.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfRequestProcessor.hxx 2014-07-28 01:12:10.000000000 -0700 -@@ -26,7 +26,7 @@ - #include - #include - --#include -+#include - - #include "DAVTypes.hxx" - #include "DAVResource.hxx" ---- ucb/source/ucp/webdav/SerfRequestProcessorImpl.hxx.orig 2014-02-25 00:24:42.000000000 -0800 -+++ ucb/source/ucp/webdav/SerfRequestProcessorImpl.hxx 2014-07-28 01:12:14.000000000 -0700 -@@ -22,7 +22,7 @@ - #ifndef INCLUDED_SERFREQUESTPROCESSORIMPL_HXX - #define INCLUDED_SERFREQUESTPROCESSORIMPL_HXX - --#include -+#include - - #include - #include "DAVRequestEnvironment.hxx" Index: head/editors/openoffice-devel/files/pkg-message.in =================================================================== --- head/editors/openoffice-devel/files/pkg-message.in +++ head/editors/openoffice-devel/files/pkg-message.in @@ -10,11 +10,12 @@ -------------------- Just type "%%EXECBASE%%" after you have successfully -installed the package. If there is no installed OO.org dir -in your homedir, the setup installs "%%AOOUDIR%%" folder. +installed the package. If there is no installed +.openoffice.org directory in your home directory, the +setup installs the "%%AOOUDIR%%" folder. -2. Starting OO.org ------------------- +2. Starting Apache OpenOffice +----------------------------- There are some wrappers installed for faster startup. Add "%%PREFIX%%/bin/" to your PATH and you will be able @@ -35,5 +36,6 @@ 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already -installed "%%AOOUDIR%%" dir in your homedir. Redo the user -installation and the problems should go away. +installed "%%AOOUDIR%%" directory in your home directory, +then redo the user installation and the problems should go +away.