Skip to content

Commit

Permalink
[lensfun] Remove cpu features (#34832)
Browse files Browse the repository at this point in the history
* remove invalid cpu features

* bump port version

* oops

* version db

* build_for_sse=off

* version db

* sse2 = off

* version db
  • Loading branch information
JavierMatosD committed Nov 1, 2023
1 parent 0e2a0e0 commit 51b14cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
8 changes: 2 additions & 6 deletions ports/lensfun/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LENSFUN_STATIC_LIB)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" LENSFUN_STATIC_CRT)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
sse BUILD_FOR_SSE
sse2 BUILD_FOR_SSE2
)

set(LENSFUN_EXTRA_OPTS "")
if (VCPKG_TARGET_IS_WINDOWS)
Expand All @@ -26,7 +21,6 @@ endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
${LENSFUN_EXTRA_OPTS}
-DBUILD_STATIC=${LENSFUN_STATIC_LIB}
-DBUILD_WITH_MSVC_STATIC_RUNTIME=${LENSFUN_STATIC_CRT}
Expand All @@ -35,6 +29,8 @@ vcpkg_cmake_configure(
-DINSTALL_PYTHON_MODULE=ON
-DINSTALL_HELPER_SCRIPTS=OFF
-DBUILD_LENSTOOL=OFF
-DBUILD_FOR_SSE=OFF
-DBUILD_FOR_SSE2=OFF
)

vcpkg_cmake_install()
Expand Down
11 changes: 2 additions & 9 deletions ports/lensfun/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "lensfun",
"version": "0.3.4",
"port-version": 1,
"description": "Provide a open source database of photographic lenses and their characteristics",
"homepage": "https://scnlib.dev/",
"license": "LGPL-3.0 OR GPL-3.0",
Expand All @@ -15,13 +16,5 @@
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"sse": {
"description": "Build with support for SSE"
},
"sse2": {
"description": "Build with support for SSE2"
}
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3970,7 +3970,7 @@
},
"lensfun": {
"baseline": "0.3.4",
"port-version": 0
"port-version": 1
},
"leptonica": {
"baseline": "1.83.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lensfun.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a085269b70f184d8dbf07c595e37ce336bd79906",
"version": "0.3.4",
"port-version": 1
},
{
"git-tree": "1dd927cfac7033fe1aa1031d588ebe8295f7765c",
"version": "0.3.4",
Expand Down

0 comments on commit 51b14cd

Please sign in to comment.