Skip to content

Commit

Permalink
Use vcpkg-make, fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Jan 16, 2025
1 parent 3da2919 commit 659f2f4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
15 changes: 10 additions & 5 deletions ports/octave/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ get_filename_component(GPERF_EXE_PATH "${GPERF}" DIRECTORY)
vcpkg_add_to_path("${GPERF_EXE_PATH}")

vcpkg_find_acquire_program(PKGCONFIG)
set(ENV{PKGCONFIG} "${PKGCONFIG}")
set(ENV{PKG_CONFIG} "${PKGCONFIG}")

vcpkg_configure_make(
if(VCPKG_HOST_IS_OSX)
message("${PORT} currently requires the following programs from the system package manager:\n gsed\n\nIt can be installed with brew gnu-sed")
endif()

vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
AUTORECONF
LANGUAGES C CXX Fortran
OPTIONS
--disable-docs
--disable-java
Expand Down Expand Up @@ -75,11 +80,11 @@ vcpkg_configure_make(
--with-umfpack=no
--with-z # yes
)
vcpkg_install_make()
vcpkg_make_install()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
foreach(subdir IN ITEMS libexec lib/octave/site lib/octave/${VERSION}/site share/octave/octave/${VERSION}/site share/octave/octave/site/api-v59/m)
foreach(subdir IN ITEMS libexec lib/octave/site lib/octave/${VERSION}/site share/octave/octave/${VERSION}/site share/octave/octave/site/api-v59)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/${subdir}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/${subdir}")
endforeach()
Expand Down
5 changes: 5 additions & 0 deletions ports/octave/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"port-version": 1,
"description": "High-level interpreted language, primarily intended for numerical computations.",
"homepage": "https://octave.org/",
"documentation": "https://docs.octave.org/latest/",
"license": "GPL-3.0-or-later",
"supports": "!windows | mingw",
"dependencies": [
Expand All @@ -15,6 +16,10 @@
"opengl",
"pcre2",
"readline",
{
"name": "vcpkg-make",
"host": true
},
"zlib"
]
}
2 changes: 1 addition & 1 deletion versions/o-/octave.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "c2e5943f09f28264953ef0ff1163261177451a74",
"git-tree": "a4fca879eb0d909e93be7d264235392b618f9e0a",
"version": "9.3.0",
"port-version": 1
},
Expand Down

0 comments on commit 659f2f4

Please sign in to comment.