[27578] trunk/dports/devel/libsdl
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 8 15:24:43 PDT 2007
Revision: 27578
http://trac.macosforge.org/projects/macports/changeset/27578
Author: nox at macports.org
Date: 2007-08-08 15:24:43 -0700 (Wed, 08 Aug 2007)
Log Message:
-----------
* Port cleaned!
* Updated to version 1.2.11
* The check for QuickTime version on Panther is now in native TCL.
* Configure patch has been replaced by a single reinplace procedure call.
* Added sha1 and rmd160 checksums.
* Added documentation.
* Taken over (with openmaintainer).
Modified Paths:
--------------
trunk/dports/devel/libsdl/Portfile
Removed Paths:
-------------
trunk/dports/devel/libsdl/files/patch-configure
trunk/dports/devel/libsdl/files/qt-check.sh
Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile 2007-08-08 21:59:40 UTC (rev 27577)
+++ trunk/dports/devel/libsdl/Portfile 2007-08-08 22:24:43 UTC (rev 27578)
@@ -2,49 +2,81 @@
PortSystem 1.0
name libsdl
-version 1.2.11
+version 1.2.12
categories devel multimedia
-maintainers nomaintainer at macports.org
+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 \
+ port of \"Civilization: Call To Power.\" Simple \
DirectMedia Layer supports Linux, Win32, BeOS, \
MacOS, Solaris, IRIX, and FreeBSD.
platforms macosx freebsd
-master_sites http://www.libsdl.org/release/
+homepage http://www.libsdl.org/
+master_sites ${homepage}release/
distname SDL-${version}
-# added subdir due to changes in original distfile
-dist_subdir ${name}/a
-checksums sha1 2259134d714e35ab1469d513674a3cd02510d198
+checksums md5 544b4554986e51eed6d34435cf9c5f3f \
+ sha1 2c37ff1683368369c0f555d4a742f0544153610d \
+ rmd160 3871023c63ea056eba43ce4f55ee8d3a73ff3022
depends_lib lib:libX11.6:XFree86
configure.args --enable-shared \
--mandir=${prefix}/share/man
+set docdir ${prefix}/share/doc/${name}-${version}
+
post-destroot {
- xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
- xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README \
- README-SDL.txt README.MacOSX TODO docs.html \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 0644 -W ${worksrcpath}/docs index.html \
- ${destroot}${prefix}/share/doc/${name}/docs
- system "cp -R ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}/docs"
-}
+ xinstall -m 0755 -d ${destroot}${docdir}/html
-platform darwin 6 {
- depends_lib-append lib:libdl:dlcompat
+ xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README README-SDL.txt \
+ README.MacOSX TODO ${destroot}${docdir}
+
+ xinstall -m 0644 -W ${worksrcpath}/docs index.html docs.html ${destroot}${docdir}/html
+ eval xinstall -m 0644 [glob ${worksrcpath}/docs/*] ${destroot}${docdir}/html
}
platform darwin 7 {
- pre-fetch { system "/bin/bash ${portpath}/${filesdir}/qt-check.sh" }
+ pre-fetch {
+ set qt_header [open /System/Library/Frameworks/QuickTime.framework/Headers/QuickTime.h r]
+
+ while {[gets $qt_header line] != -1} {
+ if {[regexp {Version:} $line]} {
+ regexp {(\d+)\.(\d+)$} $line _ qt_min qt_rev
+
+ if {$qt_min > 0 || $qt_rev > 3} {
+ ui_error ""
+ ui_error "Installation of libSDL is exiting because it believes you have"
+ ui_error "QuickTime version 7.${qt_min}.${qt_rev} installed."
+ ui_error ""
+ ui_error "On Mac OS 10.3/XCode 1.5, you must have QuickTime 7.0.3 or lower if"
+ ui_error "you want to install the libSDL port."
+ ui_error ""
+ ui_error "If you have QuickTime 7.0.4, you can downgrade to 7.0.1:"
+ ui_error "http://www.apple.com/support/downloads/quicktime701reinstallerforquicktime704.html"
+ ui_error ""
+ ui_error "If you actually have QuickTime 7.0.1 and you think you should not be"
+ ui_error "receiving this error message, you can report the problem here:"
+ ui_error "http://trac.macports.org/projects/macports/ticket/6533"
+
+ exit 1
+ }
+
+ break
+ }
+ }
+
+ close $qt_header
+ }
}
platform darwin 8 {
- patchfiles patch-configure
+ post-patch {
+ reinplace -E {/archivecmds=/s/CC/CXX/} ${worksrcpath}/configure
+ }
+
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
build.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
Deleted: trunk/dports/devel/libsdl/files/patch-configure
===================================================================
--- trunk/dports/devel/libsdl/files/patch-configure 2007-08-08 21:59:40 UTC (rev 27577)
+++ trunk/dports/devel/libsdl/files/patch-configure 2007-08-08 22:24:43 UTC (rev 27578)
@@ -1,11 +0,0 @@
---- configure 2004-12-13 10:04:51.000000000 +0100
-+++ configure 2005-11-28 08:00:17.000000000 +0100
-@@ -7502,7 +7502,7 @@
- link_all_deplibs=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
-- archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
-+ archive_cmds='$CXX -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Deleted: trunk/dports/devel/libsdl/files/qt-check.sh
===================================================================
--- trunk/dports/devel/libsdl/files/qt-check.sh 2007-08-08 21:59:40 UTC (rev 27577)
+++ trunk/dports/devel/libsdl/files/qt-check.sh 2007-08-08 22:24:43 UTC (rev 27578)
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-qtver=`/usr/bin/grep Version /System/Library/Frameworks/QuickTime.framework/Headers/QuickTime.h | sed 's/.*7.0.\([0-9]\)/\1/'`
-
-if [[ ${qtver} == "4" ]]; then
- echo
- echo Installation of libSDL is exiting because it believes you have
- echo QuickTime version 7.0.${qtver} installed.
- echo
- echo On Mac OS 10.3/XCode 1.5, you must have QuickTime 7.0.3
- echo or lower if you want to install the libSDL port.
- echo
- echo If you have QuickTime 7.0.4, you can downgrade to 7.0.1:
- echo http://www.apple.com/support/downloads/quicktime701reinstallerforquicktime704.html
- echo
- echo If you actually have QuickTime 7.0.1 and you think
- echo you should not be receiving this error message, you
- echo can report the problem here:
- echo http://bugzilla.opendarwin.org/show_bug.cgi?id=1933
- exit 1
-else
- exit 0
-fi
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070808/ca935ac1/attachment.html
More information about the macports-changes
mailing list