Ticket #24235: 2Pong-1.0.1a.diff

File 2Pong-1.0.1a.diff, 3.7 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

potential update

  • 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

     
    33PortSystem              1.0
    44
    55name                    2Pong
    6 version                 0.6
    7 revision                1
     6version                 1.0.1a
    87categories              games
    98platforms               darwin
    109maintainers             nomaintainer
     
    1413
    1514homepage                http://twopong.sourceforge.net/
    1615master_sites            sourceforge:twopong
    17 checksums               md5 55d54deb30f079d4b2684b7f7c8ab57f
    18 use_bzip2               yes
     16distname                2pong-src-${version}
     17worksrcdir              2Pong-Source
    1918
     19checksums               md5     fa9fc3e998bc5f9ed69a3eb5fab4bbb2 \
     20                        sha1    b8cf51e5914e65c88b2b0e567161b6b298a4f3e5 \
     21                        rmd160  43e0cde2485a3b89a4009db80118dda4a14aa82c
     22
    2023depends_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
    2329
     30patchfiles              patch-Makefile.diff \
     31                        patch-defs.h.diff
     32
    2433use_configure           no
    2534
    26 build.args              CFLAGS="-I${prefix}/include -I${prefix}/include/SDL"
     35build.dir               ${worksrcpath}/src
     36build.args              CC=${configure.cc} \
     37                        CPPFLAGS="${configure.cppflags}" \
     38                        CXX=${configure.cxx} \
     39                        LINK=${configure.cxx}
    2740
    28 destroot.destdir        PRE=${destroot}${prefix}
    29 
    30 post-destroot {
    31     reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/2Pong
     41destroot {
     42    xinstall ${worksrcpath}/2pong ${destroot}${prefix}/bin/2Pong
    3243    xinstall -d ${destroot}${applications_dir}/2Pong.app/Contents/MacOS
    3344    ln -s ${prefix}/bin/2Pong ${destroot}${applications_dir}/2Pong.app/Contents/MacOS/2Pong
    3445}