# $Id: Portfile 30522 2007-10-30 13:57:52Z afb@macports.org $ PortSystem 1.0 PortGroup xcode 1.0 name libsdl-framework set my_name SDL version 1.2.12 categories devel multimedia maintainers nox 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. # Dummy configure to enable the universal variant. use_configure yes configure {} if {! [variant_isset universal]} { set arch ${os.arch} if {! [string compare ${os.arch} powerpc]} { set arch ppc } xcode.build.settings-append ARCHS=${arch} xcode.destroot.settings-append ARCHS=${arch} } homepage http://www.libsdl.org/ master_sites ${homepage}release/ distname ${my_name}-${version} dist_subdir libsdl checksums md5 544b4554986e51eed6d34435cf9c5f3f \ sha1 2c37ff1683368369c0f555d4a742f0544153610d \ rmd160 3871023c63ea056eba43ce4f55ee8d3a73ff3022 xcode.project Xcode/SDL/SDL.xcodeproj xcode.target "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)" xcode.destroot.type framework post-extract { system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz Xcode/SDL/{Info-Framework{,NoX11}.plist,SDL.xcodeproj}" } post-patch { reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" \ ${worksrcpath}/${xcode.project}/project.pbxproj } variant x11 { xcode.target Framework } livecheck.check regex livecheck.url ${homepage}download.php livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)