Changeset 83027
- Timestamp:
- 08/23/11 18:27:31 (4 years ago)
- Location:
- trunk/dports/games/2Pong
- Files:
-
- 2 added
- 2 edited
-
Portfile (modified) (2 diffs)
-
files/2Pong.in (added)
-
files/patch-Makefile.diff (modified) (1 diff)
-
files/patch-defs.h.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/games/2Pong/Portfile
r83017 r83027 5 5 6 6 name 2Pong 7 version 0.6 8 revision 2 7 version 1.0.1a 9 8 categories games 10 9 platforms darwin … … 13 12 installs_libs no 14 13 15 # Compiles ok for x86_64 but crashes on launch16 supported_archs i386 ppc17 18 14 description Pong game with 2 balls, 2 and 4 player support 19 15 long_description ${description} 20 16 21 17 homepage http://twopong.sourceforge.net/ 22 master_sites sourceforge:twopong 23 checksums md5 55d54deb30f079d4b2684b7f7c8ab57f 24 use_bzip2 yes 18 master_sites sourceforge:project/twopong/2Pong/2Pong-${version} 19 distname 2pong-src-${version} 20 worksrcdir 2Pong-Source 21 22 checksums rmd160 43e0cde2485a3b89a4009db80118dda4a14aa82c \ 23 sha256 4075bf686126f785e10f3ff9dcaa7febc05291ad6ddf7a84bf2dd2890382a87b 25 24 26 25 depends_lib path:lib/pkgconfig/sdl.pc:libsdl \ 27 port:libsdl_image \ 28 port:libsdl_mixer 26 port:libsdl_net \ 27 port:libsdl_mixer \ 28 port:libiconv \ 29 port:zlib \ 30 port:libxml2 29 31 30 patchfiles patch-Makefile.diff 32 post-extract { 33 copy ${filespath}/${name}.in ${workpath}/${name} 34 } 35 36 patchfiles patch-Makefile.diff \ 37 patch-defs.h.diff 38 39 post-patch { 40 reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name} 41 } 31 42 32 43 use_configure no 33 44 45 variant universal {} 46 47 build.dir ${worksrcpath}/src 34 48 build.args CC="${configure.cc} [get_canonical_archflags]" \ 35 CFLAGS="-I${prefix}/include -I${prefix}/include/SDL" 49 CPPFLAGS="${configure.cppflags}" \ 50 CXX="${configure.cxx} [get_canonical_archflags]" \ 51 LINK="${configure.cxx} [get_canonical_archflags]" 36 52 37 destroot.destdir PRE=${destroot}${prefix} 38 39 post-destroot { 40 reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/2Pong 53 destroot { 54 xinstall ${workpath}/${name} ${destroot}${prefix}/bin 55 xinstall -d ${destroot}${prefix}/share/${name}/src ${destroot}${prefix}/libexec/${name} 56 xinstall ${worksrcpath}/2pong ${destroot}${prefix}/libexec/${name}/${name} 57 copy ${worksrcpath}/conf.xml ${destroot}${prefix}/share/${name} 58 copy ${worksrcpath}/src/data ${destroot}${prefix}/share/${name}/src 41 59 } 42 60 43 app.icon Graphics/2pongicon.png61 app.icon src/icon.bmp 44 62 45 livecheck.version ${name}-${version} 46 livecheck.distname ${name} 63 livecheck.regex /2pong-src-(\[0-9a-z.\]+)${extract.suffix} -
trunk/dports/games/2Pong/files/patch-Makefile.diff
r83017 r83027 1 --- Makefile.orig 2003-07-15 08:16:20.000000000 -0500 2 +++ Makefile 2011-08-23 10:56:18.000000000 -0500 3 @@ -9,7 +9,7 @@ 4 5 6 2Pong: $(OBJECTS) src/2Pong.o 7 - gcc $(CFLAGS) -o 2Pong $(OBJECTS) src/2Pong.o $(LIBS) 8 + $(CC) $(CFLAGS) -o 2Pong $(OBJECTS) src/2Pong.o $(LIBS) 9 10 11 clean: 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
Note: See TracChangeset
for help on using the changeset viewer.

