Ticket #19216: moria.diff

File moria.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    1616
    1717patchfiles       patch-source_config.h
    1818
     19build.dir        ${worksrcpath}/source
     20build.target
     21
     22use_parallel_build yes
     23
    1924configure        {
    2025                    addgroup games
    2126                   
    22                     file copy ${worksrcpath}/unix/Makefile ${worksrcpath}/source
    23                     file copy ${worksrcpath}/unix/unix.c ${worksrcpath}/source
     27                    xinstall -m 644 -W ${worksrcpath}/unix Makefile unix.c ${build.dir}
     28                   
     29                    reinplace "s|^CC = cc|CC = ${configure.cc}|" ${build.dir}/Makefile
    2430                   
    2531                    reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \
    2632                        ${worksrcpath}/source/config.h
    2733                 }
    28                  
    29 build            {
    30                     system "cd ${worksrcpath}/source && make"
    31                  }
    32                  
     34
    3335destroot         {
    3436                    xinstall -d ${destroot}${prefix}/var/games/moria
    3537                    xinstall -c -m 2755 -g games ${worksrcpath}/source/moria ${destroot}${prefix}/bin