Mercurial > sdl-ios-xcode
comparison configure.in @ 1140:af8b0f9ac2f4
iPod Linux framebuffer support.
--ryan.
Date: Sun, 19 Jun 2005 15:53:22 -0700
From: Joshua Oreman <oremanj@gmail.com>
To: sdl@libsdl.org
Subject: [SDL] [PATCH] iPod framebuffer video driver
Hi SDL-list,
I've been working on a port of SDL to iPodLinux
(http://www.ipodlinux.org). I've created a patch for both the
standard 2-bit iPod screen (using an unchangeable palette) and the
16-bit iPod photo. The patch is attached, against version 1.2.8.
I've created two pages on the iPodLinux wiki about this patch:
http://www.ipodlinux.org/Building_SDL and
http://www.ipodlinux.org/SDL_Programming. See those pages if you're
curious.
Comments? Questions? Is this something that might be able to get into SDL 1.2.9?
Thanks for your feedback!
-- Josh
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 08 Sep 2005 07:33:22 +0000 |
parents | d16c010d5d98 |
children | 2651158f59b8 |
comparison
equal
deleted
inserted
replaced
1139:d0ae4dff7208 | 1140:af8b0f9ac2f4 |
---|---|
547 | 547 |
548 fi | 548 fi |
549 fi | 549 fi |
550 } | 550 } |
551 | 551 |
552 dnl Do the iPod thing | |
553 CheckIPod() | |
554 { | |
555 AC_ARG_ENABLE(ipod, | |
556 [ --enable-ipod configure SDL to work with iPodLinux [default=yes on arm-elf]], | |
557 , enable_ipod=yes) | |
558 | |
559 if test x$enable_ipod = xyes; then | |
560 CFLAGS="$CFLAGS -DENABLE_IPOD -DIPOD" | |
561 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ipod" | |
562 VIDEO_DRIVERS="$VIDEO_DRIVERS ipod/libvideo_ipod.la" | |
563 fi | |
564 } | |
565 | |
552 dnl Find the nanox include and library directories | 566 dnl Find the nanox include and library directories |
553 CheckNANOX() | 567 CheckNANOX() |
554 { | 568 { |
555 AC_ARG_ENABLE(video-nanox, | 569 AC_ARG_ENABLE(video-nanox, |
556 [ --enable-video-nanox use nanox video driver [default=no]], | 570 [ --enable-video-nanox use nanox video driver [default=no]], |
1304 *) | 1318 *) |
1305 pthread_cflags="-D_REENTRANT" | 1319 pthread_cflags="-D_REENTRANT" |
1306 pthread_lib="-lpthread" | 1320 pthread_lib="-lpthread" |
1307 ;; | 1321 ;; |
1308 esac | 1322 esac |
1309 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then | 1323 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then |
1310 # Save the original compiler flags and libraries | 1324 # Save the original compiler flags and libraries |
1311 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" | 1325 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" |
1312 # Add the pthread compiler flags and libraries | 1326 # Add the pthread compiler flags and libraries |
1313 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" | 1327 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" |
1314 # Check to see if we have pthread support on this system | 1328 # Check to see if we have pthread support on this system |
1930 [ --enable-rpath use an rpath when linking SDL [default=yes]], | 1944 [ --enable-rpath use an rpath when linking SDL [default=yes]], |
1931 , enable_rpath=yes) | 1945 , enable_rpath=yes) |
1932 } | 1946 } |
1933 | 1947 |
1934 case "$target" in | 1948 case "$target" in |
1949 arm-*-elf*) | |
1950 ARCH=linux | |
1951 CheckDummyVideo | |
1952 CheckIPod | |
1953 # Set up files for the timer library | |
1954 if test x$enable_timers = xyes; then | |
1955 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1956 fi | |
1957 ;; | |
1935 *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu) | 1958 *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu) |
1936 case "$target" in | 1959 case "$target" in |
1937 *-*-linux*) ARCH=linux ;; | 1960 *-*-linux*) ARCH=linux ;; |
1938 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; | 1961 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; |
1939 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; | 1962 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; |
2808 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos) | 2831 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos) |
2809 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos) | 2832 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos) |
2810 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx) | 2833 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx) |
2811 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx) | 2834 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx) |
2812 AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint) | 2835 AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint) |
2836 AM_CONDITIONAL(TARGET_IPOD, test x$enable_ipod = xyes) | |
2813 | 2837 |
2814 # More automake conditionals | 2838 # More automake conditionals |
2815 AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes) | 2839 AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes) |
2816 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) | 2840 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) |
2817 AM_CONDITIONAL(HAVE_NASM, test x$use_nasm = xyes) | 2841 AM_CONDITIONAL(HAVE_NASM, test x$use_nasm = xyes) |
2987 src/video/dummy/Makefile | 3011 src/video/dummy/Makefile |
2988 src/video/epoc/Makefile | 3012 src/video/epoc/Makefile |
2989 src/video/fbcon/Makefile | 3013 src/video/fbcon/Makefile |
2990 src/video/gem/Makefile | 3014 src/video/gem/Makefile |
2991 src/video/ggi/Makefile | 3015 src/video/ggi/Makefile |
3016 src/video/ipod/Makefile | |
2992 src/video/maccommon/Makefile | 3017 src/video/maccommon/Makefile |
2993 src/video/macdsp/Makefile | 3018 src/video/macdsp/Makefile |
2994 src/video/macrom/Makefile | 3019 src/video/macrom/Makefile |
2995 src/video/nanox/Makefile | 3020 src/video/nanox/Makefile |
2996 src/video/photon/Makefile | 3021 src/video/photon/Makefile |