Ignore:
Timestamp:
Aug 8, 2007, 10:24:43 PM (11 years ago)
Author:
nox@…
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).
Location:
trunk/dports/devel/libsdl
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libsdl/Portfile

    r26740 r27578  
    33PortSystem 1.0
    44name                    libsdl
    5 version                 1.2.11
     5version                 1.2.12
    66categories              devel multimedia
    7 maintainers             nomaintainer@macports.org
     7maintainers             nox openmaintainer
    88description             Cross-platform multi-media development API
    99long_description        Simple DirectMedia Layer is a cross-platform \
     
    1212                        used by MPEG playback software, emulators, and many \
    1313                        popular games, including the award winning Linux \
    14                         port of "Civilization: Call To Power." Simple \
     14                        port of \"Civilization: Call To Power.\" Simple \
    1515                        DirectMedia Layer supports Linux, Win32, BeOS, \
    1616                        MacOS, Solaris, IRIX, and FreeBSD.
    1717platforms               macosx freebsd
    18 master_sites            http://www.libsdl.org/release/
     18homepage        http://www.libsdl.org/
     19master_sites            ${homepage}release/
    1920distname                SDL-${version}
    20 # added subdir due to changes in original distfile
    21 dist_subdir             ${name}/a
    22 checksums               sha1 2259134d714e35ab1469d513674a3cd02510d198
     21checksums               md5 544b4554986e51eed6d34435cf9c5f3f \
     22                sha1 2c37ff1683368369c0f555d4a742f0544153610d \
     23                rmd160 3871023c63ea056eba43ce4f55ee8d3a73ff3022
    2324depends_lib             lib:libX11.6:XFree86
    2425
     
    2627                        --mandir=${prefix}/share/man
    2728
     29set docdir ${prefix}/share/doc/${name}-${version}
     30
    2831post-destroot   {
    29         xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
    30         xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README \
    31                 README-SDL.txt README.MacOSX TODO docs.html \
    32                 ${destroot}${prefix}/share/doc/${name}
    33         xinstall -m 0644 -W ${worksrcpath}/docs index.html \
    34                 ${destroot}${prefix}/share/doc/${name}/docs
    35         system "cp -R ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}/docs"
    36 }
     32        xinstall -m 0755 -d ${destroot}${docdir}/html
    3733
    38 platform darwin 6 {
    39         depends_lib-append      lib:libdl:dlcompat
     34        xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README README-SDL.txt \
     35        README.MacOSX TODO ${destroot}${docdir}
     36
     37        xinstall -m 0644 -W ${worksrcpath}/docs index.html docs.html ${destroot}${docdir}/html
     38    eval xinstall -m 0644 [glob ${worksrcpath}/docs/*] ${destroot}${docdir}/html
    4039}
    4140
    4241platform darwin 7 {
    43         pre-fetch { system "/bin/bash ${portpath}/${filesdir}/qt-check.sh" }
     42        pre-fetch {
     43        set qt_header [open /System/Library/Frameworks/QuickTime.framework/Headers/QuickTime.h r]
     44
     45        while {[gets $qt_header line] != -1} {
     46                        if {[regexp {Version:} $line]} {
     47                regexp {(\d+)\.(\d+)$} $line _ qt_min qt_rev
     48
     49                if {$qt_min > 0 || $qt_rev > 3} {
     50                    ui_error ""
     51                    ui_error "Installation of libSDL is exiting because it believes you have"
     52                    ui_error "QuickTime version 7.${qt_min}.${qt_rev} installed."
     53                    ui_error ""
     54                    ui_error "On Mac OS 10.3/XCode 1.5, you must have QuickTime 7.0.3 or lower if"
     55                    ui_error "you want to install the libSDL port."
     56                    ui_error ""
     57                    ui_error "If you have QuickTime 7.0.4, you can downgrade to 7.0.1:"
     58                    ui_error "http://www.apple.com/support/downloads/quicktime701reinstallerforquicktime704.html"
     59                    ui_error ""
     60                    ui_error "If you actually have QuickTime 7.0.1 and you think you should not be"
     61                    ui_error "receiving this error message, you can report the problem here:"
     62                    ui_error "http://trac.macports.org/projects/macports/ticket/6533"
     63
     64                    exit 1
     65                }
     66
     67                break
     68            }
     69        }
     70
     71        close $qt_header
     72    }
    4473}
    4574
    4675platform darwin 8 {
    47         patchfiles patch-configure
     76    post-patch {
     77        reinplace -E {/archivecmds=/s/CC/CXX/} ${worksrcpath}/configure
     78    }
     79
    4880        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    4981        build.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
Note: See TracChangeset for help on using the changeset viewer.