Changeset View
Standalone View
multimedia/emby-server/Makefile
# Created by: Ben Woods <woodsb02@FreeBSD.org> | |||||
lwhsu: @woodsb02 Ben, are you OK for removing this line? | |||||
Done Inline ActionsYes woodsb02: Yes | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= emby-server | PORTNAME= emby-server | ||||
PORTVERSION= 3.5.3.0 | PORTVERSION= 4.0.1.0 | ||||
CATEGORIES= multimedia | CATEGORIES= multimedia | ||||
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ | MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ \ | ||||
DISTNAME= emby-server-freebsd_${PORTVERSION}_amd64 | https://mediabrowser.github.io/embytools/ | ||||
DISTNAME= embyserver-netframework_${PORTVERSION} | |||||
tcbernerUnsubmitted Done Inline Actions^ you could probably get away with setting DISTVERSIONPREFIX=netframework_ tcberner: ^ you could probably get away with setting `DISTVERSIONPREFIX=netframework_`
| |||||
matUnsubmitted Done Inline ActionsMmm, but PORTNAME is emby-server, and DISTNAME as embyserver, it would not change a lot, except defining one more variable. mat: Mmm, but `PORTNAME` is `emby-server`, and `DISTNAME` as `embyserver`, it would not change a lot… | |||||
DISTFILES= embyserver-netframework_${PORTVERSION}.zip \ | |||||
Done Inline ActionsThis should be ${DISTNAME}.zip. mat: This should be `${DISTNAME}.zip`. | |||||
ffmpeg-2018_12_01.tar.gz \ | |||||
tcbernerUnsubmitted Done Inline Actions^can't you use the ffmpeg from ports? tcberner: ^can't you use the ffmpeg from ports? | |||||
driesmAuthorUnsubmitted Done Inline ActionsEmby uses a customized ffmpeg with local patches to provide features and tailor it for Emby. For example, transcoding throttling which is a big feature for this release. I asked if they can upstream as much as possible, as it would be a lot cleaner if we could depend on the ffmpeg in our tree. Although, I don't see this happening in the short term. FYI: https://emby.media/community/index.php?/topic/12906-freebsd-package/?p=677067 driesm: Emby uses a customized ffmpeg with local patches to provide features and tailor it for Emby. | |||||
ffdetect_4.0.2_x64_freebsd.tar.xz \ | |||||
license.docx | |||||
Done Inline ActionsThis file name is too generic, please use DIST_SUBDIR. mat: This file name is too generic, please use `DIST_SUBDIR`. | |||||
EXTRACT_ONLY= embyserver-netframework_${PORTVERSION}.zip \ | |||||
Done Inline ActionsDISTNAME here too. mat: DISTNAME here too. | |||||
ffmpeg-2018_12_01.tar.gz \ | |||||
ffdetect_4.0.2_x64_freebsd.tar.xz | |||||
MAINTAINER= apps@emby.media | MAINTAINER= alucryd@archlinux.org | ||||
COMMENT= Media server to organize, play & stream audio/video to various devices | COMMENT= Media server to organize, play & stream audio/video to various devices | ||||
LICENSE= UNKNOWN | LICENSE= UNKNOWN | ||||
LICENSE_NAME= custom | LICENSE_NAME= custom | ||||
LICENSE_FILE= ${WRKSRC}/license.docx | LICENSE_FILE= ${DISTDIR}/license.docx | ||||
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept | LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept | ||||
ONLY_FOR_ARCHS= amd64 | ONLY_FOR_ARCHS= amd64 | ||||
RUN_DEPENDS= mono:lang/mono | BUILD_DEPENDS= nasm:devel/nasm | ||||
LIB_DEPENDS= libass.so:multimedia/libass \ | LIB_DEPENDS= libass.so:multimedia/libass \ | ||||
libdrm.so:graphics/libdrm \ | |||||
libfontconfig.so:x11-fonts/fontconfig \ | libfontconfig.so:x11-fonts/fontconfig \ | ||||
libfreetype.so:print/freetype2 \ | libfreetype.so:print/freetype2 \ | ||||
libfribidi.so:converters/fribidi \ | libfribidi.so:converters/fribidi \ | ||||
libgmp.so:math/gmp \ | |||||
libgnutls.so:security/gnutls \ | libgnutls.so:security/gnutls \ | ||||
libogg.so:audio/libogg \ | |||||
libopus.so:audio/opus \ | libopus.so:audio/opus \ | ||||
libsmbclient.so:net/samba48 \ | libpng16.so:graphics/png \ | ||||
libsqlite3.so:databases/sqlite3 \ | |||||
libtheora.so:multimedia/libtheora \ | libtheora.so:multimedia/libtheora \ | ||||
libva.so:multimedia/libva \ | libva.so:multimedia/libva \ | ||||
libvorbis.so:audio/libvorbis \ | libvorbis.so:audio/libvorbis \ | ||||
Context not available. | |||||
libx264.so:multimedia/libx264 \ | libx264.so:multimedia/libx264 \ | ||||
libzvbi.so:devel/libzvbi | libzvbi.so:devel/libzvbi | ||||
USES= iconv:wchar_t tar:xz | USES= compiler:c11 gettext-runtime gmake iconv \ | ||||
USE_XORG= x11 xcb | localbase:ldflags mono pkgconfig sqlite tar:xz | ||||
USE_XORG= x11 | |||||
Done Inline ActionsIs tar:xz needed? mat: Is `tar:xz` needed? | |||||
Done Inline ActionsGood catch! Its not needed anymore; updated diff accordingly. driesm: Good catch! Its not needed anymore; updated diff accordingly. | |||||
NO_BUILD= true | SUB_FILES= ImageMagickSharp.dll.config \ | ||||
WRKSRC= ${WRKDIR}/emby-server-${PORTVERSION} | SQLitePCLRaw.provider.sqlite3.dll.config | ||||
USE_RC_SUBR= ${PORTNAME} | USE_RC_SUBR= ${PORTNAME} | ||||
matUnsubmitted Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. (Should go in the USES block) mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=emby_server | SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=emby_server | ||||
USERS= emby | USERS= emby | ||||
GROUPS= emby | GROUPS= emby | ||||
WRKSRC= ${WRKDIR}/ffmpeg-2018_12_01 | |||||
HAS_CONFIGURE= yes | |||||
Done Inline ActionsAre you sure about this one? mat: Are you sure about this one? | |||||
Done Inline ActionsI have tried building the ffmpeg without this set but then it fails to build. driesm: I have tried building the ffmpeg without this set but then it fails to build. | |||||
OPTIONS_DEFINE= LAME SMB X11 | |||||
OPTIONS_DEFAULT= SMB X11 | |||||
Done Inline ActionsWhy +=? mat: Why `+=`? | |||||
LAME_CONFIGURE_ENABLE= libmp3lame | |||||
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame | |||||
Done Inline ActionsNo need for += either. mat: No need for `+=` either. | |||||
SMB_CONFIGURE_ENABLE= libsmbclient | |||||
SMB_USES= samba:lib | |||||
X11_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick6 | |||||
X11_LIB_DEPENDS_OFF= libMagickWand-6.so:graphics/ImageMagick6-nox11 | |||||
NOPRECIOUSMAKEVARS= yes | |||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | |||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin V=1 | |||||
CONFIGURE_ARGS+=--cc="${CC}" \ | |||||
--disable-autodetect \ | |||||
--disable-doc \ | |||||
--disable-ffplay \ | |||||
--disable-shared \ | |||||
--enable-fontconfig \ | |||||
--enable-gmp \ | |||||
--enable-gnutls \ | |||||
--enable-gpl \ | |||||
--enable-iconv \ | |||||
--enable-libass \ | |||||
--enable-libdrm \ | |||||
--enable-libfreetype \ | |||||
--enable-libfribidi \ | |||||
--enable-libopus \ | |||||
--enable-libtheora \ | |||||
--enable-libvorbis \ | |||||
--enable-libwebp \ | |||||
--enable-libx264 \ | |||||
--enable-libzvbi \ | |||||
--enable-vaapi \ | |||||
--enable-mmx \ | |||||
--enable-optimizations \ | |||||
--enable-sse \ | |||||
--enable-static \ | |||||
--enable-vaapi \ | |||||
--enable-version3 | |||||
matUnsubmitted Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. (Should go before options) mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
do-install: | do-install: | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server | @${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server | ||||
(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/lib/emby-server/bin) | (cd ${WRKDIR}/bin && ${COPYTREE_BIN} ffdetect ${STAGEDIR}${PREFIX}/lib/emby-server/bin) | ||||
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/lib) | (cd ${WRKSRC} && ${COPYTREE_BIN} ffmpeg ${STAGEDIR}${PREFIX}/lib/emby-server/bin) | ||||
(cd ${WRKSRC}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system) | (cd ${WRKSRC} && ${COPYTREE_BIN} ffprobe ${STAGEDIR}${PREFIX}/lib/emby-server/bin) | ||||
matUnsubmitted Done Inline ActionsFor single files, please use the INSTALL_* macros. mat: For single files, please use the `INSTALL_*` macros. | |||||
(cd ${STAGEDIR}${PREFIX}/lib/emby-server/system && \ | (cd ${WRKDIR}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system) | ||||
ln -s ../../libsqlite3.so ./libsqlite3.so && \ | (${INSTALL_DATA} ${WRKDIR}/ImageMagickSharp.dll.config ${STAGEDIR}${PREFIX}/lib/emby-server/system/ImageMagickSharp.dll.config) | ||||
ln -s ../lib/libSkiaSharp.so ./libSkiaSharp.so) | (${INSTALL_DATA} ${WRKDIR}/SQLitePCLRaw.provider.sqlite3.dll.config ${STAGEDIR}${PREFIX}/lib/emby-server/system/SQLitePCLRaw.provider.sqlite3.dll.config) | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Context not available. |
@woodsb02 Ben, are you OK for removing this line?