Ticket #31324: live555-Portfile.diff

File live555-Portfile.diff, 1.7 KB (added by ak.ml@…, 13 years ago)
  • Portfile

     
    44
    55name             live555
    66version          2011.09.19
     7revision         1
    78categories       multimedia
    89maintainers      milosh openmaintainer
    910description      LIVE555 Streaming Media
     
    2324distname         live.${version}
    2425universal_variant no
    2526worksrcdir       live
     27
     28set files_0      ${workpath}/files-0.txt
     29set files_1      ${workpath}/files-1.txt
     30set files_new    ${workpath}/files-new.txt
     31
     32post-patch {
     33    ui_msg "Create a list of files: \[${files_0}\]"
     34    system "find ${worksrcpath} ! -type d | sort > ${files_0}"
     35}
     36
    2637configure.cmd    ./genMakefiles
    2738configure.pre_args {}
    2839
    2940build.args-append   C_COMPILER='${configure.cc} [get_canonical_archflags]' \
    3041                    CPLUSPLUS_COMPILER='${configure.cxx} [get_canonical_archflags]' \
    3142                    LINK='${configure.cxx} [get_canonical_archflags] -o '
    32                    
     43
     44post-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
    3358destroot {
    3459        xinstall -d ${destroot}${prefix}/lib
    3560        file copy ${workpath}/live ${destroot}${prefix}/lib/