aboutsummaryrefslogtreecommitdiff
path: root/ports/mozjpeg
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-01-11 15:55:40 +0800
committerGitHub <noreply@github.com>2021-01-10 23:55:40 -0800
commit7fee6a4756c8f276d63ebb84385c0be579817db7 (patch)
treea0aa58c0a2d841465c80c37ea689d893b542510a /ports/mozjpeg
parent0b702d50294e4b720d9a7be466a3f4a508634864 (diff)
downloadvcpkg-7fee6a4756c8f276d63ebb84385c0be579817db7.tar.gz
vcpkg-7fee6a4756c8f276d63ebb84385c0be579817db7.zip
[libjpeg-turbo/mozjpeg] Add conflict messages (#15196)
* [libjpeg-turbo/mozjpeg] Add conflict messages * Add missed CONTROL for libjpeg-turbo * Update ports/mozjpeg/CONTROL
Diffstat (limited to 'ports/mozjpeg')
-rw-r--r--ports/mozjpeg/CONTROL3
-rw-r--r--ports/mozjpeg/portfile.cmake4
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/mozjpeg/CONTROL b/ports/mozjpeg/CONTROL
index 998e5eacf..39ee813a0 100644
--- a/ports/mozjpeg/CONTROL
+++ b/ports/mozjpeg/CONTROL
@@ -1,5 +1,6 @@
Source: mozjpeg
-Version: 2020-06-02-1
+Version: 2020-06-02
+Port-Version: 2
Build-Depends: libpng
Homepage: https://github.com/mozilla/mozjpeg
Description: MozJPEG reduces file sizes of JPEG images while retaining quality and compatibility with the vast majority of the world's deployed decoders. It's compatible with libjpeg API and ABI, and can be used as a drop-in replacement for libjpeg.
diff --git a/ports/mozjpeg/portfile.cmake b/ports/mozjpeg/portfile.cmake
index 9c756e778..b5095a9ad 100644
--- a/ports/mozjpeg/portfile.cmake
+++ b/ports/mozjpeg/portfile.cmake
@@ -1,3 +1,7 @@
+if(EXISTS "${CURRENT_INSTALLED_DIR}/share/libjpeg-turbo/copyright")
+ message(FATAL_ERROR "Can't build ${PORT} if libjpeg-turbo is installed. Please remove libjpeg-turbo:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
+endif()
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mozilla/mozjpeg