Skip to content

Commit

Permalink
Add MusicBrainz library on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Dec 5, 2024
1 parent 16e621c commit ee8a698
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"name": "pkgconf",
"host": true,
"platform": "windows"
},
{
"name": "libmusicbrainz",
"platform": "windows"
}
]
}
14 changes: 14 additions & 0 deletions vcpkg/overlay-ports/libmusicbrainz/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL https://github.com/metabrainz/libmusicbrainz.git
REF 2adc507e79acec04abb8756e9e07319b980ca9df
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
${OPTIONS}
)

vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()

8 changes: 8 additions & 0 deletions vcpkg/overlay-ports/libmusicbrainz/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "libmusicbrainz",
"version": "5.1.0",
"dependencies": [
"vcpkg-cmake",
"neon"
]
}
19 changes: 19 additions & 0 deletions vcpkg/overlay-ports/neon/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
vcpkg_download_distfile(ARCHIVE
URLS "https://notroj.github.io/neon/neon-${VERSION}.tar.gz"
FILENAME "neon-${VERSION}.tar.gz"
SHA512 3ac77f6964bda3d3bb6190d982e0573f4e1a3e611afa40be7d79829419a2a1bc787905f12057aa30a4bbe80e8b8efd39408fd886e2e36fc4f7cae12b47ed8f29
)

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
)

vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
DISABLE_VERBOSE_FLAGS
)

vcpkg_install_make()
vcpkg_fixup_pkgconfig()
4 changes: 4 additions & 0 deletions vcpkg/overlay-ports/neon/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "neon",
"version": "0.34.0"
}

0 comments on commit ee8a698

Please sign in to comment.