Commit graph

269 commits

Author SHA1 Message Date
Sam Lantinga
8ead6868f9 sdl-config doesn't include the OpenGL library in --libs
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401774
2006-05-11 04:16:39 +00:00
Sam Lantinga
f557a45feb Only set Mac OS X default if both parameters are left default
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401768
2006-05-10 15:21:14 +00:00
Sam Lantinga
5bb606e842 --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401767
2006-05-10 15:00:30 +00:00
Sam Lantinga
dedf915e88 Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401766
2006-05-10 14:59:08 +00:00
Sam Lantinga
fea6ccebe3 Fixed X11 support on Mac OS X Universal build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401758
2006-05-10 05:17:58 +00:00
Sam Lantinga
9cdedc648e Fixed bug #203
Disable screensaver and DPMS blanking while SDL app is running.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401742
2006-05-08 06:38:13 +00:00
Sam Lantinga
ff8de4f06a Only use -fvisibility=hidden if SDL will define some symbols as available. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401703
2006-04-29 04:08:40 +00:00
Sam Lantinga
4422ede0bd Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401679
2006-04-28 05:38:06 +00:00
Sam Lantinga
d3375d8aba Mac OS X fat build works! :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401655
2006-04-22 19:17:14 +00:00
Sam Lantinga
8a7b961a28 Use the MAKE variable when available
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401647
2006-04-17 03:58:29 +00:00
Sam Lantinga
4b9dfebabd Miscellaneous Mac OS X fixes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401645
2006-04-17 03:34:28 +00:00
Sam Lantinga
ca1aba099a Date: Fri, 31 Mar 2006 18:28:55 -0500
From: Mike Frysinger
Subject: [SDL] [patch] touchup configure --help output

the current output includes a lot of "default=yes" stuff in it ... except that
it lacks the [] around it

patch attached to fix the situation

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401644
2006-04-14 06:03:09 +00:00
Sam Lantinga
a56f361892 Don't check dlopen on Mac OS X, to retain 10.2 compatibility
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401639
2006-04-13 15:36:27 +00:00
Sam Lantinga
7a15c646b5 Fixed bug #185
The SDL platform header shouldn't dictate the OS target API for other
applications.  The build system should define the target API for building
SDL internally.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401635
2006-04-13 14:14:06 +00:00
Sam Lantinga
678ac92409 Fixed bug #193
The attached patch is mostly cosmetic: Currently, we always add both -framework
OpenGL and -framework AGL for Mac OS X command line builds.

However, the former is only used for the Cocoa video driver, and the latter
only for the Carbon video driver (as far as I can tell, at least). Hence the
attached patch modifies configure.in so that each only gets added to the list
of frameworks if the corresponding video driver is enabled.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401632
2006-04-13 13:30:21 +00:00
Sam Lantinga
2cfa74d7b8 Fixed bug #192
The change made to sdl-config.in on March 18 (rev 11, see
http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/sdl-config.in), broke static linking
under Mac OS X for unix style build systems. In other words, "sdl-config
--static-libs" no longer produces the correct output, as it is missing the
required -framework switches.

The attached patch fixes this.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401631
2006-04-13 13:29:00 +00:00
Sam Lantinga
be0f0ff107 Fixes bug #195:
The proper name of Apple's operating system is "Mac OS X" not "MacOS X", as can
bee seen in many places, for example http://www.apple.com/macosx/). This
contrasts the naming of the old operating system, which was called "MacOS" and
today is often refered to as "MacOS Classic".

The attached patches fixes the misuse of the name "MacOS X" in both the SDL12
and sdlweb CVS modules.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401628
2006-04-13 13:08:26 +00:00
Sam Lantinga
1237375c2d Fixed bug #177
The attached patch changes configure.in to use "-framework FOO" instead of
"-Wl,-framework,FOO".

This avoid some issues with certain versions of libtool that do not handle
-framework properly.
Some versions of libtool will try to reorder the two parts of the option, or
render the 2nd part of the argument to the relative path of a non-existent
library.

