Ticket #21677: testdisk.diff

File testdisk.diff, 1.5 KB (added by mklein-de (Michael Klein), 15 years ago)
  • Portfile

     
    1919
    2020depends_build   port:ncurses
    2121
    22 depends_lib     port:e2fsprogs \
    23                 port:libiconv \
     22depends_lib     port:libiconv \
    2423                port:jpeg \
    2524                port:ncurses \
    26                 port:ntfsprogs \
    2725                port:openssl \
     26                port:ossp-uuid \
    2827                port:zlib
    29 # port:ossp-uuid
    30 # provided by port:e2fsprogs
    3128
    3229use_bzip2       yes
    3330
     
    4542                        --with-ncurses-includes=${prefix}/include/ncurses \
    4643                        --with-iconv-lib=${prefix}/lib \
    4744                        --with-iconv-includes=${prefix}/include \
    48                         --without-ewf
     45                        --without-ewf --without-ext2fs --without-ntfs
     46
     47variant with_ewf description "Enable support for the Expert Witness Compression Format (EWF)" {
     48    configure.args-delete   --without-ewf
     49    depends_lib-append      port:libewf
     50    # needed for testdisk 6.11's configure script
     51    configure.cflags-append -fnested-functions
     52}
     53
     54variant with_ext2fs description "Enable support for the ext2 file system" {
     55    configure.args-delete   --without-ext2fs
     56    depends_lib-delete      port:ossp-uuid
     57    depends_lib-append      port:e2fsprogs
     58}
     59
     60variant with_ntfs description "Enable support for the NTFS file system" {
     61    configure.args-delete   --without-ntfs
     62    depends_lib-append      port:ntfsprogs
     63}