Changeset 120342


Ignore:
Timestamp:
May 23, 2014, 8:44:16 PM (3 years ago)
Author:
mcalhoun@…
Message:
  • update version 5.0.7->5.0.10
  • add dependencies on libraries that are found automatically
  • create development sub-port
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/allegro5/Portfile

    r95099 r120342  
     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
    12# $Id$
    23
     
    45PortGroup cmake 1.0
    56
     7# build architectures separately so that variable such as CMAKE_CXX_SIZEOF_DATA_PTR are set correctly
     8PortGroup muniversal 1.0
     9
    610name            allegro5
    7 version         5.0.7
    8 set branch      [join [lrange [split ${version} .] 0 1] .]
     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}
    920description     A game programming library for C/C++ developers.
    1021long_description \
     
    1728license         Permissive
    1829homepage        http://alleg.sourceforge.net/
    19 master_sites    sourceforge:project/alleg/allegro/${version}
     30if {${name} eq ${subport}} {
     31    master_sites    sourceforge:project/alleg/allegro/${version}
     32} else {
     33    master_sites    sourceforge:project/alleg/allegro-unstable/${version}
     34}
    2035distname        allegro-${version}
    2136
    22 checksums       rmd160  acf7e04d5945f918fe102b073774eb6544ac49ab \
    23                 sha256  47f29e564d9a4babfbbf024f34fc8a04eea932a073af921d17caffbec0c3ad9b
     37if {${name} eq ${subport}} {
     38    checksums       rmd160  65b66100f8b89e7e71da193435d29924123d3774 \
     39                    sha256  71b81080f34f6e485edd0c51f22923c18ff967d5db438e591e6f3885d5bdcda1
     40} else {
     41    checksums       rmd160  f1f15d4301ad98ee45565d23245eb62fab3cc9a2 \
     42                    sha256  9f0608fc285b014e4cf6c570f9953b87c73c9ad57a25f795f503e2fe208515a0
     43}
    2444
    25 configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc
     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
    2653
    27 # This livecheck tries to match the stable branch only
     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
    2862livecheck.type  regex
    2963livecheck.url   http://alleg.sourceforge.net/download.html
    30 livecheck.regex (5\\.(?:\\d*\[02468\])(?:\\.\\d+)*)\\.tar
     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 TracChangeset for help on using the changeset viewer.