Note: It is not enough if SDL uses a version of libtool that does this
correctly, because these -framework options show up in "sdl-config --libs".
Hence, some 3rd party apps which still ship with an old libtool have troubles
compiling under Mac OS X.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401618
2006-03-24 05:11:51 +00:00
Sam Lantinga
bd6b201457 ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401613
2006-03-23 21:46:24 +00:00
Sam Lantinga
3c6f272957 Fixed DirectFB detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401609
2006-03-23 17:31:12 +00:00
Sam Lantinga
2f05889935 Hopefully fixed up DirectFB detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401608
2006-03-23 15:25:30 +00:00
Sam Lantinga
10d2937b45 Better wscons detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401604
2006-03-23 07:44:52 +00:00
Sam Lantinga
f60cdaa43f Lines swapped to match ordering elsewhere
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401597
2006-03-22 22:42:44 +00:00
Ryan C. Gordon
be7a5193c8 Xrandr support in the X11 target.
Fixes Bugzilla #109, and as a bonus, Bugzilla #145, too!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401594
2006-03-22 11:13:58 +00:00
Sam Lantinga
164d170fcd Improved DirectFB install detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401593
2006-03-22 09:18:10 +00:00
Sam Lantinga
e0c405fad1 Default to use the visibility attribute, on gcc (is this okay?)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401578
2006-03-22 04:51:44 +00:00
Ryan C. Gordon
0fc4f94726 Added support for gcc4's -fvisibility=hidden option.
Fixes Bugzilla #169.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401577
2006-03-22 01:28:36 +00:00
Sam Lantinga
1b970c313e Add /usr/local to the build paths by default
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401575
2006-03-21 10:38:41 +00:00
Sam Lantinga
d8557b0440 Fixed bug #167
The configure script parses the value of $X_LIBS when looking at the
--enable-x11-shared, which is getting set on Ubuntu 5.10 to "-L/usr/X11R6/lib"
... however, Ubuntu stores all the Xlib stuff in /usr/lib.

The end result in SDL is that the dynamic X11 stuff gets disabled by default,
unless you override like this:

 ./configure --x-libraries=/usr/lib

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401573
2006-03-21 09:51:33 +00:00
Sam Lantinga
f1b5352fed Good idea, renaming OpenBSD audio to BSD audio.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401571
2006-03-21 09:33:54 +00:00
Sam Lantinga
b31a8872e5 Allow adding to the INCLUDE path
Allow overriding the NASMFLAGS

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401570
2006-03-21 09:24:10 +00:00
Sam Lantinga
de8aa2291c Fixed bug #52
Integrated most of the NetBSD and DragonFly patches at:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/SDL/patches/

Thanks to Thomas Klausner for defailed information on the patches

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401569
2006-03-21 08:54:50 +00:00
Sam Lantinga
ec2060c825 Fixed bug #84
Actually implemented banked update for SVGAlib

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401560
2006-03-19 19:03:40 +00:00
Sam Lantinga
ac4f328755 Fixed bug #89
Date: Sun, 23 Oct 2005 16:39:03 +0200
From: "A. Schmid" <sahib@phreaker.net>
Subject: [SDL] no software surfaces with svgalib driver?

Hi,

I noticed that the SDL (1.2.9) svgalib driver only makes use of linear
addressable (framebuffer) video modes. On older systems (like one of
mine), linear addressable modes are often not available.
Especially for cards with VESA VBE < 2.0 the svgalib vesa driver is
unusable, since VESA only supports framebuffering for VBE 2.0 and later.

The changes necessary to add support for software surfaces seem to be
relatively small. I only had to hack src/video/svga/SDL_svgavideo.c (see
attached patch). The code worked fine for me, but it is no more than a
proof of concept and should be reviewed (probably has a memory leak when
switching modes). It also uses the vgagl library (included in the
svgalib package) and needs to be linked against it.

-Alex

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401559
2006-03-19 12:05:16 +00:00
Sam Lantinga
505a58469a Fixed bug #166
From the autoconf obsolete macros documentation:
Macro: AC_CANONICAL_SYSTEM

    Determine the system type and set output variables to the names of the canonical system types. See section Getting the Canonical System Type, for details about the variables this macro sets.

    The user is encouraged to use either AC_CANONICAL_BUILD, or AC_CANONICAL_HOST, or AC_CANONICAL_TARGET, depending on the needs. Using AC_CANONICAL_TARGET is enough to run the two other macros.

