diff options
9 files changed, 18 insertions, 6 deletions
diff --git a/debian/lenny/libraries/libkdcraw/debian/control b/debian/lenny/libraries/libkdcraw/debian/control index 6c1354f00..d5c0f6287 100644 --- a/debian/lenny/libraries/libkdcraw/debian/control +++ b/debian/lenny/libraries/libkdcraw/debian/control @@ -15,7 +15,7 @@ Section: libdevel Architecture: any Replaces: libkdcraw3-trinity-dev (<< 4:14.0.0~) Breaks: libkdcraw3-trinity-dev (<< 4:14.0.0~) -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/debian/lenny/libraries/libkdcraw/debian/control.in b/debian/lenny/libraries/libkdcraw/debian/control.in index a260e6a50..a6302507d 100644 --- a/debian/lenny/libraries/libkdcraw/debian/control.in +++ b/debian/lenny/libraries/libkdcraw/debian/control.in @@ -13,7 +13,7 @@ Homepage: http://www.kipi-plugins.org/ Package: libkdcraw3-trinity-dev Section: libdevel Architecture: any -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/debian/lenny/libraries/libkdcraw/debian/rules b/debian/lenny/libraries/libkdcraw/debian/rules index f58c12e61..33bec897c 100755 --- a/debian/lenny/libraries/libkdcraw/debian/rules +++ b/debian/lenny/libraries/libkdcraw/debian/rules @@ -19,3 +19,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinit DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) + +# add installed liblcms*-dev to libkdcraw3-trinity-dev depends +common-binary-arch:: + (dpkg --get-selections "liblcms*-dev" | awk '{lcms=lcms $$1 ","} END { print "lcms-dev=" lcms}' >>debian/libkdcraw3-trinity-dev.substvars) diff --git a/debian/squeeze/libraries/libkdcraw/debian/control b/debian/squeeze/libraries/libkdcraw/debian/control index 6c1354f00..d5c0f6287 100644 --- a/debian/squeeze/libraries/libkdcraw/debian/control +++ b/debian/squeeze/libraries/libkdcraw/debian/control @@ -15,7 +15,7 @@ Section: libdevel Architecture: any Replaces: libkdcraw3-trinity-dev (<< 4:14.0.0~) Breaks: libkdcraw3-trinity-dev (<< 4:14.0.0~) -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/debian/squeeze/libraries/libkdcraw/debian/control.in b/debian/squeeze/libraries/libkdcraw/debian/control.in index a260e6a50..a6302507d 100644 --- a/debian/squeeze/libraries/libkdcraw/debian/control.in +++ b/debian/squeeze/libraries/libkdcraw/debian/control.in @@ -13,7 +13,7 @@ Homepage: http://www.kipi-plugins.org/ Package: libkdcraw3-trinity-dev Section: libdevel Architecture: any -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/debian/squeeze/libraries/libkdcraw/debian/rules b/debian/squeeze/libraries/libkdcraw/debian/rules index 37e4c2242..ad8152372 100755 --- a/debian/squeeze/libraries/libkdcraw/debian/rules +++ b/debian/squeeze/libraries/libkdcraw/debian/rules @@ -19,3 +19,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinit DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) + +# add installed liblcms*-dev to libkdcraw3-trinity-dev depends +common-binary-arch:: + (dpkg --get-selections "liblcms*-dev" | awk '{lcms=lcms $$1 ","} END { print "lcms-dev=" lcms}' >>debian/libkdcraw3-trinity-dev.substvars) diff --git a/ubuntu/maverick/libraries/libkdcraw/debian/control b/ubuntu/maverick/libraries/libkdcraw/debian/control index 638014ff9..991c976f4 100644 --- a/ubuntu/maverick/libraries/libkdcraw/debian/control +++ b/ubuntu/maverick/libraries/libkdcraw/debian/control @@ -15,7 +15,7 @@ Section: libdevel Architecture: any Replaces: libkdcraw3-kde3-dev (<< 4:14.0.0~), libkdcraw3-trinity-dev (<< 4:14.0.0~) Breaks: libkdcraw3-kde3-dev (<< 4:14.0.0~), libkdcraw3-trinity-dev (<< 4:14.0.0~) -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/ubuntu/maverick/libraries/libkdcraw/debian/control.in b/ubuntu/maverick/libraries/libkdcraw/debian/control.in index a260e6a50..a6302507d 100644 --- a/ubuntu/maverick/libraries/libkdcraw/debian/control.in +++ b/ubuntu/maverick/libraries/libkdcraw/debian/control.in @@ -13,7 +13,7 @@ Homepage: http://www.kipi-plugins.org/ Package: libkdcraw3-trinity-dev Section: libdevel Architecture: any -Depends: libkdcraw3-trinity (= ${binary:Version}), liblcms2-dev | liblcms1-dev, pkg-config +Depends: libkdcraw3-trinity (= ${binary:Version}), ${lcms-dev}, pkg-config Conflicts: libkdcraw-dev Description: RAW picture decoding C++ library (development) [Trinity] Libkdcraw is a C++ interface around dcraw binary program used to diff --git a/ubuntu/maverick/libraries/libkdcraw/debian/rules b/ubuntu/maverick/libraries/libkdcraw/debian/rules index 37e4c2242..ad8152372 100755 --- a/ubuntu/maverick/libraries/libkdcraw/debian/rules +++ b/ubuntu/maverick/libraries/libkdcraw/debian/rules @@ -19,3 +19,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinit DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) + +# add installed liblcms*-dev to libkdcraw3-trinity-dev depends +common-binary-arch:: + (dpkg --get-selections "liblcms*-dev" | awk '{lcms=lcms $$1 ","} END { print "lcms-dev=" lcms}' >>debian/libkdcraw3-trinity-dev.substvars) |