From 7b962f013b56121318641aa0b35a5f80fc0d0dde Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 15 Feb 2008 22:22:31 +0000 Subject: Robert P. J. DAY says: Add support for duma-2.5.12. diff --git a/config/debug/duma.in b/config/debug/duma.in index 4148f24..efc3df7 100644 --- a/config/debug/duma.in +++ b/config/debug/duma.in @@ -34,6 +34,10 @@ config DUMA_V_2_5_8 bool prompt "2_5_8" +config DUMA_V_2_5_12 + bool + prompt "2_5_12" + # CT_INSERT_VERSION_ABOVE # Don't remove above line! endchoice @@ -42,6 +46,7 @@ config DUMA_VERSION string default "2_5_1" if DUMA_V_2_5_1 default "2_5_8" if DUMA_V_2_5_8 + default "2_5_12" if DUMA_V_2_5_12 # CT_INSERT_VERSION_STRING_ABOVE # Don't remove above line! diff --git a/patches/duma/2_5_12/100-cross-compile.patch b/patches/duma/2_5_12/100-cross-compile.patch new file mode 100644 index 0000000..8401c0a --- /dev/null +++ b/patches/duma/2_5_12/100-cross-compile.patch @@ -0,0 +1,31 @@ +diff -durN duma_2_5_12.orig/Makefile duma_2_5_12/Makefile +--- duma_2_5_12.orig/Makefile 2007-08-17 09:34:25.000000000 +0200 ++++ duma_2_5_12/Makefile 2007-09-07 21:50:04.000000000 +0200 +@@ -93,9 +93,6 @@ + # also define 'WIN32' + + # some defaults: +-CC=gcc +-CXX=g++ +-AR=ar + INSTALL=install + RM=rm + RMFORCE=rm -f +@@ -299,7 +296,7 @@ + + createconf$(EXEPOSTFIX): createconf.o + - $(RMFORCE) createconf$(EXEPOSTFIX) +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX) ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX) + + tstheap$(EXEPOSTFIX): libduma.a tstheap.o + - $(RMFORCE) tstheap$(EXEPOSTFIX) +@@ -360,7 +357,7 @@ + # define rules how to build objects for createconf + # + createconf.o: +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@ ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@ + + + # diff --git a/patches/duma/2_5_12/200-separate_cpp.patch b/patches/duma/2_5_12/200-separate_cpp.patch new file mode 100644 index 0000000..df2d377 --- /dev/null +++ b/patches/duma/2_5_12/200-separate_cpp.patch @@ -0,0 +1,19 @@ +diff -durN duma_2_5_12.orig/Makefile duma_2_5_12/Makefile +--- duma_2_5_12.orig/Makefile 2007-09-07 21:57:45.000000000 +0200 ++++ duma_2_5_12/Makefile 2007-09-07 21:58:35.000000000 +0200 +@@ -231,9 +231,13 @@ + dumatest.c tstheap.c thread-test.c testmt.c dumatestpp.cpp testoperators.cpp \ + createconf.c + +-OBJECTS = dumapp.o duma.o sem_inc.o print.o ++OBJECTS = duma.o sem_inc.o print.o ++SO_OBJECTS = duma_so.o sem_inc_so.o print_so.o + +-SO_OBJECTS = dumapp_so.o duma_so.o sem_inc_so.o print_so.o ++ifeq ($(DUMA_CPP),1) ++OBJECTS += dumapp.o ++SO_OBJECTS += dumapp_so.o ++endif + + all: libduma.a tstheap$(EXEPOSTFIX) dumatest$(EXEPOSTFIX) thread-test$(EXEPOSTFIX) testmt$(EXEPOSTFIX) dumatestpp$(EXEPOSTFIX) testoperators$(EXEPOSTFIX) $(DUMA_DYN_DEPS) + @ $(ECHOLF) -- cgit v0.10.2-6-g49f6