Skip to content
Permalink
Browse files

update to v0.4

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4564 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Jan 10, 2004
1 parent 16a6903 commit e1532b4f7e9198c0dcb12eb8b4e1203fda5f9c76
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.3 2003/12/30 19:28:24 mww Exp $
# $Id: Portfile,v 1.4 2004/01/10 12:46:40 mww Exp $

PortSystem 1.0

name openmortal
version 0.3
version 0.4
categories games
platforms darwin
maintainers mww@opendarwin.org
@@ -18,17 +18,19 @@ long_description Mortal Szombat is a parody of the popular coin-up \

homepage http://openmortal.sourceforge.net/
master_sites sourceforge
checksums md5 a396fd9f32aa009ba462cf3464b68fe1
checksums md5 350650ba1b66333f5736d4aa6ea944ba
use_bzip2 yes

depends_lib bin:sdl-config:libsdl \
lib:libSDL_mixer:libsdl_mixer \
lib:libSDL_image:libsdl_image \
lib:libSDL_ttf:libsdl_ttf \
lib:libfreetype:freetype \
bin:perl:perl

variant darwin {
patchfiles patch-sge_tt_text.cpp.diff
patchfiles patch-sge_tt_text.cpp.diff \
patch-RlePack.cpp.diff
post-destroot {
file mkdir ${destroot}/Applications/DarwinPorts/OpenMortal.app/Contents/MacOS
system "ln -s ${prefix}/bin/openmortal \
@@ -39,3 +41,7 @@ variant darwin {

configure.env LDFLAGS="-L${prefix}/lib" \
CPPFLAGS="-I${prefix}/include"
configure.args --enable-main \
--enable-characters \
--enable-additional \
--enable-thirdparty
@@ -0,0 +1,39 @@
--- src/RlePack.cpp Mon Jan 5 22:23:47 2004
+++ src/RlePack.cpp.new Sat Jan 10 13:31:34 2004
@@ -22,36 +22,22 @@

inline void ChangeEndian32( Uint32& a_riArg )
{
- char* pcArg = (char*)&a_riArg;
- char cTemp;
- cTemp = pcArg[0]; pcArg[0] = pcArg[3]; pcArg[3] = cTemp;
- cTemp = pcArg[1]; pcArg[1] = pcArg[2]; pcArg[2] = cTemp;
}


inline void ChangeEndian16( Uint16& a_riArg )
{
- char* pcArg = (char*)&a_riArg;
- char cTemp;
- cTemp = pcArg[0]; pcArg[0] = pcArg[1]; pcArg[1] = cTemp;
}


inline Uint32 ConvertEndian32( Uint32 a_iArg )
{
- char* pcArg = (char*)&a_iArg;
- char cTemp;
- cTemp = pcArg[0]; pcArg[0] = pcArg[3]; pcArg[3] = cTemp;
- cTemp = pcArg[1]; pcArg[1] = pcArg[2]; pcArg[2] = cTemp;
return a_iArg;
}


inline Uint16 ConvertEndian16( Uint16 a_iArg )
{
- char* pcArg = (char*)&a_iArg;
- char cTemp;
- cTemp = pcArg[0]; pcArg[0] = pcArg[1]; pcArg[1] = cTemp;
return a_iArg;
}

@@ -1,11 +1,10 @@
--- src/sge_tt_text.cpp Thu Aug 21 17:29:03 2003
+++ src/sge_tt_text.cpp.new Mon Nov 24 17:51:13 2003
@@ -26,7 +26,7 @@
--- src/sge_tt_text.cpp Sun Oct 5 16:34:20 2003
+++ src/sge_tt_text.cpp.new Sat Jan 10 01:26:56 2004
@@ -26,7 +26,6 @@

#include <SDL/SDL.h>
#include "SDL.h"
#include <stdlib.h>
-#include <malloc.h>
+#include <sys/malloc.h>
#include <memory.h>
#include <string.h>
#include <stdarg.h>

0 comments on commit e1532b4

Please sign in to comment.
You can’t perform that action at this time.