Ticket #31324: live555-Portfile.diff
File live555-Portfile.diff, 1.7 KB (added by ak.ml@…, 13 years ago) |
---|
-
Portfile
4 4 5 5 name live555 6 6 version 2011.09.19 7 revision 1 7 8 categories multimedia 8 9 maintainers milosh openmaintainer 9 10 description LIVE555 Streaming Media … … 23 24 distname live.${version} 24 25 universal_variant no 25 26 worksrcdir live 27 28 set files_0 ${workpath}/files-0.txt 29 set files_1 ${workpath}/files-1.txt 30 set files_new ${workpath}/files-new.txt 31 32 post-patch { 33 ui_msg "Create a list of files: \[${files_0}\]" 34 system "find ${worksrcpath} ! -type d | sort > ${files_0}" 35 } 36 26 37 configure.cmd ./genMakefiles 27 38 configure.pre_args {} 28 39 29 40 build.args-append C_COMPILER='${configure.cc} [get_canonical_archflags]' \ 30 41 CPLUSPLUS_COMPILER='${configure.cxx} [get_canonical_archflags]' \ 31 42 LINK='${configure.cxx} [get_canonical_archflags] -o ' 32 43 44 post-build { 45 ui_msg "Create an updated list of files: \[${files_1}\]" 46 system "find ${worksrcpath} ! -type d | sort > ${files_1}" 47 48 ui_msg "Create a list of new files: \[${files_new}\]" 49 system "comm -1 -3 ${files_0} ${files_1} > ${files_new}" 50 51 ui_msg "Delete everything but *.hh and *.h files listed in \[${files_0}\]" 52 system "grep -v -e '\\.h\$' -e '\\.hh\$' ${files_0} | xargs rm" 53 54 ui_msg "Delete every *.o and Makefile files listed in \[${files_new}\]" 55 system "grep -e '\\.o\$' -e '/Makefile\$' ${files_new} | xargs rm" 56 } 57 33 58 destroot { 34 59 xinstall -d ${destroot}${prefix}/lib 35 60 file copy ${workpath}/live ${destroot}${prefix}/lib/