Externals - Cleanup, cross-compiler working
authorJohn Hodge <[email protected]>
Sun, 9 Mar 2014 06:36:19 +0000 (14:36 +0800)
committerJohn Hodge <[email protected]>
Sun, 9 Mar 2014 06:36:19 +0000 (14:36 +0800)
> zlib, SDL, dropbear, and bochs compile with the targeted cross-compiler

24 files changed:
Externals/ACPICA/Makefile
Externals/ACPICA/Makefile.kinc
Externals/bochs/Makefile [new file with mode: 0644]
Externals/bochs/patches/config.h.in.patch [new file with mode: 0644]
Externals/bochs/patches/config.sub.patch [new file with mode: 0644]
Externals/common.mk [deleted file]
Externals/common_automake.mk [new file with mode: 0644]
Externals/config.mk
Externals/core.mk
Externals/cross-compiler/Makefile
Externals/cross-compiler/patches/binutils/bfd/config.bfd.patch
Externals/cross-compiler/patches/binutils/ld/Makefile.in.patch
Externals/cross-compiler/patches/binutils/ld/configure.tgt.patch
Externals/cross-compiler/patches/binutils/ld/emulparams/acess2_amd64.sh [new file with mode: 0644]
Externals/cross-compiler/patches/config/override.m4.patch [new file with mode: 0644]
Externals/cross-compiler/patches/gcc/gcc/config.gcc.patch
Externals/cross-compiler/patches/gcc/gcc/config/acess2.h
Externals/cross-compiler/patches/gcc/libgcc/config.host.patch
Externals/dropbear/Makefile
Externals/dropbear/patches/config.sub.patch [new file with mode: 0644]
Externals/sdl12/Makefile
Externals/sdl12/patches/configure.in.patch [deleted file]
Externals/sdl12/patches/configure.patch [new file with mode: 0644]
Externals/zlib/Makefile

index 60c188f..950f0ab 100644 (file)
@@ -4,7 +4,7 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../Makefile.cfg
 
 ACPI_DEBUG ?= no
 
-BIN := ../bin-$(ARCH)/libacpica.a
+BIN := ../Output/$(ARCH)-kernel/libacpica.a
 
 _VERS := $(patsubst acpica-unix-%.tar.gz,%,$(wildcard acpica-unix-*.tar.gz))
 _VERS := $(sort $(_VERS))
index 6410f51..f42e795 100644 (file)
@@ -1,7 +1,9 @@
+ACPICA_OBJECT := $(ACESSDIR)/Externals/Output/$(ARCH)-kernel/libacpica.a
+
 CPPFLAGS += -I $(ACESSDIR)/Externals/ACPICA/include -D_ACESS -D__KERNEL__
-EXTERN_OBJS += $(ACESSDIR)/Externals/bin-$(ARCH)/libacpica.a
+EXTERN_OBJS += $(ACPICA_OBJECT)
 
-$(ACESSDIR)/Externals/bin-$(ARCH)/libacpica.a:
+$(ACPICA_OBJECT):
        @make -C $(ACESSDIR)/Externals/ACPICA
        @make -C $(ACESSDIR)/Externals/ACPICA
 
