aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/libass/CONTROL3
-rw-r--r--ports/libass/portfile.cmake15
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/libass/CONTROL b/ports/libass/CONTROL
new file mode 100644
index 000000000..0142a5e51
--- /dev/null
+++ b/ports/libass/CONTROL
@@ -0,0 +1,3 @@
+Source: libass
+Version: 0.14.0
+Description: libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.
diff --git a/ports/libass/portfile.cmake b/ports/libass/portfile.cmake
new file mode 100644
index 000000000..a7380a6e6
--- /dev/null
+++ b/ports/libass/portfile.cmake
@@ -0,0 +1,15 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libass/libass
+ REF 98727c3b78f44cb3bbc955fcf5d977ebd911d5ca
+ SHA512 d466108180cea598b817f89aa21a1021ed2a763580d9aad51b054aa120186af48ab4264907e49ddcb38479a28d87d5431751a28afee9cb83ad7623f002d99c57
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/libass/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libass RENAME copyright) \ No newline at end of file