# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $ PortSystem 1.0 PortGroup cmake 1.0 name allegro epoch 1 version 4.4.2 revision 1 set branch [join [lrange [split ${version} .] 0 1] .] description A game programming library for C/C++ developers. long_description \ Allegro is a game programming library for \ C/C++ developers distributed freely, supporting \ many platforms. maintainers nomaintainer categories devel games platforms darwin license Permissive homepage http://alleg.sourceforge.net/ master_sites sourceforge:project/alleg/allegro/${version} checksums md5 4db71b0460fc99926ae91d223199c2e6 \ sha1 ae0c15d2cb6b0337ef388dc98cefc620883720df \ rmd160 a6f6a03d6748230dfb5f306d1a05ef45ffa49f42 patchfiles patch-main.m.diff patch-system.m.diff configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc post-destroot { # some additional tools were build, let's install them foreach tool {colormap dat dat2c dat2s exedat grabber pack pat2dat rgbmap textconv} { xinstall -m 0755 -W ${worksrcpath}/tools/ ${tool} ${destroot}${prefix}/bin/ } } pre-fetch { if {${os.platform} eq "darwin" && ${os.major} > 10} { ui_error "${name} uses deprecated API which has been removed as of Mac OS X 10.7." return -code error "incompatible Mac OS X version" } } # Does not compile 64-bit due to NSQuickDraw # and probably other old API usage supported_archs i386 ppc livecheck.type regex livecheck.url http://alleg.sourceforge.net/download.html livecheck.regex (4(?:\\.\\d+)+)\\.tar