Skip to content

Commit

Permalink
[libjpeg-turbo/mozjpeg] Add conflict messages (#15196)
Browse files Browse the repository at this point in the history
* [libjpeg-turbo/mozjpeg] Add conflict messages

* Add missed CONTROL for libjpeg-turbo

* Update ports/mozjpeg/CONTROL
  • Loading branch information
NancyLi1013 authored Jan 11, 2021
1 parent 0b702d5 commit 7fee6a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/libjpeg-turbo/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: libjpeg-turbo
Version: 2.0.5
Port-Version: 2
Port-Version: 3
Homepage: https://github.com/libjpeg-turbo/libjpeg-turbo
Description: libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems.

Expand Down
4 changes: 4 additions & 0 deletions ports/libjpeg-turbo/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/mozjpeg/copyright")
message(FATAL_ERROR "Can't build ${PORT} if mozjpeg is installed. Please remove mozjpeg:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libjpeg-turbo/libjpeg-turbo
Expand Down
3 changes: 2 additions & 1 deletion ports/mozjpeg/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions ports/mozjpeg/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7fee6a4

Please sign in to comment.