New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83027


Ignore:
Timestamp:
08/23/11 18:27:31 (4 years ago)
Author:
ryandesign@…
Message:

2Pong: update to 1.0.1a (which is a complete rewrite, hence the Portfile changes significantly); can now build 64-bit (and universal); rewrite master_sites to avoid redirects; fix livecheck

Location:
trunk/dports/games/2Pong
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/2Pong/Portfile

    r83017 r83027  
    55 
    66name                    2Pong 
    7 version                 0.6 
    8 revision                2 
     7version                 1.0.1a 
    98categories              games 
    109platforms               darwin 
     
    1312installs_libs           no 
    1413 
    15 # Compiles ok for x86_64 but crashes on launch 
    16 supported_archs         i386 ppc 
    17  
    1814description             Pong game with 2 balls, 2 and 4 player support 
    1915long_description        ${description} 
    2016 
    2117homepage                http://twopong.sourceforge.net/ 
    22 master_sites            sourceforge:twopong 
    23 checksums               md5 55d54deb30f079d4b2684b7f7c8ab57f 
    24 use_bzip2               yes 
     18master_sites            sourceforge:project/twopong/2Pong/2Pong-${version} 
     19distname                2pong-src-${version} 
     20worksrcdir              2Pong-Source 
     21 
     22checksums               rmd160  43e0cde2485a3b89a4009db80118dda4a14aa82c \ 
     23                        sha256  4075bf686126f785e10f3ff9dcaa7febc05291ad6ddf7a84bf2dd2890382a87b 
    2524 
    2625depends_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 
    2931 
    30 patchfiles              patch-Makefile.diff 
     32post-extract { 
     33    copy ${filespath}/${name}.in ${workpath}/${name} 
     34} 
     35 
     36patchfiles              patch-Makefile.diff \ 
     37                        patch-defs.h.diff 
     38 
     39post-patch { 
     40    reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name} 
     41} 
    3142 
    3243use_configure           no 
    3344 
     45variant universal {} 
     46 
     47build.dir               ${worksrcpath}/src 
    3448build.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]" 
    3652 
    37 destroot.destdir        PRE=${destroot}${prefix} 
    38  
    39 post-destroot { 
    40     reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/2Pong 
     53destroot { 
     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 
    4159} 
    4260 
    43 app.icon                Graphics/2pongicon.png 
     61app.icon                src/icon.bmp 
    4462 
    45 livecheck.version       ${name}-${version} 
    46 livecheck.distname      ${name} 
     63livecheck.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.