Ticket #36368: port-frozenbubble2-98202.diff

File port-frozenbubble2-98202.diff, 1.6 KB (added by anddam (Andrea D'Amore), 12 years ago)
  • Portfile

     
    77version               2.2.0
    88revision          1
    99platforms             darwin
    10 maintainers           pmq
     10maintainers           pmq openmaintainer
    1111
    1212description           Frozen Bubble 2
    1313long_description      Colorful 3D rendered penguin animations, 100 levels of 1p \
     
    3535# uses nested functions
    3636compiler.blacklist  clang
    3737patchfiles            patch-c_stuff-Makefile.PL.diff patch-Makefile.diff patch-c_stuff-Makefile.diff
     38if {${configure.compiler} == "llvm-gcc-4.2"} {
     39    patchfiles-append    patch-server_makefile.diff
     40}
    3841
    3942configure {
    4043    foreach file [glob ${worksrcpath}/frozen-bubble*] {
     
    4447        ${worksrcpath}/c_stuff/Makefile
    4548}
    4649
    47 build.args            PREFIX="${prefix}" CC="${configure.cc}" LD="${configure.cc}"
     50build.args            PREFIX="${prefix}" CC="${configure.cc}" LD="${configure.cc}" CPP="${configure.cpp}"
    4851destroot.args  PREFIX="${prefix}"
  • files/patch-server_makefile.diff

     
     1--- server/Makefile.orig        2012-09-29 00:38:54.000000000 +0200
     2+++ server/Makefile     2012-09-29 00:53:01.000000000 +0200
     3@@ -25,7 +25,9 @@
     4        install fb-server $(DESTDIR)$(LIBDIR)/frozen-bubble
     5 
     6 .depend:
     7-       $(CPP) $(CFLAGS) $(CPPFLAGS) -M $(ALLSRC) > .depend
     8+       for aFile in $(ALLSRC) ; do \
     9+               $(CPP) $(CFLAGS) $(CPPFLAGS) -M $$aFile >> .depend ; \
     10+       done
     11 
     12 ifeq (.depend,$(wildcard .depend))
     13 include .depend