From the documentation for the canonical environments:
case $target in
i386-*-mach* | i386-*-gnu*)
             obj_format=aout emulation=mach bfd_gas=yes ;;
i960-*-bout) obj_format=bout ;;
esac

Note that the above example uses $target because it's taken from a tool which can be built on some architecture ($build), run on another ($host), but yet handle data for a third architecture ($target). Such tools are usually part of a compiler suite, they generate code for a specific $target.

However $target should be meaningless for most packages. If you want to base a decision on the system where your program will be run, make sure you use the $host variable.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401554
2006-03-19 05:27:22 +00:00
Sam Lantinga
d6d98ddcc5 EXTRA_LDFLAGS are the linker flags and libraries needed to build SDL.
SDL_LIBS are the linker flags and libraries needed to build SDL applications.
SDL_STATIC_LIBS is set to SDL_LIBS by default.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401552
2006-03-18 18:41:59 +00:00
Patrice Mandin
dbce258f24 I did not find in configure.in where SYSTEM_LIBS where set for other platforms, and why I did not have required extra libraries added in sdl-config, so I set it there
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401551
2006-03-17 19:54:39 +00:00
Ryan C. Gordon
66d3d81854 Implemented dummy audio driver.
Fixes Bugzilla #161.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401536
2006-03-14 08:53:33 +00:00
Sam Lantinga
7c958aee64 CFLAGS are separate from EXTRA_CFLAGS
Fixed iconv.h detection on Cygwin32

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401525
2006-03-14 02:46:26 +00:00
Sam Lantinga
5aa43a48d5 Add the NAS library directory, since X11 is dynamically loaded now...
FIXME: See if we can dynamically load NAS

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401524
2006-03-13 18:01:34 +00:00
Sam Lantinga
393b8049ba Added _strnicmp support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401516
2006-03-13 02:12:39 +00:00
Sam Lantinga
d99aa28246 Win32 fixes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401514
2006-03-13 02:06:33 +00:00
Sam Lantinga
3750cb6c4d Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401505
2006-03-13 01:08:00 +00:00
Patrice Mandin
c127861be3 Add missing asm source files
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401481
2006-03-06 18:42:30 +00:00
Sam Lantinga
fbd764a441 Don't put X_LIBS in the linker flags if we're dynamically loading X11
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401472
2006-03-06 01:05:11 +00:00
Sam Lantinga
0e67f0fd20 Removed accidentally copied/pasted script for ALSA detection
It's only a warning if dynamic loading code isn't possible.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401471
2006-03-06 00:50:03 +00:00
Sam Lantinga
57e208b928 Date: Wed, 01 Mar 2006 10:14:31 +0000
From: "alan buckley"
Subject: Re: Updating SDL for RISC OS

I've attached a zip file with three diffs to get SDL to build on RISC OS.

configure.in.diff and makedeps.sh.diff have been modified so that they
can build the assembler file in video/riscos. You may want to double
check these as I don't know a lot about unix shell programming.
(I've tested them cross-compiling on cygwin).

sdlsysthread.diff is the changes required to SDL_systhread.c for RISC
OS. As you suspected with these changes in place you can delete the
RISC OS specific threading code in thread/riscos.

I've also renamed SDL_riscosASM.s to SDL_riscosASM.S, but I'm never
quite sure how to rename files in CVS, so if you could to this it would
be appreciated.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401463
2006-03-02 03:24:20 +00:00
Sam Lantinga
a9ee23bb9f Fixed a bunch of 64-bit compatibility problems
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401460
2006-03-01 09:43:47 +00:00
Sam Lantinga
03c1ccfae0 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401456
2006-02-27 18:58:12 +00:00
Ryan C. Gordon
5e4bf29fa7 Need this or things might misbuild on G3 Mac OS, I think.
Potentially fixes Bugzilla #148.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401449
2006-02-27 01:32:12 +00:00