diff options
author | Don Lewis <truckman@FreeBSD.org> | 2015-03-27 20:22:37 +0000 |
---|---|---|
committer | Don Lewis <truckman@FreeBSD.org> | 2015-03-27 20:22:37 +0000 |
commit | 4a27d4ca83b3a1a30af42287bd395ee33aa8adec (patch) | |
tree | e074b82db4d34500b89c1e24e9af36450b139e49 /editors/openoffice-4/Makefile | |
parent | databases/pecl-mongo: Fix missing 0 in BUILD_DEPENDS (diff) |
Update openoffice-4 with applicable changes in openoffice-devel r382334:
* Work around broken build on FreeBSD 11.0-CURRENT i386, which appears
to be a code generation bug in clang 3.6 when using -Os optimization.
* Use the dictionaries already installed by ports.
* Update patch-*.mk patches to versions that were imported upstream.
They are tuned for clang to use as is, with only some minor
additional tweaks needed for gcc.
* Wordsmith pkg-message.
* Some Makefile cleanups.
Differential Revision: https://reviews.freebsd.org/D2151
Reviewed by: pfg
Approved by: mat (mentor)
Notes
Notes:
svn path=/head/; revision=382435
Diffstat (limited to 'editors/openoffice-4/Makefile')
-rw-r--r-- | editors/openoffice-4/Makefile | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile index b2e3ec3b973f..f4789130af19 100644 --- a/editors/openoffice-4/Makefile +++ b/editors/openoffice-4/Makefile @@ -3,7 +3,7 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION} -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= editors java MASTER_SITES= APACHE/openoffice/${PORTVERSION}/source \ http://tools.openoffice.org/unowinreg_prebuild/680/:unoreg \ @@ -126,16 +126,14 @@ GNOMEVFS_CONFIGURE_ENABLE= gnome-vfs .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 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 @@ -194,6 +192,7 @@ CONFIGURE_ARGS+= \ --with-system-curl \ --enable-crashdump \ --enable-dbus \ + --with-system-dicts \ --with-epm=${LOCALBASE}/bin/epm \ --with-system-expat \ --disable-fetch-external \ @@ -202,7 +201,9 @@ CONFIGURE_ARGS+= \ --with-gperf=${LOCALBASE}/bin/gperf \ --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 \ @@ -213,6 +214,7 @@ CONFIGURE_ARGS+= \ --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 \ @@ -266,11 +268,15 @@ post-extract: ${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 @@ -284,7 +290,7 @@ do-build: 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 |