mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
57 lines
1.8 KiB
CMake
57 lines
1.8 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
include(vcpkg_find_fortran)
|
|
vcpkg_find_fortran(FORTRAN)
|
|
|
|
vcpkg_find_acquire_program(BISON)
|
|
get_filename_component(BISON_EXE_PATH "${BISON}" DIRECTORY)
|
|
vcpkg_add_to_path("${BISON_EXE_PATH}")
|
|
|
|
vcpkg_find_acquire_program(FLEX)
|
|
get_filename_component(FLEX_EXE_PATH "${FLEX}" DIRECTORY)
|
|
vcpkg_add_to_path("${FLEX_EXE_PATH}")
|
|
|
|
vcpkg_find_acquire_program(GPERF)
|
|
get_filename_component(GPERF_EXE_PATH "${GPERF}" DIRECTORY)
|
|
vcpkg_add_to_path("${GPERF_EXE_PATH}")
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://ftpmirror.gnu.org/octave/octave-${VERSION}.tar.xz"
|
|
FILENAME "octave-${VERSION}.tar.xz"
|
|
SHA512 cb1667cd6557d48ecd7ae191bc44c9b9fd4f79e7cf4bf6c917093d120c4312e9594e6dddc5287661627ac053e9f23faaec40a1286d792d859f1fefbfdb3eeb8c
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
PATCHES
|
|
)
|
|
|
|
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/bin")
|
|
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/debug/bin")
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
OPTIONS
|
|
--disable-docs
|
|
--without-hdf5
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/site/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/octave/site/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/site/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/${VERSION}/site/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/octave/${VERSION}/site/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/libexec/")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/libexec")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/octave/octave/${VERSION}/site")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/octave/octave/site")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
vcpkg_fixup_pkgconfig()
|