2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-04-15 19:26:55 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO libsquish
|
|
|
|
FILENAME "libsquish-1.15.tgz"
|
2019-04-15 19:26:55 +08:00
|
|
|
NO_REMOVE_ONE_LEVEL
|
2020-06-27 06:06:30 +08:00
|
|
|
SHA512 5b569b7023874c7a43063107e2e428ea19e6eb00de045a4a13fafe852ed5402093db4b65d540b5971ec2be0d21cb97dfad9161ebfe6cf6e5376174ff6c6c3e7a
|
2021-10-12 01:22:36 +08:00
|
|
|
PATCHES
|
|
|
|
fix-export-symbols.patch
|
|
|
|
export-target.patch
|
2019-04-15 19:26:55 +08:00
|
|
|
)
|
|
|
|
|
2022-03-22 04:25:52 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
sse2 BUILD_SQUISH_WITH_SSE2
|
|
|
|
)
|
|
|
|
|
2021-10-12 01:22:36 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-03-22 04:25:52 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-15 07:46:57 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2022-03-22 04:25:52 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-04-15 19:26:55 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 01:22:36 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-04-15 19:26:55 +08:00
|
|
|
|
2021-10-12 01:22:36 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-libsquish CONFIG_PATH share/unofficial-libsquish)
|
2019-04-15 19:26:55 +08:00
|
|
|
|
2021-10-12 01:22:36 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|