New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83133


Ignore:
Timestamp:
08/25/11 23:29:05 (4 years ago)
Author:
ryandesign@…
Message:

neverball:

  • update to 1.5.4 (#23680)
  • update homepage
  • use the correct -arch flags
Location:
trunk/dports/games/neverball
Files:
1 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/neverball/Portfile

    r82174 r83133  
    44 
    55name            neverball 
    6 version         1.4.0 
    7 revision        1 
     6version             1.5.4 
    87categories      games 
    98platforms       darwin 
    109maintainers     gmail.com:mvitocruz 
     10license             GPL-2+ 
     11 
    1112description     Tilt the floor to roll a ball through an obstacle course. 
    1213long_description        \ 
     
    1516                game, part action game, and entirely a test of skill. 
    1617 
    17 homepage        http://icculus.org/neverball/ 
     18homepage            http://neverball.org/ 
    1819master_sites    ${homepage} 
    19 checksums       md5 a6cd860f1c2b7d8cecbcfc05ff228ef0 
    20 patchfiles      patch-Makefile.diff patch-ball-main.c patch-putt-main.c patch-share-mapc.c 
     20 
     21checksums           rmd160  f546b5e6c12df1a125976a7e23fa55146480241d \ 
     22                    sha256  ea31ca9f6eec70c8e66eaa20d7ce9e48295fdb077313b97637c503b16b7b0da6 
    2123 
    2224depends_lib     path:lib/pkgconfig/sdl.pc:libsdl \ 
    23                 port:libsdl_image \ 
    24                 port:libsdl_mixer \ 
    25                 port:libsdl_ttf 
     25                    port:libpng \ 
     26                    port:jpeg \ 
     27                    port:libvorbis \ 
     28                    port:libsdl_ttf \ 
     29                    port:physfs 
     30 
     31patchfiles          patch-Makefile.diff \ 
     32                    patch-share-fs.c.diff 
    2633 
    2734post-patch { 
    28         reinplace "s|./data|${prefix}/share/${name}|g" ${worksrcpath}/share/config.h 
     35    reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile 
    2936} 
    3037 
    3138use_configure   no 
    3239 
    33 build.args      CC=${configure.cc} 
     40build.args          CC="${configure.cc} [get_canonical_archflags]" \ 
     41                    DATADIR=${prefix}/share/games/${name} 
    3442 
    3543destroot { 
    36         xinstall -d -m 755 ${destroot}${prefix}/share/ 
    37         file copy ${worksrcpath}/data ${destroot}${prefix}/share/${name} 
    38         xinstall -s -m 755 ${worksrcpath}/neverball ${destroot}${prefix}/bin 
    39         xinstall -s -m 755 ${worksrcpath}/neverputt ${destroot}${prefix}/bin 
     44    xinstall -d -m 755 ${destroot}${prefix}/share/games 
     45    file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name} 
     46    fs-traverse item ${destroot}${prefix}/share/games/${name} { 
     47        if {[file isfile ${item}]} { 
     48            switch [file extension ${item}] { 
     49                .map { 
     50                    delete ${item} 
     51                } 
     52                .sol { 
     53                    file attributes ${item} -permissions 0644 
     54                } 
     55            } 
     56        } 
     57    } 
     58    xinstall -s -m 755 -W ${worksrcpath} neverball neverputt ${destroot}${prefix}/bin 
    4059} 
    4160 
    42 platform darwin { 
    43         pre-destroot { 
     61platform macosx { 
     62        post-destroot { 
    4463                xinstall -d -m 755 \ 
    4564                        ${destroot}${applications_dir}/Neverball.app/Contents/MacOS \ 
  • trunk/dports/games/neverball/files/patch-Makefile.diff

    r82174 r83133  
    1 --- Makefile.orig       2004-09-09 06:31:40.000000000 +1000 
    2 +++ Makefile    2011-08-10 08:22:24.000000000 +1000 
    3 @@ -6,12 +6,12 @@ 
    4  #X11_PATH= -L/usr/X11/lib 
    5  #X11_PATH= -L/usr/X11R6/lib 
     1--- Makefile.orig       2009-09-20 05:06:00.000000000 -0500 
     2+++ Makefile    2011-08-24 18:24:50.000000000 -0500 
     3@@ -87,11 +87,8 @@ 
     4     ALL_CPPFLAGS += -DENABLE_WII=1 
     5 endif 
    66  
    7 -OGL_LIBS= -lGL -lm 
    8 +OGL_LIBS= -framework OpenGL -lm 
    9  #OGL_LIBS= -lm                                                # Think Different 
     7-ifdef DARWIN 
     8-    ALL_CPPFLAGS += -I/opt/local/include 
     9-endif 
     10  
     11-ALL_CPPFLAGS += $(CPPFLAGS) 
     12+ALL_CPPFLAGS += $(CPPFLAGS) @CPPFLAGS@ 
    1013  
    1114 #------------------------------------------------------------------------------ 
     15 # Libraries 
     16@@ -133,9 +130,6 @@ 
    1217  
    13 -CFLAGS= -Wall -O3 -ansi $(shell sdl-config --cflags) 
    14 +CFLAGS= -Wall -O3 -ansi $(shell sdl-config --cflags) -FOpenGL 
    15  #CFLAGS= -Wall -g -ansi $(shell sdl-config --cflags) 
    16  #CFLAGS= -Wall -pg -ansi $(shell sdl-config --cflags) 
     18 BASE_LIBS := -ljpeg $(PNG_LIBS) $(FS_LIBS) 
    1719  
    18 @@ -265,7 +265,7 @@ 
    19         $(CC) $(CFLAGS) -o $(PUTT_TARG) $(PUTT_OBJS) $(LIBS) 
     20-ifdef DARWIN 
     21-    BASE_LIBS += -L/opt/local/lib 
     22-endif 
    2023  
    21  $(MAPC_TARG) : $(MAPC_OBJS) 
    22 -       $(CC) $(CFLAGS) -o $(MAPC_TARG) $(MAPC_OBJS) $(LIBS) 
    23 +       $(CC) $(CFLAGS) -o $(MAPC_TARG) $(MAPC_OBJS) `echo $(LIBS) | sed 's|-lSDLmain||'` 
    24   
    25  clean-src : 
    26         rm -f $(BALL_TARG) $(BALL_OBJS) $(BALL_DEPS) 
     24 ALL_LIBS := $(SDL_LIBS) $(BASE_LIBS) $(TILT_LIBS) $(INTL_LIBS) -lSDL_ttf \ 
     25     -lvorbisfile $(OGL_LIBS) 
Note: See TracChangeset for help on using the changeset viewer.