diff --git a/Externals/bochs/Makefile b/Externals/bochs/Makefile
new file mode 100644 (file)
index 0000000..25b85e3
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# Acess2 Externals - bochs
+# - Patches and Makefile by John Hodge (thePowersGang)
+#
+
+DEPS := sdl12 cross-compiler
+TARBALL_PATTERN := bochs-*.tar.gz
+TARBALL_TO_DIR_L := bochs-%.tar.gz
+TARBALL_TO_DIR_R := bochs-%
+PATCHES := config.h.in config.sub
+
+#AUTORECONF = yes
+CONFIGURE_ARGS := --with-sdl --without-x11 LDFLAGS=-lpsocket
+
+include ../common_automake.mk
+
+
diff --git a/Externals/bochs/patches/config.h.in.patch b/Externals/bochs/patches/config.h.in.patch
new file mode 100644 (file)
index 0000000..3e8f898
--- /dev/null
@@ -0,0 +1,6 @@
+--- bochs-2.6.2_orig/config.h.in       2013-06-17 11:39:39.670720710 +0800
++++ bochs-2.6.2/config.h.in    2013-06-17 11:48:09.149384231 +0800
+@@ -57,2 +57,2 @@
+ // Define to 1 if you have <locale.h>
+-#define HAVE_LOCALE_H 0
++#undef HAVE_LOCALE_H
diff --git a/Externals/bochs/patches/config.sub.patch b/Externals/bochs/patches/config.sub.patch
new file mode 100644 (file)
index 0000000..9a3adc3
--- /dev/null
@@ -0,0 +1,7 @@
+--- bochs-2.6.2_orig/config.sub        2013-06-17 11:39:39.670720710 +0800
++++ bochs-2.6.2/config.sub     2013-06-17 11:48:09.149384231 +0800
+@@ -1299,2 +1299,3 @@
+             | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
++            | -acess2 \
+             | -aos* | -aros* \
+
diff --git a/Externals/common.mk b/Externals/common.mk
deleted file mode 100644 (file)
index 575c51a..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-# 
-# Acess2 OS - "Externals"
-# - By John Hodge (thePowersGang)
-#
-# common.mk
-# - Common makefile code for many autoconf(-like) externals
-
-include $(dir $(lastword $(MAKEFILE_LIST)))/core.mk
-
-CONFIGURE_LINE ?= $(SDIR)/configure --host=$(HOST) --prefix=$(PREFIX) --exec-prefix=$(EPREFIX) $(CONFIGURE_ARGS)
-
-
-CONFIGSCRIPT := $(BDIR)/$(firstword $(CONFIGURE_LINE))
-PATCHED_ACFILES := $(filter %/configure.in %/config.sub, $(PATCHED_FILES))
-$(warning $(CONFIGSCRIPT): $(PATCHED_ACFILES))
-
-$(CONFIGSCRIPT): $(PATCHED_ACFILES)
-ifeq ($(AUTORECONF),)
-else
-       cd $(DIR) && autoreconf --force --install
-endif
-
-$(BDIR)/Makefile: _patch $(CONFIGSCRIPT) ../common.mk Makefile 
-       mkdir -p $(BDIR)
-       cd $(BDIR) && PATH=$(PREFIX)-BUILD/bin:$(PATH) $(CONFIGURE_LINE)
-
-_build: $(BDIR)/Makefile
-       cd $(BDIR) && make $(BTARGETS)
-
-install: all
-       cd $(BDIR) && make $(ITARGETS)
-
diff --git a/Externals/common_automake.mk b/Externals/common_automake.mk
new file mode 100644 (file)
index 0000000..8f0ba3c
--- /dev/null
@@ -0,0 +1,32 @@
+# 
+# Acess2 OS - "Externals"
+# - By John Hodge (thePowersGang)
+#
+# common.mk
+# - Common makefile code for many autoconf(-like) externals
+
+include $(dir $(lastword $(MAKEFILE_LIST)))/core.mk
+
+CONFIGURE_LINE ?= $(SDIR)/configure --host=$(HOST) --prefix=$(PREFIX) --exec-prefix=$(EPREFIX) $(CONFIGURE_ARGS)
+
+
+CONFIGSCRIPT := $(BDIR)/$(firstword $(CONFIGURE_LINE))
+PATCHED_ACFILES := $(filter %/configure.in %/config.sub, $(PATCHED_FILES))
+$(warning $(CONFIGSCRIPT): $(PATCHED_ACFILES))
+
+$(CONFIGSCRIPT): $(PATCHED_ACFILES)
+ifeq ($(AUTORECONF),)
+else
+#      cd $(DIR) && aclocal --force -I acinclude
+#      cd $(DIR) && libtoolize --force
+       cd $(DIR) && autoreconf --force --install $(AUTORECONF_ARGS)
+endif
+
+$(BDIR)/Makefile: _patch $(CONFIGSCRIPT) ../common_automake.mk Makefile 
+       mkdir -p $(BDIR)
+       cd $(BDIR) && $(CONFIGURE_ENV) PATH=$(PATH) $(CONFIGURE_LINE)
+
+_build: $(BDIR)/Makefile
+       PATH=$(PATH) make $(BTARGETS) -C $(BDIR)
+       PATH=$(PATH) make $(ITARGETS) -C $(BDIR)
+
index 5e688b5..26b9efb 100644 (file)
@@ -16,5 +16,9 @@ endif
 PREFIX=$(ACESSDIR)/Externals/Output/$(ARCH)
 EPREFIX=$(PREFIX)
 SYSROOT=$(ACESSDIR)/Externals/Output/sysroot-$(BFD)
