[29477] trunk/dports/devel/allegro
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 24 16:53:23 PDT 2007
Revision: 29477
http://trac.macosforge.org/projects/macports/changeset/29477
Author: raimue at macports.org
Date: 2007-09-24 16:53:23 -0700 (Mon, 24 Sep 2007)
Log Message:
-----------
devel/allegro:
* update to version 4.2.2
* taking maintainership (with openmaintainer)
* install additional allegro tools (like dat, the datafile compiler)
* enabled universal building
Modified Paths:
--------------
trunk/dports/devel/allegro/Portfile
trunk/dports/devel/allegro/files/patch-makefile.osx
Modified: trunk/dports/devel/allegro/Portfile
===================================================================
--- trunk/dports/devel/allegro/Portfile 2007-09-24 23:09:38 UTC (rev 29476)
+++ trunk/dports/devel/allegro/Portfile 2007-09-24 23:53:23 UTC (rev 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 at 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!"
Modified: trunk/dports/devel/allegro/files/patch-makefile.osx
===================================================================
--- trunk/dports/devel/allegro/files/patch-makefile.osx 2007-09-24 23:09:38 UTC (rev 29476)
+++ trunk/dports/devel/allegro/files/patch-makefile.osx 2007-09-24 23:53:23 UTC (rev 29477)
@@ -1,6 +1,6 @@
---- makefile.osx.orig 2007-09-24 02:05:58.000000000 +0200
-+++ makefile.osx 2007-09-24 02:11:45.000000000 +0200
-@@ -38,7 +38,7 @@
+--- makefile.osx.orig 2007-09-25 01:01:57.000000000 +0200
++++ makefile.osx 2007-09-25 01:03:53.000000000 +0200
+@@ -42,7 +42,7 @@
TEMPLATE_NAME = Allegro\ Application
TEMPLATE = $(TEMPLATE_DIR)/$(TEMPLATE_NAME)
@@ -9,16 +9,16 @@
ifdef STATICLINK
-@@ -57,7 +57,7 @@
- DYLINK_FLAGS+=-arch ppc -arch i386
- endif
+@@ -58,7 +58,7 @@
+ DYLINK_FLAGS = -compatibility_version $(compatibility_version) -current_version $(shared_version)
+
-INSTALL_NAME = -install_name lib$(VERSION)-$(shared_major_minor).dylib
+INSTALL_NAME = -install_name $(PREFIX)/lib/lib$(VERSION)-$(shared_version).dylib
INSTALL_NAME_EMBED = -install_name "`echo "@executable_path/../Frameworks/$(FRAMEWORK_NAME).framework/Versions/$(shared_version)/$(FRAMEWORK_NAME)" | sed 's!//*!/!g'`"
ifdef EMBED
-@@ -175,7 +175,7 @@
+@@ -169,7 +169,7 @@
# -------- rules for installing and removing the library files --------
DESTDIR =
@@ -27,17 +27,20 @@
BINDIR = bin
LIBDIR = lib
INCDIR = include
-@@ -210,11 +210,11 @@
+@@ -203,11 +203,11 @@
else
@sed -e "s/@LINK_WITH_STATIC_LIBS@/no/" misc/allegro-config.in >temp
endif
-- @sed -e "s/@prefix@/\/usr\/local/" temp > temp2
-+ @sed -e "s:@prefix@:$(PREFIX):" temp > temp2
+- @sed -e "s#@prefix@#$(INSTALLDIR)#" temp > temp2
+- @sed -e "s#@INCLUDE_PREFIX@#$(INSTALLDIR)#" temp2 > temp
+- @sed -e "s#@includedir@#$(INSTALLDIR)/include#" temp > temp2
+- @sed -e "s#@libdir@#$(INSTALLDIR)/lib#" temp2 > temp
+- @sed -e "s#@bindir@#$(INSTALLDIR)/bin#" temp > temp2
++ @sed -e "s#@prefix@#$(PREFIX)#" temp > temp2
++ @sed -e "s#@INCLUDE_PREFIX@#$(PREFIX)#" temp2 > temp
++ @sed -e "s#@includedir@#$(PREFIX)/include#" temp > temp2
++ @sed -e "s#@libdir@#$(PREFIX)/lib#" temp2 > temp
++ @sed -e "s#@bindir@#$(PREFIX)/bin#" temp > temp2
@sed -e "s/@LIB_TO_LINK@/$(VERSION)/" temp2 > temp
@sed -e "s/@LDFLAGS@//" temp > temp2
@sed -e "s/@LIBS@/$(STATIC_LIBRARIES)/" temp2 > temp
-- @sed -e "s/@INCLUDE_PREFIX@/\/usr\/local/" temp >temp2
-+ @sed -e "s:@INCLUDE_PREFIX@:$(PREFIX):" temp >temp2
- @sed -e "s/@FRAMEWORKS@/-framework Cocoa -framework $(FRAMEWORK_NAME) -l$(VERSION)-main/" temp2 > temp
- @sed -e "s/accepts_frameworks=no/accepts_frameworks=yes/" temp > temp2
- @sed -e "s/{lib_type} \$$allegro_libs/{lib_type}_s \$$allegro_libs/" temp2 > temp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070924/6b3d7559/attachment.html
More information about the macports-changes
mailing list