Ticket #11857: libsdl-1.2.11_1.diff

File libsdl-1.2.11_1.diff, 3.7 KB (added by n.oxyde@…, 17 years ago)

diffs are better

  • devel/libsdl/Portfile

    old new  
    1 # $Id: Portfile 23423 2007-03-31 21:30:41Z markd@macports.org $
     1# $Id: $
    22
    33PortSystem 1.0
     4
    45name                    libsdl
    56version                 1.2.11
     7revision        1
    68categories              devel multimedia
    7 maintainers             nomaintainer@macports.org
     9maintainers     n.oxyde@gmail.com
    810description             Cross-platform multi-media development API
    9 long_description        Simple DirectMedia Layer is a cross-platform \
    10                         multimedia library designed to provide fast access \
    11                         to the graphics framebuffer and audio device. It is \
    12                         used by MPEG playback software, emulators, and many \
    13                         popular games, including the award winning Linux \
    14                         port of "Civilization: Call To Power." Simple \
    15                         DirectMedia Layer supports Linux, Win32, BeOS, \
    16                         MacOS, Solaris, IRIX, and FreeBSD.
    17 platforms               macosx freebsd
    18 master_sites            http://www.libsdl.org/release/
     11
     12long_description \
     13                Simple DirectMedia Layer is a cross-platform multimedia library \
     14                designed to provide fast access to the graphics framebuffer and \
     15                audio device. It is  used by MPEG playback software, emulators, \
     16                and many  popular games, including the award winning Linux  port \
     17                of "Civilization: Call To Power." Simple DirectMedia Layer supports \
     18                Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD.
     19
     20homepage        http://www.libsdl.org/
     21master_sites    ${homepage}release/
    1922distname                SDL-${version}
    20 # added subdir due to changes in original distfile
    21 dist_subdir             ${name}/a
    22 checksums               sha1 2259134d714e35ab1469d513674a3cd02510d198
    23 depends_lib             lib:libX11.6:XFree86
    2423
    25 configure.args  --enable-shared \
    26                         --mandir=${prefix}/share/man
     24checksums       md5 418b42956b7cd103bfab1b9077ccc149 \
     25                sha1 2259134d714e35ab1469d513674a3cd02510d198 \
     26                rmd160 91dc8877224415a4ba59e1de57c31861e550d644
     27
     28platforms       macosx freebsd
     29
     30configure.args  --mandir=${prefix}/share/man \
     31                --disable-video-x11 \
     32                --disable-video-aalib \
     33                --disable-arts
    2734
    2835post-destroot   {
    29         xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
     36    set docdir ${prefix}/share/doc/${name}-${version}
     37    xinstall -m 0755 -d ${destroot}${docdir}/docs
    3038        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"
     39        README-SDL.txt README.MacOSX TODO WhatsNew docs.html ${destroot}${docdir}
     40    system "cp -R ${worksrcpath}/docs/{html,images,index.html} ${destroot}${docdir}/docs"
    3641}
    3742
    38 platform darwin 6 {
    39         depends_lib-append      lib:libdl:dlcompat
    40         configure.env           CPPFLAGS="-I${prefix}/include" \
    41                                                 LDFLAGS="-L${prefix}/lib"
     43variant no_static {
     44    configure.args-append   --disable-static
     45}
     46
     47variant x11 {
     48    depends_lib             lib:libX11.6:XFree86
     49    configure.args-append   --with-x
     50    configure.args-delete   --disable-video-x11
     51}
     52
     53variant aalib {
     54    depends_lib             port:aalib
     55    configure.args-delete   --disable-video-aalib
     56}
     57
     58variant arts {
     59    depends_lib             port:arts
     60    configure.args-delete   --disable-arts
    4261}
    4362
    4463platform darwin 7 {
    45         pre-fetch { system "/bin/bash ${portpath}/${filesdir}/qt-check.sh" }
     64    pre-fetch {
     65        system "${portpath}/${filesdir}/qt-check.sh"
     66    }
    4667}
    4768
    4869platform darwin 8 {