Commit Graph

213 Commits

Author SHA1 Message Date
Sam Lantinga
4511ef7380 Pass LDFLAGS to the build system 2006-02-20 20:08:29 +00:00
Sam Lantinga
1badb7bebc Fixed X11 library detection
Allow passing CFLAGS for the build in the environment
2006-02-20 11:30:29 +00:00
Sam Lantinga
055b401cac build fixes for IRIX 6.5 - dynamic X11 loading works! :) 2006-02-20 08:49:00 +00:00
Sam Lantinga
35a29575fc NetBSD support 2006-02-20 03:57:03 +00:00
Sam Lantinga
65aa0aef4d Completely removed dependency on automake 2006-02-20 02:09:49 +00:00
Sam Lantinga
0ef73d9eae Use only safe string functions 2006-02-19 23:46:34 +00:00
Sam Lantinga
8cca5f73c6 *** empty log message *** 2006-02-19 19:38:27 +00:00
Sam Lantinga
ffcf29eab9 QuickTime depends on Carbon and ApplicationServices 2006-02-19 17:38:32 +00:00
Sam Lantinga
278934ee01 *** empty log message *** 2006-02-19 16:42:18 +00:00
Sam Lantinga
c422a88e93 Detect the X11 library on Solaris x86 2006-02-18 07:11:58 +00:00
Sam Lantinga
49255e3fa6 Fixes for BeOS and Solaris builds 2006-02-17 08:43:23 +00:00
Sam Lantinga
ce9148fdf0 spaces, not tabs. :) 2006-02-16 23:32:39 +00:00
Patrice Mandin
b148e4efd7 Add missing clause 2006-02-16 22:33:34 +00:00
Patrice Mandin
229acf7303 Fix typo 2006-02-16 22:00:06 +00:00
Sam Lantinga
9f4d5a314a Fixed building with cygwin 2006-02-16 20:17:43 +00:00
Sam Lantinga
f05187e232 New configure-based build system. Still work in progress, but much improved 2006-02-16 10:11:48 +00:00
Sam Lantinga
20c4849e7e Fixed build problem with SDL_string.c
Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h
Moved endian-related SDL_rwops code into SDL_rwops.c
2006-02-09 09:38:05 +00:00
Sam Lantinga
8df54cd371 Started the process of improving configure support, and merging C types
and library support into a single header.
2006-02-09 09:07:13 +00:00
Sam Lantinga
35665a2a6c Disable freaking autoheader. :) 2006-02-09 05:46:55 +00:00
Sam Lantinga
46a48c3887 Check for strtod 2006-02-08 09:06:34 +00:00
Sam Lantinga
d72a9898ed Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
2006-02-07 12:11:33 +00:00
Sam Lantinga
82bfaee73a It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
2006-02-06 08:28:51 +00:00
Sam Lantinga
f6f8aefcd1 Favor using pthread_mutexattr_settype() on Linux. 2006-02-03 06:33:54 +00:00
Sam Lantinga
b73cf4226a *** empty log message *** 2006-02-01 04:23:41 +00:00
Sam Lantinga
2246d1c59b We're no longer doing compile checks on the X11 extensions which we include.
(Resolves bug #114)
2006-01-31 19:09:09 +00:00
Ryan C. Gordon
bf26c5a03b Changed references to XFree86 to Xext to match change in directory structure.
Reference Bugzilla #116.
2006-01-31 18:39:32 +00:00
Ryan C. Gordon
9c5d7a5715 Corrects dynamic X11 code on Tru64 systems.
Fixes Bugzilla #87.
2006-01-30 18:21:44 +00:00
Ryan C. Gordon
64a36c7f71 Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
updated project files, VS2005 support, VGA mode, more device support, etc,
 etc, etc.

Fixes Bugzilla #47 and #28.

--ryan.
2006-01-19 08:43:00 +00:00
Ryan C. Gordon
fac887ab73 Fixed up build script to catch some of the newer files in a "make dist" run. 2006-01-19 08:36:41 +00:00
Ryan C. Gordon
0a3afc4557 Patched to compile. 2006-01-12 23:06:23 +00:00
Ryan C. Gordon
9edba2d35c Add XME hooks to X11 driver instead of relying on libxme...libxme hasn't
changed in five years, and it's a small .c file that just calls into the X11
 dependencies we already use elsewhere. Including it directly allows us to
 make use of the dynamic X11 code.

Fixes Bugzilla #41.

--ryan.
2006-01-12 22:46:36 +00:00
Sam Lantinga
95cc21edfa Bumped the version number for the next release 2006-01-04 01:08:40 +00:00
Ryan C. Gordon
64b1dd14f8 Fixed configure script on latest Mac OS X developer tools (and hopefully
didn't break it everywhere else...grumble...)

--ryan.
2005-12-12 11:14:29 +00:00
Ryan C. Gordon
517e70bca3 Date: Sat, 10 Dec 2005 18:29:41 +0100
From: Alberto Mardegan <mardy@users.sourceforge.net>
To: sdl@libsdl.org
Subject: [SDL] [PATCH] Touchscreen support to fbcon via tslib


Hi all!

  I'm new to this list, I just subscribed. I've attached to this e-mail
a patch I've written in order to add Touchscreen support to SDL's fbcon
module via the tslib library.
Since it introduces a new dependency, I've also edited the the
configure.in file and added it as a compile-time option.

This patch is especially useful for handhelds (I've tested it in my
Zaurus).
Please consider applying it. :-)


--
Saluti,
    Mardy
http://interlingua.altervista.org
2005-12-12 09:26:32 +00:00
Ryan C. Gordon
facc16df66 Date: Sun, 11 Dec 2005 20:37:04 +0100
From: Olivier Boudeville <olivier.boudeville@online.fr>
To: "A list for developers using the SDL library. \(includes SDL-announce\)" <sdl@libsdl.org>
Subject: [SDL] NetBSD build patch


Hi everybody,

apparently the SDL-1.2.9 source archive could not compile "as is" on
NetBSD 2.0_STABLE due to a pthread detection issue in the configure script.

I attached a small patch that can be applied to configure.in so that SDL
can be directly (i.e. without the NetBSD package manager) configured and
built successfully on NetBSD (at least on the one I tried !).

Hope this helps,

Olivier.
2005-12-12 09:22:36 +00:00
Ryan C. Gordon
840dbbbcbc Don't need to link against libstdc++ on Mac OS X now. 2005-12-01 19:22:32 +00:00
Ryan C. Gordon
9f1bdccb26 Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
a more official way to do OpenGL, explicitly check for glX on Mac OS X, and
 use SDL_LoadObject for platforms that have glX but don't have dlopen().
2005-11-23 11:46:36 +00:00
Ryan C. Gordon
f208d67504 To: sdl@libsdl.org
From: Staffan Ulfberg <staffan@ulfberg.se>
Date: 19 Nov 2005 01:00:48 +0100
Subject: [SDL] New driver for OpenBSD/wscons

Hello,

I've written an SDL driver for OpenBSD/wscons (console mode, somewhat
resembling the functionality of the svga driver for Linux).  I use it
for playing MAME on my Sharp Zaurus.  The alternative is to play under
X, which is slower.

