Skip to content

Commit

Permalink
pl_mpeg: add package (#4626)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstom4994 authored Jul 11, 2024
1 parent b5797f4 commit b324b50
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/p/pl_mpeg/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package("pl_mpeg")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/phoboslab/pl_mpeg")
set_description("Single file C library for decoding MPEG1 Video and MP2 Audio")
set_license("MIT")

set_urls("https://github.com/phoboslab/pl_mpeg.git")
add_versions("2024.04.12", "9e40dd6536269d788728e32c39bfacf2ab7a0866")

on_install(function (package)
os.cp("pl_mpeg.h", package:installdir("include"))
end)

on_test(function (package)
assert(package:has_cfuncs("plm_create_with_filename", {includes = "pl_mpeg.h"}))
end)

0 comments on commit b324b50

Please sign in to comment.