Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorDerek Lesho <dlesho@codeweavers.com>2021-12-21 01:34:26 +0300
committerArkadiusz Hiler <ahiler@codeweavers.com>2022-01-24 23:53:20 +0300
commitbe0bdb7fb90569eac3636a7777ea29fc2d5fcd03 (patch)
tree84df8ed202f7e73ed7cb1bc32150f7b5cc942587 /make
parent710257adb493f155344b6f06ba2ee151bb21a802 (diff)
proton: Add gst-libav and ffmpeg to build.
Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Diffstat (limited to 'make')
-rw-r--r--make/rules-configure.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/make/rules-configure.mk b/make/rules-configure.mk
new file mode 100644
index 00000000..d04a3c53
--- /dev/null
+++ b/make/rules-configure.mk
@@ -0,0 +1,39 @@
+# parameters:
+# $(1): lowercase package name
+# $(2): uppercase package name
+# $(3): 32/64, build type
+# $(4): CROSS/<empty>, cross compile
+#
+define create-rules-configure
+$(call create-rules-common,$(1),$(2),$(3),$(4))
+
+ifeq ($(CONTAINER),1)
+$$(OBJ)/.$(1)-configure$(3):
+ @echo ":: configuring $(3)bit $(1)..." >&2
+
+ cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
+ $$($(2)_SRC)/configure $(--quiet?) \
+ --cross-prefix=$$(TARGET_$(3))- \
+ --arch=$(CONFIGURE_ARCH$(3)) \
+ --target-os=linux \
+ --prefix="$$($(2)_DST$(3))" \
+ --libdir="$$($(2)_DST$(3))/lib$(subst 32,,$(3))" \
+ $$($(2)_CONFIGURE_ARGS) \
+ $$($(2)_CONFIGURE_ARGS$(3))
+
+ touch $$@
+
+$$(OBJ)/.$(1)-build$(3):
+ @echo ":: building $(3)bit $(1)..." >&2
+ cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
+ $$(MAKE)
+ cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
+ $$(MAKE) install
+ touch $$@
+endif
+endef
+
+CONFIGURE_ARCH32 = x86
+CONFIGURE_ARCH64 = x86_64
+
+rules-configure = $(call create-rules-configure,$(1),$(call toupper,$(1)),$(2),$(3))