Ticket #24235: 2Pong-1.0.1a.diff
File 2Pong-1.0.1a.diff, 3.7 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago) |
---|
-
files/patch-Makefile.diff
1 --- src/Makefile.orig 2005-05-11 06:01:36.000000000 -0500 2 +++ src/Makefile 2010-03-26 17:44:01.000000000 -0500 3 @@ -4,11 +4,11 @@ 4 CXX = g++ 5 LEX = flex 6 YACC = yacc 7 -CFLAGS = -pipe -fno-exceptions -Wall -W -O2 -march=i486 -mcpu=i686 -D_REENTRANT 8 -CXXFLAGS = -pipe -fno-exceptions -Wall -W -O2 -march=i486 -mcpu=i686 -D_REENTRANT 9 +CFLAGS = -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT 10 +CXXFLAGS = -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT 11 LEXFLAGS = 12 YACCFLAGS= -d 13 -INCPATH = `xml2-config --cflags` `sdl-config --cflags` 14 +INCPATH = `xml2-config --cflags` `sdl-config --cflags` $(CPPFLAGS) 15 LINK = g++ 16 LFLAGS = -fno-exceptions -Wl,-rpath,/usr/lib/qt/lib 17 LIBS = `xml2-config --libs` `sdl-config --libs` -lSDL_net -lSDL_mixer -
files/patch-defs.h.diff
1 --- src/defs.h.orig 2005-05-11 06:01:36.000000000 -0500 2 +++ src/defs.h 2010-03-26 17:47:23.000000000 -0500 3 @@ -225,10 +225,10 @@ 4 5 bool GetPowerups() { return powerups; } 6 void SetPowerups(bool x) { powerups=x; } 7 - rectangle defines::UpperBound(); 8 - rectangle defines::LowerBound(); 9 - rectangle defines::RightBound(); 10 - rectangle defines::LeftBound(); 11 + rectangle UpperBound(); 12 + rectangle LowerBound(); 13 + rectangle RightBound(); 14 + rectangle LeftBound(); 15 16 private: 17 int maxballs; -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name 2Pong 6 version 0.6 7 revision 1 6 version 1.0.1a 8 7 categories games 9 8 platforms darwin 10 9 maintainers nomaintainer … … 14 13 15 14 homepage http://twopong.sourceforge.net/ 16 15 master_sites sourceforge:twopong 17 checksums md5 55d54deb30f079d4b2684b7f7c8ab57f 18 use_bzip2 yes 16 distname 2pong-src-${version} 17 worksrcdir 2Pong-Source 19 18 19 checksums md5 fa9fc3e998bc5f9ed69a3eb5fab4bbb2 \ 20 sha1 b8cf51e5914e65c88b2b0e567161b6b298a4f3e5 \ 21 rmd160 43e0cde2485a3b89a4009db80118dda4a14aa82c 22 20 23 depends_lib path:lib/pkgconfig/sdl.pc:libsdl \ 21 port:libsdl_image \ 22 port:libsdl_mixer 24 port:libsdl_net \ 25 port:libsdl_mixer \ 26 port:libiconv \ 27 port:zlib \ 28 port:libxml2 23 29 30 patchfiles patch-Makefile.diff \ 31 patch-defs.h.diff 32 24 33 use_configure no 25 34 26 build.args CFLAGS="-I${prefix}/include -I${prefix}/include/SDL" 35 build.dir ${worksrcpath}/src 36 build.args CC=${configure.cc} \ 37 CPPFLAGS="${configure.cppflags}" \ 38 CXX=${configure.cxx} \ 39 LINK=${configure.cxx} 27 40 28 destroot.destdir PRE=${destroot}${prefix} 29 30 post-destroot { 31 reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/2Pong 41 destroot { 42 xinstall ${worksrcpath}/2pong ${destroot}${prefix}/bin/2Pong 32 43 xinstall -d ${destroot}${applications_dir}/2Pong.app/Contents/MacOS 33 44 ln -s ${prefix}/bin/2Pong ${destroot}${applications_dir}/2Pong.app/Contents/MacOS/2Pong 34 45 }