Ticket #328: libsdl-patch

File libsdl-patch, 1.9 KB (added by daved@…, 21 years ago)

libsdl port patch

Line 
1Common subdirectories: libsdl/CVS and libsdl.orig/CVS
2diff -u libsdl/Portfile libsdl.orig/Portfile
3--- libsdl/Portfile     Thu Jan 16 20:08:24 2003
4+++ libsdl.orig/Portfile        Wed Jan 15 22:38:51 2003
5@@ -1,12 +1,30 @@
6 PortSystem 1.0
7 name           libsdl
8-version                1.2.4
9+version                1.2.5
10 categories     graphics
11 maintainers    leimy@opendarwin.org
12 description    Cross-platform multi-media development API
13-platforms      darwin
14+platforms      darwin freebsd
15 master_sites   http://www.libsdl.org/release/
16 distname       SDL-${portversion}
17-checksums      md5 116c083aad99faae691c6ca8dcdf406d
18+checksums      md5 cacacf4e4cca546de168fedc23b9b44b
19+homepage       http://www.libsdl.org/
20+configure.args --enable-shared
21+long_description \
22+               Simple DirectMedia Layer is a cross-platform \
23+               multimedia library designed to provide \
24+               fast access to the graphics framebuffer \
25+               and audio device. It is used by MPEG \
26+               playback software, emulators, and many \
27+               popular games, including the award winning \
28+               Linux port of "Civilization: Call To \
29+               Power." Simple DirectMedia Layer supports \
30+               Linux, Win32, BeOS, MacOS, Solaris, IRIX, \
31+               and FreeBSD.
32+
33+patch {
34+       reinplace "s|@SDL_CFLAGS@|-I@includedir@ @SDL_CFLAGS@|" \
35+               ${workdir}/${worksrcdir}/sdl-config.in
36+}
37 
38 include contents
39diff -u libsdl/contents libsdl.orig/contents
40--- libsdl/contents     Thu Jan 16 20:08:24 2003
41+++ libsdl.orig/contents        Wed Jan 15 22:38:51 2003
42@@ -27,6 +27,7 @@
43                include/SDL/SDL_types.h \
44                include/SDL/SDL_version.h \
45                include/SDL/SDL_video.h \
46+               include/SDL \
47                lib/libSDL.a \
48                lib/libSDL.la \
49                lib/libSDLmain.a \
50@@ -205,3 +206,15 @@
51                man/man3/SDL_WM_ToggleFullScreen.3 \
52                man/man3/SDLKey.3 \
53                share/aclocal/sdl.m4
54+
55+variant darwin {
56+       contents-append         lib/libSDL-1.2.0.0.5.dylib \
57+                               lib/libSDL-1.2.0.dylib \
58+                               lib/libSDL.dylib
59+}
60+
61+variant freebsd {
62+       contents-append         lib/libSDL-1.2.so \
63+                               lib/libSDL-1.2.so.0 \
64+                               lib/libSDL.so
65+}