source: trunk/dports/devel/allegro/Portfile

Last change on this file was 114325, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.platform} and ${os.subplatform}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup cmake 1.0
5
6name            allegro
7epoch           1
8version         4.4.2
9revision        1
10set branch      [join [lrange [split ${version} .] 0 1] .]
11description     A game programming library for C/C++ developers.
12long_description \
13                Allegro is a game programming library for \
14                C/C++ developers distributed freely, supporting \
15                many platforms.
16maintainers     nomaintainer
17categories      devel games
18platforms       darwin
19license         Permissive
20homepage        http://alleg.sourceforge.net/
21master_sites    sourceforge:project/alleg/allegro/${version}
22
23checksums       md5     4db71b0460fc99926ae91d223199c2e6 \
24                sha1    ae0c15d2cb6b0337ef388dc98cefc620883720df \
25                rmd160  a6f6a03d6748230dfb5f306d1a05ef45ffa49f42
26
27patchfiles      patch-main.m.diff patch-system.m.diff
28
29configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc
30
31post-destroot {
32    # some additional tools were build, let's install them
33    foreach tool {colormap dat dat2c dat2s exedat grabber pack pat2dat rgbmap textconv} {
34        xinstall -m 0755 -W ${worksrcpath}/tools/ ${tool} ${destroot}${prefix}/bin/
35    }
36}
37
38pre-fetch {
39    if {${os.platform} eq "darwin" && ${os.major} > 10} {
40        ui_error "${name} uses deprecated API which has been removed as of Mac OS X 10.7."
41        return -code error "incompatible Mac OS X version"
42    }
43}
44
45# Does not compile 64-bit due to NSQuickDraw
46# and probably other old API usage
47supported_archs i386 ppc
48
49livecheck.type  regex
50livecheck.url   http://alleg.sourceforge.net/download.html
51livecheck.regex (4(?:\\.\\d+)+)\\.tar
Note: See TracBrowser for help on using the repository browser.