I asked how to submit the driver a few days ago, and posted a link to
the patch in a follow-up, so maybe it was missed?

Anyway, the patch is on the web at:

http://multivac.fatburen.org/SDL-wscons.patch

Comments?

Staffan
2005-11-22 15:19:50 +00:00
Ryan C. Gordon
4f586bea68 Fixed Altivec support on Mac OS X. 2005-11-17 03:43:42 +00:00
Ryan C. Gordon
1c56c2d859 Enable dynamic X11 on Mac OS X. 2005-11-17 03:16:01 +00:00
Ryan C. Gordon
0953254c1e Split up src/SDL_loadso.c into platform directories. 2005-11-17 03:15:05 +00:00
Ryan C. Gordon
cde87da963 Use the right libs in dynamic X11 loading. 2005-11-08 01:34:28 +00:00
Ryan C. Gordon
032ff8811c Dynamically load X11 libraries like we currently do for alsa, esd, etc.
This allows you to run an SDL program on a system without Xlib, since it'll
 just report the x11 target unavailable at runtime.
2005-11-05 19:53:37 +00:00
Ryan C. Gordon
569a5e6c3e Enable altivec blitters on PowerPC Linux, and some fixes for recent
GCCs versions.
2005-10-20 06:55:26 +00:00
Ryan C. Gordon
344efd091a 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
2005-09-08 07:33:22 +00:00
Ryan C. Gordon
43c3b9b455 Fix dlvsym() detection in the configure script.
--ryan.


From: Mike Frysinger <vapier@gentoo.org>
To: sdl@libsdl.org
Subject: Re: [SDL] sdl, sdl-mixer not compiling with uclibc
Date: Wed, 7 Sep 2005 19:17:49 -0400

in this case actually, the error is in libsdl

the configure check for dlvsym presence is pretty pointless, it currently
always detects it

		AC_TRY_COMPILE([
		  #include <stdio.h>
		  #define __USE_GNU
		  #include <dlfcn.h>
		],[
		  dlvsym(NULL,"","");
		],[
		use_dlvsym=yes
		])

