|
@@ -13,7 +13,7 @@ class LibOggConan(ConanFile):
|
|
"free for anyone to use.")
|
|
"free for anyone to use.")
|
|
homepage = "https://www.xiph.org/ogg/"
|
|
homepage = "https://www.xiph.org/ogg/"
|
|
topics = ("xiph.org", "media", "container")
|
|
topics = ("xiph.org", "media", "container")
|
|
- exports_sources = ["CMakeLists.txt"]
|
|
|
|
|
|
+ exports_sources = ["CMakeLists.txt", "patches/*"]
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
options = {"shared": [True, False]}
|
|
options = {"shared": [True, False]}
|
|
default_options = {"shared": False}
|
|
default_options = {"shared": False}
|
|
@@ -25,6 +25,11 @@ class LibOggConan(ConanFile):
|
|
|
|
|
|
def source(self):
|
|
def source(self):
|
|
tools.get(**self.conan_data["sources"][self.version])
|
|
tools.get(**self.conan_data["sources"][self.version])
|
|
|
|
+ self._patch()
|
|
|
|
+
|
|
|
|
+ def _patch(self):
|
|
|
|
+ tools.patch(base_path=self.subfolder, patch_file=os.path.join("patches", "framing.c.patch"), strip=1)
|
|
|
|
+ tools.patch(base_path=self.subfolder, patch_file=os.path.join("patches", "ogg.def.patch"), strip=1)
|
|
|
|
|
|
def configure(self):
|
|
def configure(self):
|
|
del self.settings.compiler.cppstd
|
|
del self.settings.compiler.cppstd
|