diff options
author | Maho Nakata <maho@FreeBSD.org> | 2007-12-13 18:37:37 +0800 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2007-12-13 18:37:37 +0800 |
commit | 3f785ee468f1230580040393ecff11cf96ba2c20 (patch) | |
tree | 45f99464a9268232d45c8addd20f347a468fc329 /editors/openoffice.org-1.1 | |
parent | c4cdac2deb22e1a421ecba3986f57df337eef205 (diff) | |
download | freebsd-ports-gnome-3f785ee468f1230580040393ecff11cf96ba2c20.tar.gz freebsd-ports-gnome-3f785ee468f1230580040393ecff11cf96ba2c20.tar.zst freebsd-ports-gnome-3f785ee468f1230580040393ecff11cf96ba2c20.zip |
Unbreak for 6. Build fails if the capacity of /tmp
is very small. However, still broken on 7 for unknown reason.
Diffstat (limited to 'editors/openoffice.org-1.1')
-rw-r--r-- | editors/openoffice.org-1.1/Makefile | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/editors/openoffice.org-1.1/Makefile b/editors/openoffice.org-1.1/Makefile index 1caa4f1ee770..d9f5c8776a7b 100644 --- a/editors/openoffice.org-1.1/Makefile +++ b/editors/openoffice.org-1.1/Makefile @@ -48,12 +48,6 @@ 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 - LANG_EXT?= 01 LANG_CONFIGURE_ARG?= ENUS L10NHELP?= helpcontent_01_unix.tgz @@ -96,16 +90,21 @@ 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" \ + PATH="${WRKDIR}/bin:${PATH}" + BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \ unzip:${PORTSDIR}/archivers/unzip \ gcp:${PORTSDIR}/sysutils/coreutils \ @@ -123,7 +122,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> @@ -169,6 +168,14 @@ post-extract: @cd ${WRKSRC} ; ${MV} moz moz.runtime ; ${MV} moz.old moz .endif +pre-build: + @${RM} -rf ${WRKDIR}/bin + @${MKDIR} ${WRKDIR}/bin + @${LN} -s `which ${CC}` ${WRKDIR}/bin/gcc + @${LN} -s `which ${CC}` ${WRKDIR}/bin/cc + @${LN} -s `which ${CXX}` ${WRKDIR}/bin/g++ + @${LN} -s `which ${CXX}` ${WRKDIR}/bin/c++ + do-build: @cd ${WRKSRC} ; ./bootstrap .if !defined(WITHOUT_MOZILLA) @@ -178,9 +185,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: |