diff --git a/ports/libdvdcss/portfile.cmake b/ports/libdvdcss/portfile.cmake new file mode 100644 index 0000000000..b6fa8a51a6 --- /dev/null +++ b/ports/libdvdcss/portfile.cmake @@ -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") diff --git a/ports/libdvdcss/vcpkg.json b/ports/libdvdcss/vcpkg.json new file mode 100644 index 0000000000..d5500ed85c --- /dev/null +++ b/ports/libdvdcss/vcpkg.json @@ -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" +} diff --git a/versions/baseline.json b/versions/baseline.json index db6c92e228..a1da180105 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/l-/libdvdcss.json b/versions/l-/libdvdcss.json new file mode 100644 index 0000000000..3d6214cb12 --- /dev/null +++ b/versions/l-/libdvdcss.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "879280b3353aac493a996c9ed8da98699734d12d", + "version-semver": "1.4.3", + "port-version": 0 + } + ] +}