[120342] trunk/dports/devel/allegro5/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Fri May 23 13:44:16 PDT 2014


Revision: 120342
          https://trac.macports.org/changeset/120342
Author:   mcalhoun at macports.org
Date:     2014-05-23 13:44:16 -0700 (Fri, 23 May 2014)
Log Message:
-----------
 * update version 5.0.7->5.0.10
 * add dependencies on libraries that are found automatically
 * create development sub-port

Modified Paths:
--------------
    trunk/dports/devel/allegro5/Portfile

Modified: trunk/dports/devel/allegro5/Portfile
===================================================================
--- trunk/dports/devel/allegro5/Portfile	2014-05-23 19:41:42 UTC (rev 120341)
+++ trunk/dports/devel/allegro5/Portfile	2014-05-23 20:44:16 UTC (rev 120342)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem 1.0
@@ -3,7 +4,17 @@
 PortGroup cmake 1.0
 
+# build architectures separately so that variable such as CMAKE_CXX_SIZEOF_DATA_PTR are set correctly
+PortGroup muniversal 1.0
+
 name            allegro5
-version         5.0.7
-set branch      [join [lrange [split ${version} .] 0 1] .]
+subport ${name}-devel {}
+
+if {${name} eq ${subport}} {
+    version         5.0.10
+    conflicts       ${name}-devel
+} else {
+    version         5.1.8
+    conflicts       ${name}
+}
 description     A game programming library for C/C++ developers.
 long_description \
@@ -16,15 +27,43 @@
 platforms       darwin
 license         Permissive
 homepage        http://alleg.sourceforge.net/
-master_sites    sourceforge:project/alleg/allegro/${version}
+if {${name} eq ${subport}} {
+    master_sites    sourceforge:project/alleg/allegro/${version}
+} else {
+    master_sites    sourceforge:project/alleg/allegro-unstable/${version}
+}
 distname        allegro-${version}
 
-checksums       rmd160  acf7e04d5945f918fe102b073774eb6544ac49ab \
-                sha256  47f29e564d9a4babfbbf024f34fc8a04eea932a073af921d17caffbec0c3ad9b
+if {${name} eq ${subport}} {
+    checksums       rmd160  65b66100f8b89e7e71da193435d29924123d3774 \
+                    sha256  71b81080f34f6e485edd0c51f22923c18ff967d5db438e591e6f3885d5bdcda1
+} else {
+    checksums       rmd160  f1f15d4301ad98ee45565d23245eb62fab3cc9a2 \
+                    sha256  9f0608fc285b014e4cf6c570f9953b87c73c9ad57a25f795f503e2fe208515a0
+}
 
-configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc
+depends_build   port:pkgconfig
+depends_lib     port:flac      \
+                port:libdumb   \
+                port:libogg    \
+                port:libvorbis \
+                port:freetype  \
+                port:zlib      \
+                port:physfs
 
-# This livecheck tries to match the stable branch only
+if {${name} ne ${subport}} {
+    # added Ogg Theora/Vorbis backend in 5.1
+    depends_lib-append port:libtheora
+}
+
+# prevents errors when upgrading (prevents new allegro5 from finding old allegro5)
+configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
+
 livecheck.type  regex
 livecheck.url   http://alleg.sourceforge.net/download.html
-livecheck.regex (5\\.(?:\\d*\[02468\])(?:\\.\\d+)*)\\.tar
+if {${name} eq ${subport}} {
+    # This livecheck tries to match the stable branch only
+    livecheck.regex (5\\.(?:\\d*\[02468\])(?:\\.\\d+)*)${extract.suffix}
+} else {
+    livecheck.regex (5\\.(?:\\d+)(?:\\.\\d+)*)${extract.suffix}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140523/f7e6d555/attachment.html>


More information about the macports-changes mailing list