diff options
author | mbr <mbr@FreeBSD.org> | 2002-07-22 06:48:50 +0800 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2002-07-22 06:48:50 +0800 |
commit | 445c73e2ddd5d174263a0de28b9e567378fbfc61 (patch) | |
tree | dcc3b4a1290cdb87bd932262e4f65ad3d12a8a6a /editors/openoffice-1.0 | |
parent | 682f1d92ec738bccffb95993207f8679cdcfabdb (diff) | |
download | freebsd-ports-gnome-445c73e2ddd5d174263a0de28b9e567378fbfc61.tar.gz freebsd-ports-gnome-445c73e2ddd5d174263a0de28b9e567378fbfc61.tar.zst freebsd-ports-gnome-445c73e2ddd5d174263a0de28b9e567378fbfc61.zip |
Make WITH_DEBUG tunable. WITH_DEBUG=1 just adds debugs symbols.
WITH_DEBUG=2 turns on internal OO.org debug support. Unfortunatly
it is broken at the moment.
Diffstat (limited to 'editors/openoffice-1.0')
-rw-r--r-- | editors/openoffice-1.0/Makefile | 11 | ||||
-rw-r--r-- | editors/openoffice-1.0/files/debugpatch-solenv+inc+unxfbsdi.mk | 18 | ||||
-rw-r--r-- | editors/openoffice-1.0/files/debugpatch-solenv::inc::unxfbsdi.mk | 18 |
3 files changed, 46 insertions, 1 deletions
diff --git a/editors/openoffice-1.0/Makefile b/editors/openoffice-1.0/Makefile index 7acb647ee826..61959f65cb26 100644 --- a/editors/openoffice-1.0/Makefile +++ b/editors/openoffice-1.0/Makefile @@ -127,7 +127,9 @@ WRKSRC= ${WRKDIR}/oo_1.0.1_src/config_office LD_PATH1= ${WRKSRC}/../vos/unxfbsd.pro/lib/:${WRKSRC}/../ucbhelper/unxfbsd.pro/lib/ LD_PATH= ${LD_PATH1}:${WRKSRC}/../solver/641/unxfbsd.pro/lib/ .if defined(WITH_DEBUG) +.if ${WITH_DEBUG} == 2 DMAKE= dmake debug="true" +.endif .else DMAKE= dmake strip="true" .endif @@ -147,8 +149,10 @@ CONFIGURE_ARGS+= --with-stlport4-home=${PREFIX} .endif .if defined(WITH_DEBUG) +.if ${WITH_DEBUG} == 2 CONFIGURE_ARGS+= --enable-debug .endif +.endif .if defined(USE_GCC) && (${USE_GCC} == 3.1 || ${USE_GCC} == 3.2) CONFIGURE_ARGS+= --enable-gcc3 @@ -175,7 +179,12 @@ pre-fetch: .if !defined(WITH_DEBUG) @${ECHO} @${ECHO} "You can compile OO with debug symbols" - @${ECHO} "if you call make with WITH_DEBUG=YES" + @${ECHO} "if you call make with WITH_DEBUG=1" + @${ECHO} + @${ECHO} "If you set WITH_DEBUG=2, you add internal" + @${ECHO} "OO.org debug support. This is currently" + @${ECHO} "broken." + @${ECHO} .endif .if ${OSVERSION} < 450002 @${ECHO} diff --git a/editors/openoffice-1.0/files/debugpatch-solenv+inc+unxfbsdi.mk b/editors/openoffice-1.0/files/debugpatch-solenv+inc+unxfbsdi.mk new file mode 100644 index 000000000000..52bd2b3d58d6 --- /dev/null +++ b/editors/openoffice-1.0/files/debugpatch-solenv+inc+unxfbsdi.mk @@ -0,0 +1,18 @@ +--- ../solenv/inc/unxfbsdi.mk.orig Mon Jul 22 00:40:56 2002 ++++ ../solenv/inc/unxfbsdi.mk Mon Jul 22 00:42:02 2002 +@@ -25,12 +25,12 @@ + .ENDIF + + # flags for C and C++ Compiler +-CFLAGS+=-w -c $(INCLUDE) -I$(SOLARENV)/unxfbsdi/usr/include ++CFLAGS+=-g -ggdb -w -c $(INCLUDE) -I$(SOLARENV)/unxfbsdi/usr/include + CFLAGS+=-I/usr/X11R6/include + + # flags for the C++ Compiler +-CFLAGSCC=-pipe +-CFLAGSCXX=-pipe -fno-for-scope -fpermissive ++CFLAGSCC=-g -ggdb -pipe ++CFLAGSCXX=-g -ggdb -pipe -fno-for-scope -fpermissive + + # Flags for enabling exception handling + CFLAGSEXCEPTIONS=-fexceptions diff --git a/editors/openoffice-1.0/files/debugpatch-solenv::inc::unxfbsdi.mk b/editors/openoffice-1.0/files/debugpatch-solenv::inc::unxfbsdi.mk new file mode 100644 index 000000000000..52bd2b3d58d6 --- /dev/null +++ b/editors/openoffice-1.0/files/debugpatch-solenv::inc::unxfbsdi.mk @@ -0,0 +1,18 @@ +--- ../solenv/inc/unxfbsdi.mk.orig Mon Jul 22 00:40:56 2002 ++++ ../solenv/inc/unxfbsdi.mk Mon Jul 22 00:42:02 2002 +@@ -25,12 +25,12 @@ + .ENDIF + + # flags for C and C++ Compiler +-CFLAGS+=-w -c $(INCLUDE) -I$(SOLARENV)/unxfbsdi/usr/include ++CFLAGS+=-g -ggdb -w -c $(INCLUDE) -I$(SOLARENV)/unxfbsdi/usr/include + CFLAGS+=-I/usr/X11R6/include + + # flags for the C++ Compiler +-CFLAGSCC=-pipe +-CFLAGSCXX=-pipe -fno-for-scope -fpermissive ++CFLAGSCC=-g -ggdb -pipe ++CFLAGSCXX=-g -ggdb -pipe -fno-for-scope -fpermissive + + # Flags for enabling exception handling + CFLAGSEXCEPTIONS=-fexceptions |