forked from FemboyOS/fempkg_recipes
feat : add obs-studio
This commit is contained in:
38
intel-mediasdk.recipe.py
Normal file
38
intel-mediasdk.recipe.py
Normal file
@@ -0,0 +1,38 @@
|
||||
pkgname = "intel-mediasdk"
|
||||
pkgver = "23.2.2"
|
||||
source = f"https://github.com/Intel-Media-SDK/MediaSDK/archive/refs/tags/intel-mediasdk-{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/MediaSDK-intel-mediasdk-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["cmake", "gmmlib", "intelmedia", "libdrm", "libva", "xorg-libs", "wayland"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz",
|
||||
|
||||
# GCC-15 patches
|
||||
f"cd {builddir} && sed -i '/<string.h>/a #include <cstdint>' api/mfx_dispatch/linux/mfxparser.cpp && "
|
||||
f"sed -i '/<math.h>/a #include <cstdint>' samples/sample_vpp/src/sample_vpp_frc_adv.cpp",
|
||||
|
||||
#configure
|
||||
f"cd {builddir} && mkdir -pv build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release "
|
||||
f"-D CMAKE_SKIP_INSTALL_RPATH=ON -D CMAKE_POLICY_VERSION_MINIMUM=3.5 -D BUILD_ALL=ON -D BUILD_TOOLS=ON " # quickshell MIGHT be in danger
|
||||
f"-D ENABLE_ITT=OFF -D ENABLE_OPENCL=OFF -D ENABLE_WAYLAND=ON -D ENABLE_X11_DRI3=ON -D MFX_APPS_DIR=/usr/lib/mfx -W no-dev .. ",
|
||||
|
||||
#build
|
||||
f"cd {builddir}/build && make -j$(nproc)",
|
||||
f"cd {builddir}/build && make DESTDIR={destdir} install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LICENSE {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
|
||||
# Make tarball + manifests
|
||||
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||
|
||||
# Cleanup
|
||||
f"rm -rf {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user