[64518] trunk/dports/devel/allegro/Portfile

raimue at macports.org raimue at macports.org
Sun Mar 7 20:26:45 PST 2010


Revision: 64518
          http://trac.macports.org/changeset/64518
Author:   raimue at macports.org
Date:     2010-03-07 20:26:42 -0800 (Sun, 07 Mar 2010)
Log Message:
-----------
devel/allegro:
Update to version 4.4.1.1, now using CMake. This port builds i386 only on SL.

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

Modified: trunk/dports/devel/allegro/Portfile
===================================================================
--- trunk/dports/devel/allegro/Portfile	2010-03-08 04:06:03 UTC (rev 64517)
+++ trunk/dports/devel/allegro/Portfile	2010-03-08 04:26:42 UTC (rev 64518)
@@ -1,9 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup cmake 1.0
 
 name            allegro
-version         4.2.3.1
+version         4.4.1.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 \
@@ -13,40 +15,38 @@
                 openmaintainer
 categories      devel games
 platforms       darwin
-use_parallel_build  yes
 homepage        http://alleg.sourceforge.net/
 master_sites    sourceforge:alleg
-checksums       md5     92b0af3cccc5f3b4c3c1aad69a32baa9 \
-                sha1    f541ff5f414875bddec321aa1fc55a2218754f22 \
-                rmd160  3cd9d9d833fad69e83da072d5baad250765474ea
-patchfiles      patch-makefile.osx.diff
+checksums       md5     0f1cfff8f2cf88e5c91a667d9fd386ec \
+                sha1    1970570b54c4329c7bd6d103db01624c68f2e9be \
+                rmd160  9167893e6ad33301bc23daeccb4fb899f16470d3
 
-configure    {
-    system "cd ${worksrcpath} && sh fix.sh macosx"
-    reinplace "s|CC = gcc|CC = ${configure.cc}|" ${worksrcpath}/makefile.osx
-}
+configure.args-append -DINFODIR=share/info -DDOCDIR=share/doc
 
-# check for universal build
-pre-build {
-    if {! [variant_isset universal]} {
-        build.args  PREFIX=${prefix}
-    } else {
-        build.args  PREFIX=${prefix} UB=1
-    }
-}
-
-build.target
-
-destroot.target     install install-man
-destroot.args       PREFIX=${prefix}
-
-# some additional tools were build, let's install them
 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/
     }
+
+    foreach lib [glob -path ${destroot}${prefix}/lib/ -tails *.dylib] {
+        system "install_name_tool -id ${prefix}/lib/$lib ${destroot}${prefix}/lib/$lib"
+    }
+
+    foreach bin [glob -path ${destroot}${prefix}/bin/ -tails *] {
+        # Exclude config script which is not in Mach-O format
+        if {$bin != "allegro-config"} {
+            system "install_name_tool -change liballeg.${branch}.dylib ${prefix}/lib/liballeg.${branch}.dylib ${destroot}${prefix}/bin/$bin"
+        }
+    }
 }
 
+platform darwin 10 {
+    # Does not compile 64-bit due to NSQuickDraw
+    # and probably other old API usage
+    configure.build_arch i386
+}
+
 livecheck.type  regex
 livecheck.url   http://alleg.sourceforge.net/wip.html
 livecheck.regex {Stable branch ([\d.]+) source releases}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100307/805034cf/attachment.html>


More information about the macports-changes mailing list