Ticket #19216: moria.diff
File moria.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago) |
---|
-
Portfile
16 16 17 17 patchfiles patch-source_config.h 18 18 19 build.dir ${worksrcpath}/source 20 build.target 21 22 use_parallel_build yes 23 19 24 configure { 20 25 addgroup games 21 26 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 24 30 25 31 reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \ 26 32 ${worksrcpath}/source/config.h 27 33 } 28 29 build { 30 system "cd ${worksrcpath}/source && make" 31 } 32 34 33 35 destroot { 34 36 xinstall -d ${destroot}${prefix}/var/games/moria 35 37 xinstall -c -m 2755 -g games ${worksrcpath}/source/moria ${destroot}${prefix}/bin