[libdvdcss] New port (#40720)

This commit is contained in:
Kai Pastor 2024-09-08 20:55:13 +02:00 committed by GitHub
parent 0d6d2a2f2d
commit c9b1114d69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,33 @@
vcpkg_from_gitlab(
OUT_SOURCE_PATH SOURCE_PATH
GITLAB_URL https://code.videolan.org/
REPO videolan/libdvdcss
REF ${VERSION}
SHA512 b4265ea7c31ca863569b6b20caf158d7ecf9ef6ca8ea3fb372ab7a730e2cb0fdfc2331e6b7aba102faa7751301e063f466dc5dc50a467dd659e008ee7c73383a
HEAD_REF master
)
file(WRITE "${SOURCE_PATH}/ChangeLog" "Cf. https://code.videolan.org/videolan/libdvdcss/-/commits/${VERSION}/") # not in git
set(cppflags "")
if(VCPKG_TARGET_IS_WINDOWS)
# PATH_MAX from msvc/libdvdcss.vcxproj
set(cppflags "CPPFLAGS=\$CPPFLAGS -DPATH_MAX=2048 -DWIN32_LEAN_AND_MEAN")
endif()
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS
--disable-doc
${cppflags}
)
vcpkg_install_make()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -0,0 +1,8 @@
{
"name": "libdvdcss",
"version-semver": "1.4.3",
"description": "Accessing DVDs like a block device library",
"homepage": "https://www.videolan.org/developers/libdvdcss.html",
"license": "GPL-2.0-or-later",
"supports": "!uwp & !xbox"
}

View File

@ -4408,6 +4408,10 @@
"baseline": "0.6.0",
"port-version": 3
},
"libdvdcss": {
"baseline": "1.4.3",
"port-version": 0
},
"libdwarf": {
"baseline": "0.11.0",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "879280b3353aac493a996c9ed8da98699734d12d",
"version-semver": "1.4.3",
"port-version": 0
}
]
}