Skip to content

Commit

Permalink
Add libfontconfig and update nvidia headers
Browse files Browse the repository at this point in the history
The latter was forced due to the old .deb going away.

Also move chown into Docker build rather than after.
  • Loading branch information
joshuaboniface committed May 16, 2019
1 parent 990e65e commit 5857dc6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
3 changes: 0 additions & 3 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ make -f Dockerfile.make DISTRO=${release} GCC_VER=${gcc_version} ARCH=${arch}
docker build . -t "${image_name}"
# Build the APKs and copy out to ${package_temporary_dir}
docker run --rm -e "RELEASE=${release}" -v "${package_temporary_dir}:/dist" "${image_name}"
# Correct ownership on the APKs (as current user, then as root if that fails)
chown -R "${current_user}" "${package_temporary_dir}" &>/dev/null \
|| sudo chown -R "${current_user}" "${package_temporary_dir}" &>/dev/null
# Move the APKs to the parent directory
mkdir ../bin &>/dev/null || true
mmv "${package_temporary_dir}/deb/*.deb" "../bin/#1.deb"
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
jellyfin-ffmpeg (4.0.4-3) unstable; urgency=medium

* Use libfontconfig to allow baked-in subtitle support
* Upgrade nVidia headers to 9.0.18.1

-- Joshua Boniface <[email protected]> Tue, 14 May 2019 23:24:39 -0400

jellyfin-ffmpeg (4.0.4-2) unstable; urgency=medium

* Correct build bug and reenable nvenc/nvdec
Expand Down
2 changes: 2 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Build-Depends:
libbluray-dev,
# --enable-libdrm
libdrm-dev,
# --enable-libfontconfig
libfontconfig-dev,
# --enable-libfreetype
libfreetype6-dev,
# --enable-fribidi
Expand Down
19 changes: 10 additions & 9 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ORIG_VERSION := $(shell dpkg-parsechangelog -S version)
VERSION_SUFFIX := $(shell lsb_release -c -s)
# Set the current "testing" explicitly to "buster"
ifeq ($(VERSION_SUFFIX),testing)
VERSION_SUFFIX := buster
VERSION_SUFFIX := buster
endif
PACKAGEVERSION := "$(ORIG_VERSION)-$(VERSION_SUFFIX)"

Expand All @@ -17,12 +17,13 @@ CONFIG := --toolchain=hardened \
--extra-cflags='--static' \
--enable-gpl \
--enable-static \
--disable-doc \
--disable-doc \
--disable-ffplay \
--disable-shared \
--disable-libxcb \
--disable-sdl2 \
--disable-xlib \
--enable-libfontconfig \
--enable-fontconfig \
--enable-gmp \
--enable-gnutls \
Expand Down Expand Up @@ -54,21 +55,21 @@ CONFIG_ARM64 := --enable-cross-compile \
--arch=arm64

CONFIG_x86 := --arch=amd64 \
--enable-nvenc --enable-nvdec
--enable-nvenc --enable-nvdec

HOST_ARCH := $(shell arch)
BUILD_ARCH := ${DEB_HOST_MULTIARCH}
ifeq ($(BUILD_ARCH),x86_64-linux-gnu)
# Native amd64 build
CONFIG += $(CONFIG_x86)
# Native amd64 build
CONFIG += $(CONFIG_x86)
endif
ifeq ($(BUILD_ARCH),arm-linux-gnueabihf)
# Cross-building ARM on AMD64
CONFIG += $(CONFIG_ARM)
# Cross-building ARM on AMD64
CONFIG += $(CONFIG_ARM)
endif
ifeq ($(BUILD_ARCH),aarch64-linux-gnu)
# Cross-building ARM64 on AMD64
CONFIG += $(CONFIG_ARM64)
# Cross-building ARM64 on AMD64
CONFIG += $(CONFIG_ARM64)
endif

%:
Expand Down
4 changes: 3 additions & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

NVCH_VERSION="8.2.15.8-dmo1"
#NVCH_VERSION="8.2.15.8-dmo1"
NVCH_VERSION="9.0.18.1-dmo1"

# Builds the DEB inside the Docker container

Expand Down Expand Up @@ -115,3 +116,4 @@ popd
# Move the artifacts out
mkdir -p ${ARTIFACT_DIR}/deb
mv /jellyfin-ffmpeg_* ${ARTIFACT_DIR}/deb/
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}

0 comments on commit 5857dc6

Please sign in to comment.