Ticket #30867: Portfile-allegro5_v_allegro.diff

File Portfile-allegro5_v_allegro.diff, 2.0 KB (added by icaines77@…, 12 years ago)

Changes from the current allegro portfile.

  • Portfile

    old new  
    33PortSystem 1.0
    44PortGroup cmake 1.0
    55
    6 name            allegro
     6name            allegro5
    77epoch           1
    8 version         4.4.2
    9 revision        1
    10 set branch      [join [lrange [split ${version} .] 0 1] .]
     8version         5.0.6
     9revision        0
     10#set branch      [join [lrange [split ${version} .] 0 1] .]
    1111description     A game programming library for C/C++ developers.
    1212long_description \
    1313                Allegro is a game programming library for \
     
    1919platforms       darwin
    2020license         Permissive
    2121homepage        http://alleg.sourceforge.net/
     22worksrcdir      allegro-${version}
     23distfiles       allegro-${version}.tar.gz
    2224master_sites    sourceforge:project/alleg/allegro/${version}
    2325
    24 checksums       md5     4db71b0460fc99926ae91d223199c2e6 \
    25                 sha1    ae0c15d2cb6b0337ef388dc98cefc620883720df \
    26                 rmd160  a6f6a03d6748230dfb5f306d1a05ef45ffa49f42
    27 
    28 patchfiles      patch-main.m.diff patch-system.m.diff
     26checksums       md5     c4b4384ef03ac5f6388f378f3eeff243 \
     27                sha1    9bcaeb88c886c66b1dfb6b9c4fde9704805721bb \
     28                rmd160  c6d0eed8882b314090ce81c4432f0a164ab60ab1
    2929
    3030configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc
    3131
    32 post-destroot {
    33     # some additional tools were build, let's install them
    34     foreach tool {colormap dat dat2c dat2s exedat grabber pack pat2dat rgbmap textconv} {
    35         xinstall -m 0755 -W ${worksrcpath}/tools/ ${tool} ${destroot}${prefix}/bin/
    36     }
    37 }
    38 
    39 pre-fetch {
    40     if {${os.platform} == "darwin" && ${os.major} > 10} {
    41         ui_error "${name} uses deprecated API which has been removed as of Mac OS X 10.7."
    42         return -code error "incompatible Mac OS X version"
    43     }
    44 }
    45 
    46 # Does not compile 64-bit due to NSQuickDraw
    47 # and probably other old API usage
    48 supported_archs i386 ppc
     32supported_archs x86_64 i386
    4933
    5034livecheck.type  regex
    5135livecheck.url   http://alleg.sourceforge.net/download.html