most recent changes, diff for allegro

Index: devel/allegro/Portfile
--- devel/allegro/Portfile (revision 29476)
+++ devel/allegro/Portfile (revision 29477)
@@ -2,28 +2,47 @@

PortSystem 1.0

-name allegro
-version 4.2.1
-revision 1
-description A game programming library for C/C++ developers.
-long_description Allegro is a game programming library for \
- C/C++ developers distributed freely, supporting \
- many platforms.
-maintainers nomaintainer@macports.org
-categories devel games
-platforms darwin
-homepage http://www.talula.demon.co.uk/allegro/
+name allegro
+version 4.2.2
+description A game programming library for C/C++ developers.
+long_description \
+ Allegro is a game programming library for \
+ C/C++ developers distributed freely, supporting \
+ many platforms.
+maintainers raimue \
+ openmaintainer
+categories devel games
+platforms darwin
+homepage http://www.talula.demon.co.uk/allegro/
master_sites sourceforge:alleg
-checksums md5 0a09d0144ee8652fb8fa00f6cbb324fe
-depends_lib lib:libX11:XFree86
-patchfiles patch-makefile.osx
-configure {
- system "cd ${worksrcpath} && sh fix.sh macosx"
+checksums md5 87ffb1def034e0ec29a9ad4a595cda7e
+depends_lib lib:libX11:XFree86
+patchfiles patch-makefile.osx
+
+configure {
+ system "cd ${worksrcpath} && sh fix.sh macosx"
}
+
+# check for universal build
+pre-build {
+ if {! [variant_isset universal]} {
+ build.args PREFIX=${prefix}
+ } else {
+ build.args PREFIX=${prefix} UB=1
+ }
+}
+
build.target
-build.args PREFIX=${prefix}
-destroot.target install install-man
-destroot.args PREFIX=${prefix}

+destroot.target install install-man
+destroot.args PREFIX=${prefix}
+
+# some additional tools were build, let's install them
+post-destroot {
+ foreach tool {colormap dat dat2c dat2s exedat grabber pack pat2dat rgbmap textconv} {
+ xinstall -m 0755 -W ${worksrcpath}/tools/ ${tool} ${destroot}${prefix}/bin/
+ }
+}
+
livecheck.check regex
livecheck.regex " (\\S+) released!"