|
@@ -1,28 +1,29 @@
|
|
|
from conans import ConanFile, CMake, tools
|
|
|
+import os
|
|
|
|
|
|
|
|
|
class Bento4Conan(ConanFile):
|
|
|
name = "Bento4"
|
|
|
version = "1.5.1-629"
|
|
|
- license = "<Put the package license here>"
|
|
|
- author = "<Put your name here> <And your email here>"
|
|
|
- url = "<Package recipe repository url here, for issues about the package>"
|
|
|
- description = "<Description of Bento4 here>"
|
|
|
- topics = ("<Put some tag here>", "<here>", "<and here>")
|
|
|
+ license = "GPL-2.0-or-later"
|
|
|
+ author = "Shawn Morford <DarkMorford@Gmail.com>"
|
|
|
+ url = "https://code.darkmorford.net/conan-pkg/Bento4"
|
|
|
+ description = ("A fast, modern, open source C++ toolkit for all "
|
|
|
+ "your MP4 and MPEG DASH media format needs.")
|
|
|
+ homepage = "https://www.bento4.com/"
|
|
|
+ topics = ("media", "container")
|
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
|
options = {"shared": [True, False]}
|
|
|
default_options = {"shared": False}
|
|
|
generators = "cmake"
|
|
|
|
|
|
+ @property
|
|
|
+ def subfolder(self):
|
|
|
+ return os.path.join(self.source_folder, "bento4")
|
|
|
+
|
|
|
def source(self):
|
|
|
- self.run("git clone https://github.com/conan-io/hello.git")
|
|
|
- # This small hack might be useful to guarantee proper /MT /MD linkage
|
|
|
- # in MSVC if the packaged project doesn't have variables to set it
|
|
|
- # properly
|
|
|
- tools.replace_in_file("hello/CMakeLists.txt", "PROJECT(HelloWorld)",
|
|
|
- '''PROJECT(HelloWorld)
|
|
|
-include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
|
-conan_basic_setup()''')
|
|
|
+ self.output.info(f"Downloading source for version {self.version}")
|
|
|
+ tools.get(**self.conan_data["sources"][self.version], destination="bento4")
|
|
|
|
|
|
def build(self):
|
|
|
cmake = CMake(self)
|