diff options
author | Joey Hess <joey@kitenet.net> | 2013-01-27 08:07:22 +1100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-01-27 08:07:22 +1100 |
commit | 77c6e3a9639fe9c3279f19b5a720aee362f82907 (patch) | |
tree | b730e699d52d29c05a796a229f646cf41f26ff41 /debian/rules | |
parent | 0bb2794deb2acff297d644b2755860f2f643a978 (diff) |
Adjust debian package to only build-depend on DAV on architectures where it is available.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 1b8927957..8cd2b5aa5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,12 @@ #!/usr/bin/make -f -ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-yesod-dev 2>/dev/null)) -export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBDAV -DWITH_HOST -DWITH_OLD_URI -DWITH_PAIRING -DWITH_XMPP -DWITH_WEBAPP -DWITH_OLD_YESOD +export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_HOST -DWITH_OLD_URI -DWITH_PAIRING -DWITH_XMPP -DWITH_WEBAPP -DWITH_OLD_YESOD else -export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBDAV -DWITH_HOST -DWITH_OLD_URI -DWITH_PAIRING -DWITH_XMPP +export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_HOST -DWITH_OLD_URI -DWITH_PAIRING -DWITH_XMPP +endif +ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-dav-dev 2>/dev/null)) +export FEATURES:=${FEATURES} -DWITH_WEBDAV endif %: |