source: trunk/dports/devel/allegro5/Portfile

Last change on this file was 120342, checked in by mcalhoun@…, 3 years ago
  • update version 5.0.7->5.0.10
  • add dependencies on libraries that are found automatically
  • create development sub-port
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 120342 2014-05-23 20:44:16Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup cmake 1.0
6
7# build architectures separately so that variable such as CMAKE_CXX_SIZEOF_DATA_PTR are set correctly
8PortGroup muniversal 1.0
9
10name            allegro5
11subport ${name}-devel {}
12
13if {${name} eq ${subport}} {
14    version         5.0.10
15    conflicts       ${name}-devel
16} else {
17    version         5.1.8
18    conflicts       ${name}
19}
20description     A game programming library for C/C++ developers.
21long_description \
22                Allegro is a game programming library for \
23                C/C++ developers distributed freely, supporting \
24                many platforms.
25maintainers     nomaintainer
26categories      devel games
27platforms       darwin
28license         Permissive
29homepage        http://alleg.sourceforge.net/
30if {${name} eq ${subport}} {
31    master_sites    sourceforge:project/alleg/allegro/${version}
32} else {
33    master_sites    sourceforge:project/alleg/allegro-unstable/${version}
34}
35distname        allegro-${version}
36
37if {${name} eq ${subport}} {
38    checksums       rmd160  65b66100f8b89e7e71da193435d29924123d3774 \
39                    sha256  71b81080f34f6e485edd0c51f22923c18ff967d5db438e591e6f3885d5bdcda1
40} else {
41    checksums       rmd160  f1f15d4301ad98ee45565d23245eb62fab3cc9a2 \
42                    sha256  9f0608fc285b014e4cf6c570f9953b87c73c9ad57a25f795f503e2fe208515a0
43}
44
45depends_build   port:pkgconfig
46depends_lib     port:flac      \
47                port:libdumb   \
48                port:libogg    \
49                port:libvorbis \
50                port:freetype  \
51                port:zlib      \
52                port:physfs
53
54if {${name} ne ${subport}} {
55    # added Ogg Theora/Vorbis backend in 5.1
56    depends_lib-append port:libtheora
57}
58
59# prevents errors when upgrading (prevents new allegro5 from finding old allegro5)
60configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
61
62livecheck.type  regex
63livecheck.url   http://alleg.sourceforge.net/download.html
64if {${name} eq ${subport}} {
65    # This livecheck tries to match the stable branch only
66    livecheck.regex (5\\.(?:\\d*\[02468\])(?:\\.\\d+)*)${extract.suffix}
67} else {
68    livecheck.regex (5\\.(?:\\d+)(?:\\.\\d+)*)${extract.suffix}
69}
Note: See TracBrowser for help on using the repository browser.