libsdl:moved into main for pisi 2.0
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import libtools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "SDL-%s" % get.srcVERSION()
|
||||
docdir = "%s/%s" % (get.docDIR(), get.srcNAME())
|
||||
|
||||
def setup():
|
||||
shelltools.export("CFLAGS", "%s -fPIC -O3" % get.CFLAGS())
|
||||
shelltools.export("CXXFLAGS", "%s -fPIC -O3" % get.CXXFLAGS())
|
||||
|
||||
# for libtool version matching
|
||||
#shelltools.copy("/usr/share/aclocal/ltversion.m4", "acinclude/")
|
||||
shelltools.system("./autogen.sh")
|
||||
|
||||
#libtools.libtoolize("--force --copy")
|
||||
|
||||
options = "--enable-events \
|
||||
--enable-cpuinfo \
|
||||
--enable-cdrom \
|
||||
--enable-threads \
|
||||
--enable-timers \
|
||||
--enable-file \
|
||||
--enable-alsa \
|
||||
--enable-oss \
|
||||
--enable-nasm \
|
||||
--enable-video-aalib \
|
||||
--enable-video-caca \
|
||||
--enable-video-directfb \
|
||||
--enable-video-fbcon \
|
||||
--enable-video-dummy \
|
||||
--enable-video-opengl \
|
||||
--enable-video-x11 \
|
||||
--enable-video-x11-xv \
|
||||
--enable-video-x11-xinerama \
|
||||
--enable-video-x11-xrandr \
|
||||
--with-x \
|
||||
--disable-rpath \
|
||||
--disable-arts \
|
||||
--disable-dga \
|
||||
--disable-esd \
|
||||
--disable-nas \
|
||||
--disable-video-dga \
|
||||
--disable-video-ggi \
|
||||
--disable-video-svga \
|
||||
--disable-video-x11-xme \
|
||||
--disable-static"
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
options += " --libdir=/usr/lib32 \
|
||||
--bindir=/emul32/bin \
|
||||
--mandir=/emul32/man \
|
||||
--disable-video-aalib \
|
||||
--disable-video-caca \
|
||||
--disable-video-directfb"
|
||||
|
||||
shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
|
||||
shelltools.export("CFLAGS", "%s -fPIC -O3 -m32" % get.CFLAGS())
|
||||
shelltools.export("CXXFLAGS", "%s -fPIC -O3 -m32" % get.CXXFLAGS())
|
||||
shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
|
||||
|
||||
autotools.configure(options)
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
libtools.preplib()
|
||||
|
||||
for i in ["html", "images", "index.html"]:
|
||||
pisitools.insinto(docdir, "docs/%s" % i)
|
||||
|
||||
pisitools.dodoc("BUGS", "CREDITS", "README", "README-SDL.txt", "TODO", "WhatsNew")
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -up SDL-1.2.13/include/SDL_stdinc.h~ SDL-1.2.13/include/SDL_stdinc.h
|
||||
--- SDL-1.2.13/include/SDL_stdinc.h~ 2007-12-31 05:48:36.000000000 +0100
|
||||
+++ SDL-1.2.13/include/SDL_stdinc.h 2009-02-13 11:01:34.000000000 +0100
|
||||
@@ -320,7 +320,7 @@ do { \
|
||||
#define SDL_memcpy4(dst, src, len) SDL_memcpy(dst, src, (len) << 2)
|
||||
#endif
|
||||
|
||||
-#if defined(__GNUC__) && defined(i386)
|
||||
+#if 0
|
||||
#define SDL_revcpy(dst, src, len) \
|
||||
do { \
|
||||
int u0, u1, u2; \
|
||||
@@ -0,0 +1,10 @@
|
||||
--- SDL-1.2.14/sdl.pc.in.no_lpthread 2009-10-13 01:07:20.000000000 +0200
|
||||
+++ SDL-1.2.14/sdl.pc.in 2009-11-08 14:52:47.000000000 +0100
|
||||
@@ -10,6 +10,6 @@
|
||||
Version: @SDL_VERSION@
|
||||
Requires:
|
||||
Conflicts:
|
||||
-Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
|
||||
+Libs: -L${libdir} @SDL_RLD_FLAGS@ -lSDL
|
||||
Libs.private: @SDL_STATIC_LIBS@
|
||||
Cflags: -I${includedir}/SDL @SDL_CFLAGS@
|
||||
@@ -0,0 +1,14 @@
|
||||
--- SDL-1.2.14/src/audio/pulse/SDL_pulseaudio.c.noproc 2009-10-17 09:45:42.000000000 +0200
|
||||
+++ SDL-1.2.14/src/audio/pulse/SDL_pulseaudio.c 2009-11-08 14:58:36.000000000 +0100
|
||||
@@ -364,7 +364,10 @@
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
- return(progname);
|
||||
+ if (progname)
|
||||
+ return(progname);
|
||||
+ else
|
||||
+ return SDL_strdup ("SDL");
|
||||
#elif defined(__NetBSD__)
|
||||
return getprogname();
|
||||
#else
|
||||
@@ -0,0 +1,13 @@
|
||||
--- src/joystick/linux/SDL_sysjoystick.c.org 2012-06-06 18:03:56.700819599 +0300
|
||||
+++ src/joystick/linux/SDL_sysjoystick.c 2012-06-06 18:04:31.473143816 +0300
|
||||
@@ -1106,6 +1106,10 @@ static __inline__ void EV_HandleEvents(S
|
||||
}
|
||||
break;
|
||||
case EV_ABS:
|
||||
+ if (code >= ABS_MISC) {
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
switch (code) {
|
||||
case ABS_HAT0X:
|
||||
case ABS_HAT0Y:
|
||||
@@ -0,0 +1,56 @@
|
||||
--- src/video/x11/SDL_x11events.c.orig Mon Feb 20 23:51:08 2012 -0500
|
||||
+++ src/video/x11/SDL_x11events.c Mon Mar 26 12:26:52 2012 +1300
|
||||
@@ -57,12 +57,6 @@
|
||||
static SDLKey MISC_keymap[256];
|
||||
SDLKey X11_TranslateKeycode(Display *display, KeyCode kc);
|
||||
|
||||
-/*
|
||||
- Pending resize target for ConfigureNotify (so outdated events don't
|
||||
- cause inappropriate resize events)
|
||||
-*/
|
||||
-int X11_PendingConfigureNotifyWidth = -1;
|
||||
-int X11_PendingConfigureNotifyHeight = -1;
|
||||
|
||||
#ifdef X_HAVE_UTF8_STRING
|
||||
Uint32 Utf8ToUcs4(const Uint8 *utf8)
|
||||
@@ -825,16 +819,6 @@
|
||||
#ifdef DEBUG_XEVENTS
|
||||
printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xconfigure.height);
|
||||
#endif
|
||||
- if ((X11_PendingConfigureNotifyWidth != -1) &&
|
||||
- (X11_PendingConfigureNotifyHeight != -1)) {
|
||||
- if ((xevent.xconfigure.width != X11_PendingConfigureNotifyWidth) &&
|
||||
- (xevent.xconfigure.height != X11_PendingConfigureNotifyHeight)) {
|
||||
- /* Event is from before the resize, so ignore. */
|
||||
- break;
|
||||
- }
|
||||
- X11_PendingConfigureNotifyWidth = -1;
|
||||
- X11_PendingConfigureNotifyHeight = -1;
|
||||
- }
|
||||
if ( SDL_VideoSurface ) {
|
||||
if ((xevent.xconfigure.width != SDL_VideoSurface->w) ||
|
||||
(xevent.xconfigure.height != SDL_VideoSurface->h)) {
|
||||
diff -r c787fb1b5699 src/video/x11/SDL_x11events_c.h
|
||||
--- src/video/x11/SDL_x11events_c.h.orig Mon Feb 20 23:51:08 2012 -0500
|
||||
+++ src/video/x11/SDL_x11events_c.h Mon Mar 26 12:26:52 2012 +1300
|
||||
@@ -27,8 +27,3 @@
|
||||
extern void X11_InitOSKeymap(_THIS);
|
||||
extern void X11_PumpEvents(_THIS);
|
||||
extern void X11_SetKeyboardState(Display *display, const char *key_vec);
|
||||
-
|
||||
-/* Variables to be exported */
|
||||
-extern int X11_PendingConfigureNotifyWidth;
|
||||
-extern int X11_PendingConfigureNotifyHeight;
|
||||
-
|
||||
diff -r c787fb1b5699 src/video/x11/SDL_x11video.c
|
||||
--- src/video/x11/SDL_x11video.c.orig Mon Feb 20 23:51:08 2012 -0500
|
||||
+++ src/video/x11/SDL_x11video.c Mon Mar 26 12:26:52 2012 +1300
|
||||
@@ -1182,8 +1182,6 @@
|
||||
current = NULL;
|
||||
goto done;
|
||||
}
|
||||
- X11_PendingConfigureNotifyWidth = width;
|
||||
- X11_PendingConfigureNotifyHeight = height;
|
||||
} else {
|
||||
if (X11_CreateWindow(this,current,width,height,bpp,flags) < 0) {
|
||||
current = NULL;
|
||||
@@ -0,0 +1,16 @@
|
||||
--- sdl-config.in.orig
|
||||
+++ sdl-config.in
|
||||
@@ -44,7 +44,12 @@
|
||||
echo -I@includedir@/SDL @SDL_CFLAGS@
|
||||
;;
|
||||
@ENABLE_SHARED_TRUE@ --libs)
|
||||
-@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
|
||||
+@ENABLE_SHARED_TRUE@ if test x"${prefix}" != x"/usr" ; then
|
||||
+@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@"
|
||||
+@ENABLE_SHARED_TRUE@ else
|
||||
+@ENABLE_SHARED_TRUE@ libdirs=""
|
||||
+@ENABLE_SHARED_TRUE@ fi
|
||||
+@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@
|
||||
@ENABLE_SHARED_TRUE@ ;;
|
||||
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
|
||||
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
|
||||
@@ -0,0 +1,13 @@
|
||||
# and another one from FS#26020
|
||||
|
||||
--- a/src/video/SDL_yuv_sw.c 2009-10-13 06:07:15.000000000 +0700
|
||||
+++ b/src/video/SDL_yuv_sw.c 2011-09-20 19:26:30.247742620 +0700
|
||||
@@ -89,6 +89,8 @@
|
||||
#include "SDL_yuvfuncs.h"
|
||||
#include "SDL_yuv_sw_c.h"
|
||||
|
||||
+#undef __OPTIMIZE__
|
||||
+
|
||||
/* The functions used to manipulate software video overlays */
|
||||
static struct private_yuvhwfuncs sw_yuvfuncs = {
|
||||
SDL_LockYUV_SW,
|
||||
@@ -0,0 +1,12 @@
|
||||
--- src/video/x11/SDL_x11sym.h-orig 2013-07-16 23:56:46.718523385 -0600
|
||||
+++ src/video/x11/SDL_x11sym.h 2013-07-16 23:58:27.025186485 -0600
|
||||
@@ -165,7 +165,8 @@
|
||||
*/
|
||||
#ifdef LONG64
|
||||
SDL_X11_MODULE(IO_32BIT)
|
||||
-SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
|
||||
+
|
||||
+SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
|
||||
SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libsdl</Name>
|
||||
<Homepage>http://www.libsdl.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Simple Direct Media Layer</Summary>
|
||||
<Description>libsdl is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.</Description>
|
||||
<Archive sha1sum="0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c" type="targz">http://www.libsdl.org/release/SDL-1.2.15.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency versionFrom="1.7.1">DirectFB-devel</Dependency>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
<Dependency>aalib-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">sdl-1.2.14-disable-mmx.patch</Patch>
|
||||
<Patch level="0">sdl_x11sym.patch</Patch>
|
||||
<Patch level="1">SDL-1.2.14-dont-propagate-lpthread.patch</Patch>
|
||||
<Patch level="1">SDL-1.2.14-noproc.patch</Patch>
|
||||
<Patch level="1">SDL-1.2.13-rh484362.patch</Patch>
|
||||
<Patch level="0">libsdl-1.2.15-sdl-config.patch</Patch>
|
||||
<Patch level="0">libsdl-1.2.15-resizing.patch</Patch>
|
||||
<Patch level="0">libsdl-1.2.15-joystick.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-docs</Name>
|
||||
<Summary>libsdl reference documents</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libsdl</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency versionFrom="1.7.1">DirectFB</Dependency>
|
||||
<Dependency>aalib</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-devel</Name>
|
||||
<Summary>Development files for libsdl</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libsdl</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||
<Path fileType="library">/usr/lib/libSDLmain.a</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32-bit shared libraries for libsdl</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<BuildDependencies>
|
||||
<Dependency>glibc-32bit</Dependency>
|
||||
</BuildDependencies>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libsdl</Dependency>
|
||||
<Dependency>glibc-32bit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-20</Date>
|
||||
<Version>1.2.15</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-10-14</Date>
|
||||
<Version>1.2.15</Version>
|
||||
<Comment>rebuild for DirectFB.</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>erdincgultekin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-08-29</Date>
|
||||
<Version>1.2.15</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libsdl</Name>
|
||||
<Summary xml:lang="tr">Basit bir direk ortam erişim katmanı</Summary>
|
||||
<Summary xml:lang="fr">Simple Direct Media Layer (Couche Média Simple et Directe).</Summary>
|
||||
<Summary xml:lang="de">Einfachee direkte Medien-Schicht</Summary>
|
||||
<Description xml:lang="tr">libsdl; ses, klavye, fare, oyun çubuğu, OpenGL ile 3B donanımsal hızlandırma, 2B görüntü belleğine direkt erişim sağlayan birden çok platform destekleyen bir çokluortam kitaplığıdır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-docs</Name>
|
||||
<Summary xml:lang="tr">libsdl başvuru belgeleri</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-devel</Name>
|
||||
<Summary xml:lang="tr">libsdl için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libsdl-32bit</Name>
|
||||
<Summary xml:lang="tr">libsdl için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user