-HOST=$(BFD)-acess_proxy-elf
+HOST=$(BFD)-pc-acess2
+PATH:=$(PREFIX)-BUILD/bin:$(PATH)
+INCLUDE_DIR=$(SYSROOT)/usr/include
+
+PARLEVEL ?= 1
 
index 56d4050..bc7a5b8 100644 (file)
@@ -44,7 +44,7 @@ endif
 DIR := $(patsubst $(TARBALL_TO_DIR_L),$(TARBALL_TO_DIR_R),$(ARCHIVE))
 
 ifeq ($(NOBDIR),)
- BDIR := build-$(DIR)
+ BDIR := build-$(ARCH)
 else
  BDIR := $(DIR)
 endif
@@ -57,14 +57,9 @@ all: $(DIR) _patch _build
 clean:
        rm -rf $(DIR) $(BDIR)
 
-$(DIR): $(ARCHIVE) patches/UNIFIED.patch
+$(DIR): $(ARCHIVE)
        tar -xf $(ARCHIVE)
-ifneq ($(wildcard patches/UNIFIED.patch),)
-       cd $(DIR) && patch -p1 < ../patches/UNIFIED.patch
-endif
 
-patches/UNIFIED.patch:
-       
 
 $(DIR)/%: patches/%.patch
        @echo [PATCH] $@
@@ -77,4 +72,8 @@ $(DIR)/%: patches/%
        @cp $< $@
 
 PATCHED_FILES := $(addprefix $(DIR)/,$(PATCHES))
-_patch: $(DIR) $(PATCHED_FILES)
+
+_patch: $(DIR) $(PATCHED_FILES) $(wildcard patches/UNIFIED.patch)
+ifneq ($(wildcard patches/UNIFIED.patch),)
+       cd $(DIR) && patch -p1 < ../patches/UNIFIED.patch
+endif
index 5239709..30ebe34 100644 (file)
@@ -1,27 +1,23 @@
 
--include ../../Makefile.cfg
+
+-include ../config.mk
 
 GCC_ARCHIVE:=$(lastword $(sort $(wildcard gcc-*.tar.bz2)))
 GCC_DIR:=$(GCC_ARCHIVE:%.tar.bz2=%)
 BINUTILS_ARCHIVE:=$(lastword $(sort $(wildcard binutils-*.tar.bz2)))
 BINUTILS_DIR:=$(BINUTILS_ARCHIVE:%.tar.bz2=%)
 
-BINUTILS_CHANGES := config.sub bfd/config.bfd gas/configure.tgt ld/configure.tgt ld/emulparams/acess2_i386.sh ld/Makefile.in
-GCC_CHANGES := config.sub gcc/config.gcc gcc/config/acess2.h libgcc/config.host 
-
-ifeq ($(ARCH),x86)
- BFDARCH:=i586
-else ifeq ($(ARCH),x86_64)
- BFDARCH:=x86_64
-else
- $(error Arch $(ARCH) is not supported by magic gcc makfile)
-endif
+BINUTILS_CHANGES := config.sub bfd/config.bfd gas/configure.tgt ld/configure.tgt ld/emulparams/acess2_i386.sh ld/emulparams/acess2_amd64.sh ld/Makefile.in
+GCC_CHANGES := config.sub gcc/config.gcc gcc/config/acess2.h libgcc/config.host
+# libstdc++-v3/crossconfig.m4 config/override.m4
 
-PARLEVEL ?= 1
+TARGET=$(HOST)
+GCC_TARGETS := gcc target-libgcc
+# target-libstdc++-v3 
 
-TARGET=$(BFDARCH)-pc-acess2
-PREFIX=$(shell pwd)/cross
-SYSROOT=$(shell pwd)/sysroot-$(ARCH)
+PREFIX := $(PREFIX)-BUILD
+BDIR_GCC := build-$(ARCH)/gcc
+BDIR_BINUTILS := build-$(ARCH)/binutils
 
 .PHONY: all clean binutils gcc include
 
