Changeset 83133
- Timestamp:
- 08/25/11 23:29:05 (4 years ago)
- Location:
- trunk/dports/games/neverball
- Files:
-
- 1 added
- 3 deleted
- 2 edited
-
Portfile (modified) (2 diffs)
-
files/patch-Makefile.diff (modified) (1 diff)
-
files/patch-ball-main.c (deleted)
-
files/patch-putt-main.c (deleted)
-
files/patch-share-fs.c.diff (added)
-
files/patch-share-mapc.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/games/neverball/Portfile
r82174 r83133 4 4 5 5 name neverball 6 version 1.4.0 7 revision 1 6 version 1.5.4 8 7 categories games 9 8 platforms darwin 10 9 maintainers gmail.com:mvitocruz 10 license GPL-2+ 11 11 12 description Tilt the floor to roll a ball through an obstacle course. 12 13 long_description \ … … 15 16 game, part action game, and entirely a test of skill. 16 17 17 homepage http://icculus.org/neverball/18 homepage http://neverball.org/ 18 19 master_sites ${homepage} 19 checksums md5 a6cd860f1c2b7d8cecbcfc05ff228ef0 20 patchfiles patch-Makefile.diff patch-ball-main.c patch-putt-main.c patch-share-mapc.c 20 21 checksums rmd160 f546b5e6c12df1a125976a7e23fa55146480241d \ 22 sha256 ea31ca9f6eec70c8e66eaa20d7ce9e48295fdb077313b97637c503b16b7b0da6 21 23 22 24 depends_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 31 patchfiles patch-Makefile.diff \ 32 patch-share-fs.c.diff 26 33 27 34 post-patch { 28 reinplace "s|./data|${prefix}/share/${name}|g" ${worksrcpath}/share/config.h 35 reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile 29 36 } 30 37 31 38 use_configure no 32 39 33 build.args CC=${configure.cc} 40 build.args CC="${configure.cc} [get_canonical_archflags]" \ 41 DATADIR=${prefix}/share/games/${name} 34 42 35 43 destroot { 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 40 59 } 41 60 42 platform darwin{43 p re-destroot {61 platform macosx { 62 post-destroot { 44 63 xinstall -d -m 755 \ 45 64 ${destroot}${applications_dir}/Neverball.app/Contents/MacOS \ -
trunk/dports/games/neverball/files/patch-Makefile.diff
r82174 r83133 1 --- Makefile.orig 200 4-09-09 06:31:40.000000000 +10002 +++ Makefile 2011-08- 10 08:22:24.000000000 +10003 @@ - 6,12 +6,12@@4 #X11_PATH= -L/usr/X11/lib5 #X11_PATH= -L/usr/X11R6/lib1 --- 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 6 6 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@ 10 13 11 14 #------------------------------------------------------------------------------ 15 # Libraries 16 @@ -133,9 +130,6 @@ 12 17 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) 17 19 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 20 23 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.

