diff options
author | maho <maho@FreeBSD.org> | 2007-12-13 18:35:59 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-12-13 18:35:59 +0800 |
commit | 669bf42938f87101c1afc7577f66de035c003bcc (patch) | |
tree | 17de7c31cebb277541100e6dd602741fdb4e8049 /editors | |
parent | 60cb0f0f860d0de38e878e66b7d7644ab027c558 (diff) | |
download | freebsd-ports-gnome-669bf42938f87101c1afc7577f66de035c003bcc.tar.gz freebsd-ports-gnome-669bf42938f87101c1afc7577f66de035c003bcc.tar.zst freebsd-ports-gnome-669bf42938f87101c1afc7577f66de035c003bcc.zip |
Unbreak for FreeBSD6. Build fails if the capacity of /tmp
is very small. However, still broken for 7 for unknown reason.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/openoffice.org-1.1-devel/Makefile | 32 | ||||
-rw-r--r-- | editors/openoffice.org-1.1-devel/files/patch-jvmaccess+source+sunversion.cxx | 11 |
2 files changed, 31 insertions, 12 deletions
diff --git a/editors/openoffice.org-1.1-devel/Makefile b/editors/openoffice.org-1.1-devel/Makefile index 8132d6d4eec0..de57965d197b 100644 --- a/editors/openoffice.org-1.1-devel/Makefile +++ b/editors/openoffice.org-1.1-devel/Makefile @@ -50,10 +50,7 @@ JAVA_VENDOR= freebsd bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> - .if ${OSVERSION} >= 700042 -BROKEN= does not compile with GCC 4.2; consider upgrading to editors/openoffice.org-2 -.else BROKEN= fails to install; consider upgrading to editors/openoffice.org-2 .endif @@ -101,16 +98,20 @@ PKGNAMEPREFIX= ${LANG_PKGNAME}- PKGNAMESUFFIX?= -${LANG_SUFFIX} .endif -BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32 -# FIXME (correctly add ccache before gcc and g++) +USE_GCC= 3.3 #3.3 is the best .if defined(WITH_CCACHE) BUILD_DEPENDS+= ccache:${PORTSDIR}/devel/ccache -CC= ccache gcc32 -CXX= ccache g++32 +CCACHE_PREFIX= ccache +OOOCC= ${CCACHE_PREFIX} ${CC} +OOOCXX= ${CCACHE_PREFIX} ${CXX} .else -CC= gcc32 -CXX= g++32 +OOOCC= ${CC} +OOOCXX= ${CXX} .endif +CONFIGURE_ENV+= CC="${OOOCC}" CXX="${OOOCXX}" \ + CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \ unzip:${PORTSDIR}/archivers/unzip \ gcp:${PORTSDIR}/sysutils/coreutils \ @@ -128,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --enable-pasf #--enable-crashdump --enable-symbols=SMALL #gcc3.2.3 is broken with -g1 +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --enable-pasf --enable-crashdump --enable-symbols=SMALL #gcc3.2.3 is broken with -g1 .include <${FILESDIR}/Makefile.knobs> @@ -174,6 +175,13 @@ post-extract: @cd ${WRKSRC} ; ${MV} moz moz.runtime ; ${MV} moz.old moz .endif +pre-configure: +#Workaround for moz project, it uses gcc directly. + @${LN} -sf `which ${CC}` ${WRKSRC}/solenv/bin/gcc + @${LN} -sf `which ${CC}` ${WRKSRC}/solenv/bin/cc + @${LN} -sf `which ${CXX}` ${WRKSRC}/solenv/bin/g++ + @${LN} -sf `which ${CXX}` ${WRKSRC}/solenv/bin/c++ + do-build: @cd ${WRKSRC} ; ./bootstrap .if !defined(WITHOUT_MOZILLA) @@ -183,9 +191,9 @@ do-build: @${CP} ${WRKDIR}/L10NHELP/*.zip ${WRKSRC}/solver/${CODELINE}/unxfbsd.pro/pck # PR:84786 .if (${NUMOFPROCESSES}>1) - @cd ${WRKSRC} ; ${SETENV} "LC_ALL=C" "LANG=C" ${TCSH} -c "source FreeBSDEnv.Set ; cd instsetoo ; build.pl -P${NUMOFPROCESSES} --all" + @cd ${WRKSRC} ; ${SETENV} "LC_ALL=C" "LANG=C" ${TCSH} -c "source FreeBSDEnv.Set ; setenv TMP ${WRKSRC} ; cd instsetoo ; build.pl -P${NUMOFPROCESSES} --all" .else - @cd ${WRKSRC} ; ${SETENV} "LC_ALL=C" "LANG=C" ${TCSH} -c "source FreeBSDEnv.Set ; dmake" + @cd ${WRKSRC} ; ${SETENV} "LC_ALL=C" "LANG=C" ${TCSH} -c "source FreeBSDEnv.Set ; setenv TMP ${WRKSRC} ; dmake" .endif do-install: diff --git a/editors/openoffice.org-1.1-devel/files/patch-jvmaccess+source+sunversion.cxx b/editors/openoffice.org-1.1-devel/files/patch-jvmaccess+source+sunversion.cxx index b334fb1339a0..bbed543f1021 100644 --- a/editors/openoffice.org-1.1-devel/files/patch-jvmaccess+source+sunversion.cxx +++ b/editors/openoffice.org-1.1-devel/files/patch-jvmaccess+source+sunversion.cxx @@ -10,8 +10,19 @@ it is not a good habit. in this patch we eleminate this. in the system. We add 100 as micro version number, so that we treat FreeBSD's version of java 1.4.1-p10 for example to 1.4.1_110. +3. Java version of 1.5.0_13-p7 will be treated as 1.5.0_13. -p part will be ignored. + --- jvmaccess/source/sunversion.cxx Thu Jun 16 21:45:26 2005 +++ jvmaccess/source/sunversion.cxx Sat Oct 22 16:42:01 2005 +@@ -193,7 +193,7 @@ + pCur ++; + // nPartPos ++; + } +- else if (nUpdatePart == 0 && (pCur == pEnd || isalpha(*pCur))) ++ else if (nUpdatePart == 0 && (pCur == pEnd || isalpha(*pCur) || (*pCur)=='-' )) + { + int len = pCur - pLast; + if (len >= 127) @@ -246,30 +247,22 @@ m_preRelease = Rel_RC2; #if defined FREEBSD || defined NETBSD |