@@ -30,8 +26,8 @@ all: include binutils gcc
 include:
        mkdir -p $(PREFIX)
        mkdir -p $(SYSROOT)/usr
-       -ln -s $(ACESSDIR)/Usermode/include $(SYSROOT)/usr/include
-       -ln -s $(ACESSDIR)/Usermode/Output/$(ARCH)/Libs $(SYSROOT)/usr/lib
+       ln -sf $(ACESSDIR)/Usermode/include $(SYSROOT)/usr/include
+       ln -sf $(ACESSDIR)/Usermode/Output/$(ARCH)/Libs $(SYSROOT)/usr/lib
 
 gcc: $(GCC_DIR) $(PREFIX)/bin/$(TARGET)-gcc
 
@@ -60,8 +56,8 @@ $(BINUTILS_DIR)/%: patches/binutils/%
        @echo [CP] $@
        @cp $< $@
 
-BDIR_GCC := build-$(ARCH)/gcc
-BDIR_BINUTILS := build-$(ARCH)/binutils
+$(GCC_DIR)/libstdc++-v3/configure: $(GCC_DIR)/libstdc++-v3/crossconfig.m4
+       cd $(GCC_DIR)/libstdc++-v3/ && autoconf
 
 $(BDIR_BINUTILS)/Makefile: $(addprefix $(BINUTILS_DIR)/,$(BINUTILS_CHANGES))
        @mkdir -p $(BDIR_BINUTILS)
@@ -71,13 +67,12 @@ $(PREFIX)/bin/$(TARGET)-ld: $(BDIR_BINUTILS)/Makefile
        @make -C $(BDIR_BINUTILS) all -j $(PARLEVEL)
        @make -C $(BDIR_BINUTILS) install
 
-$(BDIR_GCC)/Makefile: Makefile $(addprefix $(GCC_DIR)/,$(GCC_CHANGES))
+$(BDIR_GCC)/Makefile: Makefile $(addprefix $(GCC_DIR)/,$(GCC_CHANGES)) $(GCC_DIR)/libstdc++-v3/configure
        @mkdir -p $(BDIR_GCC)
        @cd $(BDIR_GCC) && PATH=$(PREFIX)/bin:$$PATH ../../$(GCC_DIR)/configure --target=$(TARGET) --prefix=$(PREFIX) --disable-nls --enable-langs=c,c++ --includedir=$(ACESSDIR)/Usermode/include "--with-sysroot=$(SYSROOT)"
 
 $(PREFIX)/bin/$(TARGET)-gcc: $(BDIR_GCC)/Makefile
-       @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) all-gcc -j $(PARLEVEL)
-       @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) all-target-libgcc -j $(PARLEVEL)
-       @make -C $(BDIR_GCC) install-gcc install-target-libgcc
+       @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) $(GCC_TARGETS:%=all-%) -j $(PARLEVEL)
+       @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) $(GCC_TARGETS:%=install-%)
 
 
index f3b8d3e..6b61642 100644 (file)
@@ -1,14 +1,18 @@
 --- bfd/config.bfd 2011-07-29 00:00:00.000000 +0000
 +++ bfd/config.bfd 2013-03-01 10:45:00.000000 +0800
-@@ -1576,2 +1576,11 @@
+@@ -1576,2 +1576,15 @@
    ;;
 +  i[3-7]86-*-acess2)
 +    targ_defvec=bfd_elf32_i386_vec
-+    targ_selvecs=i386coff_vec
++    targ_selvecs="bfd_elf32_i386_vec i386coff_vec"
 +    ;;
 +  x86_64-*-acess2)
 +    targ_defvec=bfd_elf64_x86_64_vec
 +    targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
 +    want64=true
++    ;;
++  arm-*-acess2)
++    targ_defvec=bfd_elf32_arm_vec
++    targ_selvecs="bfd_elf32_arm_vec"
 +    ;;
  # END OF targmatch.h
index f47e9f7..7643961 100644 (file)
@@ -1,7 +1,9 @@
 --- ld/Makefile.in
 +++ ld/Makefile.in