since it's merely compiling, the warning about dlvsym being implicitly
declared doesnt trigger a failure

find attached a patch to fix this
-mike
2005-09-08 06:43:51 +00:00
Ryan C. Gordon
41af118d8b The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
To: SDL Developers <sdl@libsdl.org>
From: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@algonet.se>
Date: Mon, 30 May 2005 23:29:04 +0200
Subject: [SDL] Mac OS X Video Drivers [patch]

I've updated/added the Carbon and X11 video drivers
to the Mac OS X port of SDL 1.2 (the CVS version),
and made the Cocoa driver and runtime *optional*.

The default is still Cocoa, and the "Quartz" driver.
But you can now also use "toolbox" for Carbon, and
"x11" for running with Apple's (or other) X11 server:

export SDL_VIDEODRIVER=x11
export SDL_VIDEO_GL_DRIVER=/usr/X11R6/lib/libGL.dylib

It also checks if the frameworks are available, by a:
#include <Carbon/Carbon.h> or #import <Cocoa/Cocoa.h>
(this should make it configure on plain Darwin as well?)


Here are the new configure targets:
   --enable-video-cocoa    use Cocoa/Quartz video driver default=yes
   --enable-video-carbon   use Carbon/QuickDraw video driver default=yes
   --enable-video-x11	   use X11 video driver default=no

./configure --enable-video-cocoa --enable-video-carbon
--enable-video-x11 \
	     --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib

The Carbon version is just an updated version of the old
SDL driver for Mac OS 9, and could probably be improved...
(but it does work, including the Carbon version of SDLmain)

If you disable cocoa, you can run with -framework Carbon only,
and the C version of SDL_main.c. And if you disable carbon too,
you can still use the X11 version which doesn't require SDLmain.

I updated the DrawSprocket version, but did not include it.
(no blitters or VRAM GWorlds etc. available on OS X anyway)
Besides for Mac OS 9, I don't think there's any use for it ?

And note that any performance on Mac OS X equals OpenGL anyway...
You can get "fair" software SDL results on captured CG displays,
but for decent frame rates you need to be using GL for rendering.


Finally, here is the patch itself:
http://www.algonet.se/~afb/SDL-12CVS-macvideo.patch

--anders

PS. It says "video", but as usual it applies to mouse/keyboard too.


------


To: A list for developers using the SDL library <sdl@libsdl.org>
From: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@algonet.se>
Date: Sun, 4 Sep 2005 10:02:15 +0200
Subject: [SDL] Updated Mac patch

Updated the previous Mac patch to disable Carbon by default.
Also "fixed" the SDL.spec again, so that it builds on Darwin.

http://www.algonet.se/~afb/SDL-1.2.9-mac.patch
Also applied fine to SDL12 CVS, when I tried it.
2005-09-08 06:16:14 +00:00
Sam Lantinga
1df5a7881b Date: Mon, 22 Aug 2005 04:22:46 -0400
From: "Ryan C. Gordon"
Subject: [Fwd: SDL patch: make usage of rpath optional]

Here's a small patch against current SDL CVS that makes usage of rpath
optional, by passing --disable-rpath to configure.  This comes in handy
when redistributing SDL -- the rpath setting prevents the lib being
loaded if it's not in the rpath, which makes redistributing in packages
to be installed by non-root users pretty much useless.
2005-08-23 06:36:23 +00:00
Sam Lantinga
65f934caa3 Date: Tue, 22 Mar 2005 23:50:20 +0100
From: Johannes Schmidt
Subject: [PATCH] Re: [SDL] SDL 1.2.8 Prerelease

On Saturday 18 December 2004 13:59, Stephane Marchesin wrote:
> >#error "The kernel sources in /usr/src/linux are not yet configured."
> >#error "Please run 'make cloneconfig && make dep' in /usr/src/linux/"
> >#error "to get a kernel that is configured like the running kernel."
> >#error "Alternatively, you can copy one of the config files"
> >#error "arch/$ARCH/defconfig.* to .config, and run"
> >#error "'make oldconfig && make dep' to configure the kernel"
> >#error "for that configuration."
> >-
>
> That's the Suse kernel sources...
> I think the only way out is to add a test in ./configure

Attached is a patch (it works for me[TM]) which adds a CheckLinuxVersion() to
configure.in and a check for HAVE_LINUX_VERSION_H to
src/cdrom/linux/SDL_syscdrom.c.
2005-05-20 07:34:34 +00:00
Ryan C. Gordon
eb4de39871 Altivec-optimized blitters!
Vast majority of this work is compliments of Bob Ippolito.

http://www.devolution.com/pipermail/sdl/2005-February/067466.html and many
 other posts.
2005-04-17 10:19:22 +00:00