Test for presence of all libs
{% set name = "DCMTK" %}
{% set version = "3.6.7" %}
+{% set libraries = [
+ "ofstd", "oflog", "dcmdata", "i2d", "dcmimgle", "dcmimage", "ijg8", "ijg12",
+ "ijg16", "dcmjpeg", "dcmtkcharls", "dcmjpls", "dcmnet", "dcmtls", "dcmsr",
+ "cmr", "dcmdsig", "dcmwlm", "dcmqrdb", "dcmpstat", "dcmrt", "dcmiod",
+ "dcmfg", "dcmseg", "dcmtract", "dcmpmap", "dcmect" ]
+%}
{% set SO_MAJOR = "17" %}
package:
@@ -34,7 +40,13 @@ test:
commands:
- dcmdump --help
- test -f $PREFIX/include/dcmtk/ofstd/ofstd.h # [unix]
- - test -f $PREFIX/lib/libofstd.so.{{ SO_MAJOR }} # [linux]
+ - if not exist %PREFIX%\\include\\dcmtk\\ofstd\\ofstd.h exit 1 # [win]
+ {% for library in libraries %}
+ - test -f $PREFIX/lib/lib{{ library }}.so.{{ SO_MAJOR }} # [linux]
+ - test -f $PREFIX/lib/lib{{ library }}.{{ SO_MAJOR }}.dylib # [mac]
+ - if not exist %PREFIX%\\bin\\{{ library }}.dll exit 1 # [win]
+ - if not exist %PREFIX%\\lib\\{{ library }}.lib exit 1 # [win]
+ {% endfor %}
- test -f $PREFIX/lib/pkgconfig/dcmtk.pc # [unix]
- test -f $PREFIX/lib/cmake/dcmtk/DCMTKConfig.cmake # [unix]