-@@ -2627,2 +2627,4 @@
+@@ -2627,2 +2627,6 @@
        ${GENSCRIPTS} elf32xtensa "$(tdir_elf32xtensa)"
 +eacess2_i386.c: $(srcdir)/emulparams/acess2_i386.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
 +      ${GENSCRIPTS} acess2_i386 "$(tdir_acess2_i386)"
++eacess2_amd64.c: $(srcdir)/emulparams/acess2_amd64.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
++      ${GENSCRIPTS} acess2_amd64 "$(tdir_acess2_amd64)"
  eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
index 828b07c..8d6a302 100644 (file)
@@ -1,6 +1,7 @@
 --- ld/configure.tgt
 +++ ld/configure.tgt
-@@ -167,1 +167,2 @@
+@@ -167,1 +167,3 @@
  i[3-7]86-*-nto-qnx*)    targ_emul=i386nto ;;
 +i[3-7]86-*-acess2*)    targ_emul=acess2_i386 ;;
++x86_64-*-acess2*)    targ_emul=acess2_amd64 ;;
 
diff --git a/Externals/cross-compiler/patches/binutils/ld/emulparams/acess2_amd64.sh b/Externals/cross-compiler/patches/binutils/ld/emulparams/acess2_amd64.sh
new file mode 100644 (file)
index 0000000..d31dae9
--- /dev/null
@@ -0,0 +1,18 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT=elf64-x86_64
+TEXT_START_ADDR=0x00400000
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
+TEMPLATE_NAME=elf64
+
+ARCH=x86_64
+MACHINE=
+NOP=0x90909090
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
+NO_SMALL_DATA=yes
+SEPARATE_GOTPLT=12
+
+ELF_INTERPRETER_NAME=\"/Acess/Libs/ld-acess.so\"
+
diff --git a/Externals/cross-compiler/patches/config/override.m4.patch b/Externals/cross-compiler/patches/config/override.m4.patch
new file mode 100644 (file)
index 0000000..ea2aafb
--- /dev/null
@@ -0,0 +1,15 @@
+--- orig/gcc-4.7.1/config/override.m4  2014-03-08 22:29:42.765585740 +0800
++++ gcc-4.7.1/config/override.m4       2011-03-05 15:32:50.000000000 +0800
+@@ -39,9 +39,9 @@
+ dnl without rewriting this file.
+ dnl Or for updating the whole tree at once with the definition above.
+ AC_DEFUN([_GCC_AUTOCONF_VERSION_CHECK],
++[dnl m4_if(m4_defn([_GCC_AUTOCONF_VERSION]),
++ dnl  m4_defn([m4_PACKAGE_VERSION]), [],
++ dnl [m4_fatal([Please use exactly Autoconf ]_GCC_AUTOCONF_VERSION[ instead of ]m4_defn([m4_PACKAGE_VERSION])[.])])
+-[m4_if(m4_defn([_GCC_AUTOCONF_VERSION]),
+-  m4_defn([m4_PACKAGE_VERSION]), [],
+-  [m4_fatal([Please use exactly Autoconf ]_GCC_AUTOCONF_VERSION[ instead of ]m4_defn([m4_PACKAGE_VERSION])[.])])
+ ])
+ m4_define([AC_INIT], m4_defn([AC_INIT])[
+ _GCC_AUTOCONF_VERSION_CHECK
index c8545ff..4a1525f 100644 (file)
@@ -4,7 +4,7 @@
  # Common parts for widely ported systems.
  case ${target} in
 +*-*-acess2*)
-+  extra_parts="crt0.o crtbegin.o crtend.o"
++  extra_parts="crtbegin.o crtend.o"
 +  gas=yes
 +  gnu_ld=yes
 +  default_use_cxa_atexit=yes
index c7ca51a..ec3c113 100644 (file)
@@ -7,7 +7,8 @@
     builtin_assert ("system=unix");   \
   } while(0);
 
-#define LIB_SPEC       "-lc -lld-acess"
+#define LIB_SPEC       "-lc -lld-acess -lposix"
+#define LIBSTDCXX "c++"
 
 /*
 #undef TARGET_VERSION                                     // note that adding these two lines cause an error in gcc-4.7.0
index 1ad2b3e..bcf7a4a 100644 (file)
@@ -5,11 +5,11 @@
        tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
        ;;
 +i[3-7]86-*-acess2*)
-+      extra_parts="crt0.o crtbegin.o crtend.o"
++      extra_parts="crtbegin.o crtend.o"
 +      tmake_file="$tmake_file i386/t-crtstuff"
 +      ;;
 +x86_64-*-acess2*)
-+      extra_parts="crt0.o crtbegin.o crtend.o"
++      extra_parts="crtbegin.o crtend.o"
 +      tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
 +      ;;
  i[34567]86-*-freebsd*)
index 2ae2894..270815c 100644 (file)
@@ -7,10 +7,11 @@ DEPS := zlib
 TARBALL_PATTERN := dropbear-*.tar.bz2
 TARBALL_TO_DIR_L := %.tar.bz2
 TARBALL_TO_DIR_R := %
-PATCHES := options.h
+PATCHES := options.h config.sub
 CONFIGURE_ARGS = --with-zlib=$(PREFIX) --disable-utmp --disable-wtmp --disable-lastlog
+CONFIGURE_ENV = LIBS=-lpsocket
 BTARGETS = dbclient dropbear
 ITARGETS = inst_dbclient inst_dropbear
 
-include ../common.mk
+include ../common_automake.mk
 
diff --git a/Externals/dropbear/patches/config.sub.patch b/Externals/dropbear/patches/config.sub.patch
new file mode 100644 (file)
index 0000000..cbbd73f
--- /dev/null
@@ -0,0 +1,9 @@
+--- config.sub
++++ config.sub
+@@ -1344,3 +1344,6 @@
+               os=-mint
+               ;;
++      -acess2)
++              os=-acess2
++              ;;
+       -aros*)
index 6ee50f8..30c17db 100644 (file)
@@ -7,9 +7,10 @@ DEPS :=
 TARBALL_PATTERN := SDL-*.tar.gz
 TARBALL_TO_DIR_L := %.tar.gz
 TARBALL_TO_DIR_R := %
-PATCHES := configure.in src/video/acess/ptyvideo.c src/video/SDL_video.c src/video/SDL_sysvideo.h
-CONFIGURE_ARGS = 
-AUTORECONF = yes
+PATCHES := configure build-scripts/config.sub
+PATCHES += src/video/acess/ptyvideo.c src/video/SDL_video.c src/video/SDL_sysvideo.h
+CONFIGURE_ARGS = --includedir=$(INCLUDEDIR) --bindir=$(PREFIX)-BUILD/bin/
+#AUTORECONF = yes
 
-include ../common.mk
+include ../common_automake.mk
 
diff --git a/Externals/sdl12/patches/configure.in.patch b/Externals/sdl12/patches/configure.in.patch
deleted file mode 100644 (file)
index df2154d..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
---- SDL-1.2.15_orig/configure.in       2013-06-17 11:39:39.670720710 +0800
-+++ SDL-1.2.15/configure.in    2013-06-17 11:48:09.149384231 +0800
-@@ -43,6 +43,147 @@
- AC_SUBST(LT_REVISION)
- AC_SUBST(LT_AGE)
-+AH_TEMPLATE(HAVE_ALTIVEC_H, [])
-+AH_TEMPLATE(HAVE_CLOCK_GETTIME, [])
-+AH_TEMPLATE(HAVE_LIBC, [])
-+AH_TEMPLATE(HAVE_MEMCMP, [])
-+AH_TEMPLATE(HAVE_MPROTECT, [])
-+AH_TEMPLATE(HAVE_SA_SIGACTION, [])
-+AH_TEMPLATE(HAVE_SEM_TIMEDWAIT, [])
-+AH_TEMPLATE(HAVE_STRTOD, [])
-+AH_TEMPLATE(SDL_ALTIVEC_BLITTERS, [])
-+AH_TEMPLATE(SDL_ASSEMBLY_ROUTINES, [])
-+AH_TEMPLATE(SDL_AUDIO_DISABLED, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ALSA, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ARTS, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_BAUDIO, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_BSD, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_COREAUDIO, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_DISK, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_DMEDIA, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_DSOUND, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_DUMMY, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ESD, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_ESD_DYNAMIC, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_MINT, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_MMEAUDIO, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_NAS, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_NAS_DYNAMIC, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_OSS, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_PAUD, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_PULSE, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_QNXNTO, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_SUNAUDIO, [])
-+AH_TEMPLATE(SDL_AUDIO_DRIVER_WAVEOUT, [])
-+AH_TEMPLATE(SDL_BYTEORDER, [])
-+AH_TEMPLATE(SDL_CDROM_AIX, [])
-+AH_TEMPLATE(SDL_CDROM_BEOS, [])
-+AH_TEMPLATE(SDL_CDROM_BSDI, [])
-+AH_TEMPLATE(SDL_CDROM_DISABLED, [])
-+AH_TEMPLATE(SDL_CDROM_FREEBSD, [])
-+AH_TEMPLATE(SDL_CDROM_LINUX, [])
-+AH_TEMPLATE(SDL_CDROM_MACOSX, [])
-+AH_TEMPLATE(SDL_CDROM_MINT, [])
-+AH_TEMPLATE(SDL_CDROM_OPENBSD, [])
-+AH_TEMPLATE(SDL_CDROM_OSF, [])
-+AH_TEMPLATE(SDL_CDROM_QNX, [])
-+AH_TEMPLATE(SDL_CDROM_WIN32, [])
-+AH_TEMPLATE(SDL_CPUINFO_DISABLED, [])
-+AH_TEMPLATE(SDL_EVENTS_DISABLED, [])
-+AH_TEMPLATE(SDL_FILE_DISABLED, [])
-+AH_TEMPLATE(SDL_HAS_64BIT_TYPE, [])
-+AH_TEMPLATE(SDL_HERMES_BLITTERS, [])
-+AH_TEMPLATE(SDL_INPUT_LINUXEV, [])
-+AH_TEMPLATE(SDL_INPUT_TSLIB, [])
-+AH_TEMPLATE(SDL_JOYSTICK_BEOS, [])
-+AH_TEMPLATE(SDL_JOYSTICK_DISABLED, [])
-+AH_TEMPLATE(SDL_JOYSTICK_DUMMY, [])
-+AH_TEMPLATE(SDL_JOYSTICK_IOKIT, [])
-+AH_TEMPLATE(SDL_JOYSTICK_LINUX, [])
-+AH_TEMPLATE(SDL_JOYSTICK_MINT, [])
-+AH_TEMPLATE(SDL_JOYSTICK_RISCOS, [])
-+AH_TEMPLATE(SDL_JOYSTICK_USBHID, [])
-+AH_TEMPLATE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H, [])
-+AH_TEMPLATE(SDL_JOYSTICK_WINMM, [])
-+AH_TEMPLATE(SDL_LOADSO_BEOS, [])
-+AH_TEMPLATE(SDL_LOADSO_DISABLED, [])
-+AH_TEMPLATE(SDL_LOADSO_DLCOMPAT, [])
-+AH_TEMPLATE(SDL_LOADSO_DLOPEN, [])
-+AH_TEMPLATE(SDL_LOADSO_LDG, [])
-+AH_TEMPLATE(SDL_LOADSO_WIN32, [])
-+AH_TEMPLATE(SDL_THREADS_DISABLED, [])
-+AH_TEMPLATE(SDL_THREAD_BEOS, [])
-+AH_TEMPLATE(SDL_THREAD_PTH, [])
-+AH_TEMPLATE(SDL_THREAD_PTHREAD, [])
-+AH_TEMPLATE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX, [])
-+AH_TEMPLATE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP, [])
-+AH_TEMPLATE(SDL_THREAD_SPROC, [])
-+AH_TEMPLATE(SDL_THREAD_WIN32, [])
-+AH_TEMPLATE(SDL_TIMERS_DISABLED, [])
-+AH_TEMPLATE(SDL_TIMER_BEOS, [])
-+AH_TEMPLATE(SDL_TIMER_MINT, [])
-+AH_TEMPLATE(SDL_TIMER_RISCOS, [])
-+AH_TEMPLATE(SDL_TIMER_UNIX, [])
-+AH_TEMPLATE(SDL_TIMER_WIN32, [])
-+AH_TEMPLATE(SDL_TIMER_WINCE, [])
-+AH_TEMPLATE(SDL_VIDEO_DISABLED, [])
-+AH_TEMPLATE(SDL_VIDEO_DISABLE_SCREENSAVER, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_AALIB, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_ACESS, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_BWINDOW, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_CACA, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_DDRAW, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_DGA, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_DIRECTFB, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_DUMMY, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_FBCON, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_GEM, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_GGI, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_IPOD, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_NANOX, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_PHOTON, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_PICOGUI, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_PS2GS, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_PS3, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_QTOPIA, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_QUARTZ, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_RISCOS, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_SVGALIB, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_TOOLBOX, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_VGL, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_WINDIB, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_WSCONS, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_DGAMOUSE, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_DYNAMIC, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_VIDMODE, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_XINERAMA, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_XME, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_XRANDR, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_X11_XV, [])
-+AH_TEMPLATE(SDL_VIDEO_DRIVER_XBIOS, [])
-+AH_TEMPLATE(SDL_VIDEO_OPENGL, [])
-+AH_TEMPLATE(SDL_VIDEO_OPENGL_GLX, [])
-+AH_TEMPLATE(SDL_VIDEO_OPENGL_OSMESA, [])
-+AH_TEMPLATE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC, [])
-+AH_TEMPLATE(SDL_VIDEO_OPENGL_WGL, [])
-+AH_TEMPLATE(int8_t,  [Signed 8-bit int])
-+AH_TEMPLATE(int16_t, [Signed 16-bit int])
-+AH_TEMPLATE(int32_t, [Signed 32-bit int])
-+AH_TEMPLATE(int64_t, [Signed 64-bit int])
-+AH_TEMPLATE(uint8_t,  [Unigned 8-bit int])
-+AH_TEMPLATE(uint16_t, [Unigned 16-bit int])
-+AH_TEMPLATE(uint32_t, [Unigned 32-bit int])
-+AH_TEMPLATE(uint64_t, [Unigned 64-bit int])
-+AH_TEMPLATE(uintptr_t, [Unsigned pointer-sized integer])
-+
- dnl Detect the canonical build and host environments
- AC_CONFIG_AUX_DIR([build-scripts])
- dnl AC_CANONICAL_HOST
-@@ -2831,6 +2972,16 @@
-         # The RISC OS platform requires special setup.
-         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
-         ;;
-+    *-acess*)
-+        ARCH=acess
-+        # Set up files for the video library
-+        if test x$enable_video = xyes; then
-+            AC_DEFINE(SDL_VIDEO_DRIVER_ACESS)
-+            SOURCES="$SOURCES $srcdir/src/video/acess/*.c"
-+            have_video=yes
-+        fi
-+       # TODO: Joystick
-+        ;;
-     *)
-         AC_MSG_ERROR([
- *** Unsupported host:  Please add to configure.in
diff --git a/Externals/sdl12/patches/configure.patch b/Externals/sdl12/patches/configure.patch
new file mode 100644 (file)
index 0000000..234ab6b
--- /dev/null
@@ -0,0 +1,19 @@
+--- configure
++++ configure
+@@ -30162,4 +30162,16 @@
+         # The RISC OS platform requires special setup.
+         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
+         ;;
++    *-acess*)
++        ARCH=acess
++        # Set up files for the video library
++        if test x$enable_video = xyes; then
++            cat >>confdefs.h <<\_ACEOF
++#define SDL_VIDEO_DRIVER_ACESS 1
++_ACEOF
++            SOURCES="$SOURCES $srcdir/src/video/acess/*.c"
++            have_video=yes
++        fi
++       # TODO: Joystick
++        ;;
+     *)
index 01e6c49..7f14e62 100644 (file)
@@ -8,8 +8,8 @@ TARBALL_PATTERN := zlib-*.tar.gz
 TARBALL_TO_DIR_L := %.tar.gz
 TARBALL_TO_DIR_R := %
 PATCHES := 
-CONFIGURE_LINE = CC=$(HOST)-gcc $(SDIR)/configure --static --prefix=$(PREFIX) --eprefix=$(EPREFIX)
+CONFIGURE_LINE = CC=$(HOST)-gcc $(SDIR)/configure --static --prefix=$(PREFIX) --eprefix=$(EPREFIX) --includedir=$(INCLUDE_DIR)
 NOBDIR = yes
 
-include ../common.mk
+include ../common_automake.mk
 

UCC git Repository :: git.ucc.asn.au