[109313] trunk/dports/devel
jmr at macports.org
jmr at macports.org
Mon Aug 12 18:16:05 PDT 2013
Revision: 109313
https://trac.macports.org/changeset/109313
Author: jmr at macports.org
Date: 2013-08-12 18:16:05 -0700 (Mon, 12 Aug 2013)
Log Message:
-----------
New port: libsdl2
Modified Paths:
--------------
trunk/dports/devel/libsdl2/Portfile
Added Paths:
-----------
trunk/dports/devel/libsdl2/
Removed Paths:
-------------
trunk/dports/devel/libsdl2/files/
Modified: trunk/dports/devel/libsdl2/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile 2013-08-12 09:31:58 UTC (rev 109286)
+++ trunk/dports/devel/libsdl2/Portfile 2013-08-13 01:16:05 UTC (rev 109313)
@@ -2,57 +2,31 @@
# $Id$
PortSystem 1.0
-PortGroup xcodeversion 1.0
-conflicts libsdl-devel
-
-name libsdl
-set my_name SDL
-version 1.2.15
-revision 3
+name libsdl2
+set my_name SDL2
+version 2.0.0
categories devel multimedia
platforms macosx freebsd
-license LGPL-2.1+
+license zlib
maintainers jmr openmaintainer
description Cross-platform multi-media development API
long_description \
- Simple DirectMedia Layer is a cross-platform multimedia library designed \
- to provide fast access to the graphics framebuffer and audio device. It is \
- used by MPEG playback software, emulators, and many popular games, including \
- the award winning Linux port of \"Civilization: Call To Power.\" Simple \
- DirectMedia Layer supports Linux, Win32, BeOS, Mac OS, Solaris, IRIX, and FreeBSD.
+ Simple DirectMedia Layer is a cross-platform development library \
+ designed to provide low level access to audio, keyboard, mouse, \
+ joystick, and graphics hardware via OpenGL and Direct3D.
homepage http://www.libsdl.org/
master_sites ${homepage}release/
distname ${my_name}-${version}
-checksums rmd160 d4802a090cb4a24eeb0c8ce5690802f596d394c3 \
- sha256 d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
+checksums rmd160 3e29daa152eae2c1a473b8dd413e1b07ce35cd70 \
+ sha256 6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178
-minimum_xcodeversions {8 2.4.1}
-if {[vercmp $xcodeversion 4.2] >= 0 && [vercmp $xcodeversion 4.2.1] <= 0 && ($build_arch == "i386" || [variant_isset universal])} {
- # clang crashes with -O2, ticket #31649
- configure.optflags -Os
-}
+configure.args --without-x
-configure.args --disable-nasm \
- --without-x
-
-patchfiles \
- no-CGDirectPaletteRef.patch
-
-platform darwin {
- configure.ldflags-append -framework Carbon
-
- post-destroot {
- reinplace "/Libs:/s/-lSDLmain/-lSDLmain -Wl,-framework,AppKit/" ${destroot}${prefix}/lib/pkgconfig/sdl.pc
- reinplace "s/SDLmain.a/SDLmain.a -Wl,-framework,AppKit/" ${destroot}${prefix}/bin/sdl-config
- reinplace "s/-lSDLmain/-lSDLmain -Wl,-framework,AppKit/" ${destroot}${prefix}/bin/sdl-config
- }
-}
-
-variant x11 conflicts no_x11 {
+variant x11 {
configure.args-delete --without-x
configure.args-append --x-includes=${prefix}/include \
--x-libraries=${prefix}/lib \
@@ -62,36 +36,18 @@
port:xorg-libXrandr \
port:xrender
}
-variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
-if {[variant_isset no_x11]} {
- default_variants -x11
-} else {
+if {${os.subplatform} ne "macosx"} {
default_variants +x11
}
-post-configure {
- if {[variant_isset universal]} {
- system -W ${worksrcpath}/include "ed - ./SDL_config.h < ${filespath}/include_SDL_config.h.ed"
- }
-}
-
post-destroot {
- set docdir ${prefix}/share/doc/${name}
-
- xinstall -d ${destroot}${docdir}/html
-
- xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README README-SDL.txt \
- README.MacOSX TODO ${destroot}${docdir}
-
- xinstall -m 0644 -W ${worksrcpath} docs.html docs/index.html ${destroot}${docdir}/html
- reinplace {s at docs/@@g} ${destroot}${docdir}/html/docs.html
-
- foreach {dir} {html images} {
- xinstall -d ${destroot}${docdir}/html/${dir}
- eval xinstall -m 0644 [glob ${worksrcpath}/docs/${dir}/*] ${destroot}${docdir}/html/${dir}
- }
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} BUGS.txt COPYING.txt CREDITS.txt \
+ README.txt README-gesture.txt README-macosx.txt README-SDL.txt \
+ README-touch.txt TODO.txt ${destroot}${docdir}
}
livecheck.type regex
-livecheck.url ${homepage}download.php
+livecheck.url ${homepage}download-2.0.php
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130812/00e18db2/attachment.html>
More information about the macports-changes
mailing list